Registry / devops / oai-statsig-python-core

oai-statsig-python-core

JSON →
library0.23.1pypypiunverified

Statsig Python bindings for the Statsig Core SDK, providing feature gates, dynamic configs, experimentation, and logging. Version 0.23.1, supporting Python >=3.10. Active development.

pip install oai-statsig-python-core
INSTALL
IMPORT
SIG · OAI-STATSIG-PYTHON
O
oai-statsig-python-core
devopspythonv0.23.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StatsigServer
✓ from statsig_python_core import StatsigServer
✗ from statsig import StatsigServer

Initialize Statsig with server key, check a feature gate for a user.

import os import time from statsig import StatsigServer, StatsigUser server = StatsigServer() server.initialize(os.environ.get('STATSIG_SERVER_KEY', '')) user = StatsigUser(user_id='user123') gate = server.check_gate(user, 'my_gate') print(f'Gate result: {gate}') server.shutdown()
Debug
Known issues
breakingIn version 0.23.0, the SDK was renamed from 'statsig-core' to 'oai-statsig-python-core'. Imports changed from 'from statsig_core' to 'from statsig'.
fix
Update imports to 'from statsig import StatsigServer' and reinstall package.
affects: >=0.23.0
deprecatedThe use of 'statsig-core' package is deprecated. Existing installations using the old name may break on upgrade.
fix
Uninstall old package (pip uninstall statsig-core) and install 'oai-statsig-python-core'.
affects: all
gotchaForgetting to call 'shutdown()' can cause background threads to prevent clean exit.
fix
Call 'server.shutdown()' in a finally block or use context manager if available.
affects: all
Upgrade
Version history
0.23.1latest on PyPI · released Jun 2, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
oai-statsig-python-core — pip install oai-statsig-python-core · libregistry