skillfed

statsig

Statsig Python Server SDK

statsig v0.72.0 8.2M downloads/30d#1,650 on PyPI9
Permissive license ISC Active released

What it is and what it does

Statsig is a server-side SDK for Python that integrates feature flags, dynamic configuration, and A/B testing into production applications. It allows you to control feature rollouts, run experiments to measure impact on KPIs, and manage dynamic configs without redeploying. The SDK is designed for server and multi-user environments, with testing at unit, integration, and end-to-end levels.

The package depends on common libraries like requests for HTTP communication, protobuf and grpcio for efficient data serialization, ua_parser for user agent analysis, and ip3country for geolocation. It supports Python 3.7 and later, making it compatible with modern Python versions.

Use it for:

  • Roll out new features gradually to a percentage of users and monitor impact before full release
  • Run A/B tests to compare feature variants and measure their effect on key metrics
  • Manage dynamic configuration values that can be updated server-side without code deployment
  • Gate features based on user properties, location, or device type for targeted rollouts
  • Disable problematic features in production without redeploying code

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Statsig is a Python server SDK for managing feature flags, dynamic configs, and A/B tests in production environments, enabling controlled feature rollouts and experimentation.

Yes, if you need server-side feature flag and experimentation infrastructure. The package is actively maintained, has low install friction, carries no license restrictions, and is positioned in the top 5000 PyPI packages. It requires a Statsig account to function, so evaluate that dependency against your infrastructure needs.

Install

statsig on PyPI

pip

pip install statsig

uv

uv add statsig

poetry

poetry add statsig

Installing statsig

Before you install

Low install friction with a pure Python wheel distribution. Active maintenance with a recent release (22 days old) and ongoing commits. Eight runtime dependencies are all common, well-maintained libraries.

License in practice

ISC license is permissive and poses no restrictions on commercial or private use, modification, or redistribution.

Quickstart

pip install statsig

from statsig import Statsig

Statsig.initialize('your-server-key')
gate_result = Statsig.check_gate(user_id, 'gate_name')

Requires a Statsig account and server key from statsig.com to initialize the SDK.

Verify before relying

  • Whether the SDK supports real-time config updates or requires polling intervals
  • Performance characteristics under high-volume feature flag evaluation
  • Whether local caching or in-memory evaluation is available to reduce latency

Package facts

License ISC (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 8 — requests, ua_parser, ip3country, grpcio, protobuf, ijson, typing-extensions, brotli
Maintenance actively maintained — 22 days since the last release
Last repo commit
First released
Downloads 8,212,836/month — #1,650 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: statsig-0.72.0-py3-none-any.whl

Intended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Libraries

Tags

feature flags pythonfeature gates sdka/b testing frameworkdynamic configuration managementserver-side experimentationfeature rollout controlpython experiment sdk
feature-flagsexperimentationa-b-testing

More Libraries packages