skillfed

oai-statsig-python-core

Statsig Python bindings for the Statsig Core SDK.

oai-statsig-python-core v0.29.0 615.1K downloads/30d#5,743 on PyPI23
Permissive license ISC Active released

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-core

uv

uv add oai-statsig-python-core

poetry

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 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

Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust

Tags

feature flags pythonfeature gates sdka/b testing frameworkdynamic configuration managementserver-side experimentationfeature toggles pythonstatsig sdk
feature-flagsexperimentationrust-bindings

More Software Development packages