--- id: statsig version: "0.72.0" license: ISC license_treatment: permissive maintenance: active --- # statsig — Statsig Python Server SDK License: permissive · Maintenance: active · Downloads: 8.2M/mo ## What it is and what it does Statsig is a server-side SDK for Python that integrates feature flags, dynamic configuration, and A/B testing into production applications. It allows you to control feature rollouts, run experiments to measure impact on KPIs, and manage dynamic configs without redeploying. The SDK is designed for server and multi-user environments, with testing at unit, integration, and end-to-end levels. The package depends on common libraries like requests for HTTP communication, protobuf and grpcio for efficient data serialization, ua_parser for user agent analysis, and ip3country for geolocation. It supports Python 3.7 and later, making it compatible with modern Python versions. Use it for: - Roll out new features gradually to a percentage of users and monitor impact before full release - Run A/B tests to compare feature variants and measure their effect on key metrics - Manage dynamic configuration values that can be updated server-side without code deployment - Gate features based on user properties, location, or device type for targeted rollouts - Disable problematic features in production without redeploying code ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Statsig is a Python server SDK for managing feature flags, dynamic configs, and A/B tests in production environments, enabling controlled feature rollouts and experimentation. Yes, if you need server-side feature flag and experimentation infrastructure. The package is actively maintained, has low install friction, carries no license restrictions, and is positioned in the top 5000 PyPI packages. It requires a Statsig account to function, so evaluate that dependency against your infrastructure needs. ## Install pip install statsig uv add statsig poetry add statsig ## Installing statsig Before you install: Low install friction with a pure Python wheel distribution. Active maintenance with a recent release (22 days old) and ongoing commits. Eight runtime dependencies are all common, well-maintained libraries. License in practice: ISC license is permissive and poses no restrictions on commercial or private use, modification, or redistribution. Quickstart: pip install statsig from statsig import Statsig Statsig.initialize('your-server-key') gate_result = Statsig.check_gate(user_id, 'gate_name') Requires a Statsig account and server key from statsig.com to initialize the SDK. Verify before relying: - Whether the SDK supports real-time config updates or requires polling intervals - Performance characteristics under high-volume feature flag evaluation - Whether local caching or in-memory evaluation is available to reduce latency ## Package facts - License: ISC (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 8.2M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags feature flags python, feature gates sdk, a/b testing framework, dynamic configuration management, server-side experimentation, feature rollout control, python experiment sdk, feature-flags, experimentation, a-b-testing [View on SkillFed](https://skillfed.io/packages/statsig) · [View on PyPI](https://pypi.org/project/statsig/)