statsig
Statsig Python Server SDK
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Statsig account and server key from statsig.com to initialize the SDK.
- Low install friction with a pure Python wheel distribution.
- Active maintenance with a recent release (22 days old) and ongoing commits.
License · maintenance · safety
ISC (permissive) — ISC license is permissive and poses no restrictions on commercial or private use, modification, or redistribution.
last release 2026-07-23 (22 days) · last repo commit 2026-07-23 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,212,836 downloads/mo, #1,650 on PyPI
Alternatives
Verify before relying
pip install statsig
from statsig import Statsig
Statsig.initialize('your-server-key')
gate_result = Statsig.check_gate(user_id, 'gate_name')- 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
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 on it.
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
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.
Requires a Statsig account and server key from statsig.com to initialize the SDK.
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')
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 packagesrequestsua_parserip3countrygrpcioprotobufijsontyping-extensionsbrotli |
| 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 |
| Classifiers | Intended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Libraries |
Evidence: statsig-0.72.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
An agent finds packages by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language. Give your agent the search over MCP.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also oai-statsig-python-core · optimizely-sdk · splitio-client · statsig-python-core · eppo-server-sdk · harness-featureflags · launchdarkly-server-sdk · amplitude-experiment · FeatureManagement · configcat-client