oai-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 brings feature flags (gates), dynamic configs, and A/B testing capabilities to Python applications. It wraps the Statsig Core engine (written in Rust) to provide fast, local evaluation of feature gates and config values. The package depends on requests for network communication and typing-extensions for type hints.
Typical usage involves initializing the SDK with a server key, then checking gates or fetching configs for users to control feature rollout, run experiments, or serve personalized configurations. It's designed for server-side workloads where you need low-latency feature decisions and A/B testing infrastructure integrated into your application logic.
Use it for:
- Gradually roll out new features to a subset of users using feature gates before full release.
- Run A/B tests to measure the impact of feature changes on key metrics and user behavior.
- Serve dynamic configuration values without redeploying your application.
- Segment users by cohort or attribute and apply different feature sets or configurations per segment.
- Quickly disable a problematic feature in production without a code deployment.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Statsig Python bindings for server-side feature flags, dynamic configs, and A/B testing via the Statsig Core SDK.
Yes, if you need server-side feature flags and A/B testing. The package is actively maintained, has no known vulnerabilities, carries a permissive license, and ranks in the top 15000 PyPI packages by download volume. Medium install friction is acceptable for a compiled binding. Verify offline evaluation and performance characteristics for your use case before committing.
Install
oai-statsig-python-core on PyPI
pip
pip install oai-statsig-python-coreuv
uv add oai-statsig-python-corepoetry
poetry add oai-statsig-python-coreInstalling oai-statsig-python-core
Before you install
Medium install friction due to compiled wheels, but well-supported across common platforms (Linux x86_64/aarch64, macOS, Windows). Active maintenance with a release 10 days ago.
License in practice
ISC license is permissive and places minimal restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install oai-statsig-python-core
from statsig import Statsig
Statsig.initialize('server-key')
user = {'userID': 'user_id'}
if Statsig.check_gate(user, 'feature_name'):
# feature is enabled
Requires Python 3.10 or later; compiled wheels available for common architectures but may require building from source on unsupported platforms.
Verify before relying
- Whether the package includes built-in rate limiting or connection pooling for high-traffic scenarios.
- How the SDK handles offline mode or local evaluation of flags without network calls.
- Whether there are performance benchmarks or latency guarantees for gate checks.
- Specific behavior and API surface for dynamic config retrieval and A/B test assignment.
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 — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 615,103/month — #5,743 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oai_statsig_python_core-0.29.0-cp310-abi3-macosx_10_12_x86_64.whl; oai_statsig_python_core-0.29.0-cp310-abi3-macosx_11_0_arm64.whl; oai_statsig_python_core-0.29.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; oai_statsig_python_core-0.29.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; oai_statsig_python_core-0.29.0-cp310-abi3-musllinux_1_2_aarch64.whl; oai_statsig_python_core-0.29.0-cp310-abi3-musllinux_1_2_x86_64.whl; oai_statsig_python_core-0.29.0-cp310-abi3-win32.whl; oai_statsig_python_core-0.29.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
statsigStatsig is a Python server SDK for managing…
permissive · top 5,000 on PyPI
statsig-python-coreStatsig Python bindings for server-side feature…
permissive · top 5,000 on PyPI
flagsmithFlagsmith is a Python SDK for managing feature…
permissive · top 5,000 on PyPI
launchdarkly-server-sdkA server-side SDK for integrating…
permissive · top 5,000 on PyPI
onyx-devtoolsA command-line utility that provides developer…
permissive · top 15,000 on PyPI
mixpanelOfficial Python library for server-side…
permissive · top 5,000 on PyPI
ip3countryLooks up the ISO 3166-1 alpha-2 country code…
permissive · top 5,000 on PyPI
atddATDD is a CLI toolkit that structures AI agent…
permissive · top 15,000 on PyPI
configcat-clientA Python SDK for integrating ConfigCat's…
permissive · top 5,000 on PyPI
tree-sitter-goProvides a Go language grammar for tree-sitter,…
permissive · top 5,000 on PyPI