skillfed

statsig-python-core

Statsig Python bindings for the Statsig Core SDK.

statsig-python-core v0.21.0 3.6M downloads/30d#2,544 on PyPI23
Permissive license ISC Active released

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

uv

uv add statsig-python-core

poetry

poetry add statsig-python-core

Installing 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

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

Tags

feature flags pythonfeature gates sdka/b testing librarydynamic configuration managementserver-side feature controlstatsig integrationexperiment framework
feature-flagsexperimentationa-b-testing

More Software Development packages