statsig-python-core
Statsig Python bindings for the Statsig Core SDK.
What it is and what it does
Statsig Python Core is a server-side SDK that binds Python to Statsig's feature management and experimentation platform. It provides feature gates (feature flags) to control feature rollout, dynamic configs to manage runtime behavior, and A/B/n testing capabilities to measure feature impact on key metrics. The package is implemented as a Rust core with Python bindings, offering compiled wheels for multiple platforms and architectures.
The SDK is designed for server-side use and integrates with requests and typing-extensions as its only runtime dependencies. It requires Python 3.10 or later and is actively maintained, with recent releases and no known security vulnerabilities. The package is part of a multi-language ecosystem (Node, PHP, Java, Rust, Elixir) all built on the same Statsig Core, making it suitable for teams already using Statsig's platform.
Use it for:
- Roll out new features gradually to a percentage of users without redeploying code.
- Run A/B tests to compare feature variants and measure impact on user engagement or conversion.
- Manage dynamic configuration values (e.g., rate limits, timeouts) without restarting services.
- Target features to specific user segments based on custom attributes or rules.
- Validate experimental changes before full production release.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Statsig Python bindings for server-side feature gates, dynamic configs, and A/B/n testing via the Statsig Core SDK.
Yes, if you are already using Statsig or evaluating it for feature management and experimentation. The package is actively maintained, has no known vulnerabilities, and integrates cleanly with standard Python dependencies. Medium install friction is typical for compiled extensions and not a blocker for most deployments. Not necessary if you do not need feature flags or A/B testing.
Install
statsig-python-core on PyPI
pip
pip install statsig-python-coreuv
uv add statsig-python-corepoetry
poetry add statsig-python-coreInstalling statsig-python-core
Before you install
Medium install friction due to compiled wheels (cp310-abi3), but active maintenance with a release 2 days ago and no known vulnerabilities. Requires Python 3.10+. Depends on requests and typing-extensions, both widely available.
License in practice
ISC permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.
Quickstart
pip install statsig-python-core
from statsig import Statsig
Statsig.initialize("<your-server-key>")
gate_result = Statsig.check_gate(user, "gate_name")
Requires Python 3.10 or later; compiled wheels available for common platforms (x86_64, aarch64, Windows, macOS).
Verify before relying
- Whether the package handles offline mode or caching strategies for feature gate evaluation.
- Performance characteristics and latency impact of gate checks in high-throughput scenarios.
- How user context and targeting rules are specified and validated.
Package facts
| License | ISC (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 2 — requests, typing-extensions |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,648,177/month — #2,544 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: statsig_python_core-0.21.0-cp310-abi3-macosx_10_12_x86_64.whl; statsig_python_core-0.21.0-cp310-abi3-macosx_11_0_arm64.whl; statsig_python_core-0.21.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; statsig_python_core-0.21.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; statsig_python_core-0.21.0-cp310-abi3-musllinux_1_2_aarch64.whl; statsig_python_core-0.21.0-cp310-abi3-musllinux_1_2_x86_64.whl; statsig_python_core-0.21.0-cp310-abi3-win32.whl; statsig_python_core-0.21.0-cp310-abi3-win_amd64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
oai-statsig-python-coreStatsig Python bindings for server-side feature…
permissive · top 15,000 on PyPI
statsigStatsig is a Python server SDK for managing…
permissive · top 5,000 on PyPI
eppo-server-sdkServer-side feature flagging and…
permissive · top 15,000 on PyPI
yggdrasil-engineProvides Python bindings to the Unleash…
permissive · top 5,000 on PyPI
atddATDD is a CLI toolkit that structures AI agent…
permissive · top 15,000 on PyPI
tree-sitter-zigProvides a tree-sitter grammar for parsing Zig…
permissive · top 5,000 on PyPI
pybigtoolspybigtools is a Python wrapper around a Rust…
permissive · top 15,000 on PyPI
tree-sitter-goProvides a Go language grammar for tree-sitter,…
permissive · top 5,000 on PyPI
html-to-markdownConverts real-world HTML—including malformed…
permissive · top 5,000 on PyPI
optimizely-sdkProvides A/B testing, feature flagging, and…
permissive · top 15,000 on PyPI