statsig
Statsig Python Server SDK
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 on this page — 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
statsig on PyPI
pip
pip install statsiguv
uv add statsigpoetry
poetry add statsigInstalling 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 the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — requests, ua_parser, ip3country, grpcio, protobuf, ijson, typing-extensions, brotli |
| Maintenance | actively maintained — 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,212,836/month — #1,650 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: statsig-0.72.0-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
oai-statsig-python-coreStatsig Python bindings for server-side feature…
permissive · top 15,000 on PyPI
optimizely-sdkProvides A/B testing, feature flagging, and…
permissive · top 15,000 on PyPI
splitio-clientA Python client SDK for integrating Split…
permissive · top 15,000 on PyPI
statsig-python-coreStatsig Python bindings for server-side feature…
permissive · top 5,000 on PyPI
eppo-server-sdkServer-side feature flagging and…
permissive · top 15,000 on PyPI
harness-featureflagsPython SDK for evaluating and managing feature…
permissive · top 15,000 on PyPI
launchdarkly-server-sdkA server-side SDK for integrating…
permissive · top 5,000 on PyPI
amplitude-experimentProvides server-side A/B testing and feature…
permissive · top 15,000 on PyPI
FeatureManagementEnables runtime control of application features…
permissive · top 15,000 on PyPI
configcat-clientA Python SDK for integrating ConfigCat's…
permissive · top 5,000 on PyPI