--- id: oai-statsig-python-core version: "0.29.0" license: ISC license_treatment: permissive maintenance: active --- # oai-statsig-python-core — Statsig Python bindings for the Statsig Core SDK. License: permissive · Maintenance: active · Downloads: 615.1K/mo ## 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 above — 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 pip install oai-statsig-python-core uv add oai-statsig-python-core poetry add oai-statsig-python-core ## Installing 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_current - Install friction: medium - Maintenance: active - Downloads: 615.1K/month (top 15,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 toggles python, statsig sdk, feature-flags, experimentation, rust-bindings [View on SkillFed](https://skillfed.io/packages/oai-statsig-python-core) · [View on PyPI](https://pypi.org/project/oai-statsig-python-core/)