# statsig-python-core

> Statsig Python bindings for the Statsig Core SDK.

- **URL**: https://www.freshcrate.ai/projects/statsig-python-core
- **Author**: Statsig
- **Category**: Developer Tools
- **Latest version**: `0.19.4` (2026-06-01)
- **License**: ISC
- **Source**: https://github.com/statsig-io/statsig-server-core/releases
- **Homepage**: https://statsig.com/
- **Language**: Rust
- **GitHub**: 21 stars, 13 forks
- **Registry**: pypi (`statsig-python-core`)
- **Tags**: `pypi`

## Description

<h1 align="center">
	<a href="https://statsig.com/?ref=gh_server_core">
		<img src="https://github.com/statsig-io/js-client-monorepo/assets/95646168/ae5499ed-20ff-4584-bf21-8857f800d485" />
	</a>
    <div />
	<a href="https://statsig.com/?ref=gh_server_core">Statsig</a>
</h1>

<p align="center">
	<a href="https://github.com/statsig-io/statsig-server-core/blob/main/LICENSE">
        	<img src="https://img.shields.io/badge/license-ISC-blue.svg?colorA=1b2528&colorB=ccfbc7&style=for-the-badge">
    	</a>
	<a href="https://www.npmjs.com/package/@statsig/statsig-node-core">
        	<img src="https://img.shields.io/npm/v/@statsig/statsig-node-core.svg?colorA=1b2528&colorB=b2d3ff&style=for-the-badge">
    	</a>
	<a href="https://statsig.com/community?ref=gh_server_core">
        	<img src="https://img.shields.io/badge/slack-statsig-brightgreen.svg?logo=slack&colorA=1b2528&colorB=FFF8BA&style=for-the-badge">
    	</a>
</p>

Statsig helps you move faster with feature gates (feature flags), and/or dynamic configs. It also allows you to run A/B/n tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, check out our product and create an account at [statsig.com](https://www.statsig.com/?ref=gh_server_core).


## Getting Started

Read through the [Documentation](https://docs.statsig.com/server-core?ref=gh_server_core) or check out the [Samples](https://github.com/statsig-io/statsig-server-core/tree/main/examples).

## Packages

Bindings

- Node [[npm](https://www.npmjs.com/package/@statsig/statsig-node-core)] [[source](https://github.com/statsig-io/statsig-server-core/blob/main/statsig-node)] [[docs](https://docs.statsig.com/server-core/node-core?ref=gh_server_core)] 

- Python [[pypi](https://pypi.org/project/statsig-python-core)] [[source](https://github.com/statsig-io/statsig-server-core/blob/main/statsig-pyo3)] [[docs](https://docs.statsig.com/server-core/python-core?ref=gh_server_core)] 

- PHP [[packagist](https://packagist.org/packages/statsig/statsig-php-core)] [[source](https://github.com/statsig-io/statsig-server-core/blob/main/statsig-php)] [[docs](https://docs.statsig.com/server-core/php-core?ref=gh_server_core)] 

- Java [[maven](https://search.maven.org/artifact/com.statsig/javacore)] [[source](https://github.com/statsig-io/statsig-server-core/tree/main/statsig-java)] [[docs](https://docs.statsig.com/server-core/java-core?ref=gh_server_core)] 

- Rust [[crates.io](https://crates.io/crates/statsig-rust)] [[source](https://github.com/statsig-io/statsig-server-core/tree/main/statsig-rust)] [[docs](https://docs.statsig.com/server-core/rust-core?ref=gh_server_core)] 

- Elixir [[hex](https://hex.pm/packages/statsig_elixir)] [[source](https://github.com/statsig-io/statsig-server-core/tree/main/statsig-elixir)] [[docs](https://docs.statsig.com/server-core/elixir-core?ref=gh_server_core)] 



## Community

If you need any assitance or just have a question, feel free to reach out to us on [Slack](https://statsig.com/community?ref=gh_server_core).

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `0.19.4` | 2026-06-01 | High | ### Breaking Changes   - N/A    ### New Features   - Node.js: N/A   - Java: N/A   - Python: N/A   - Rust: N/A   - .NET: N/A   - Elixir: N/A    ### Improvements & Fixes   - Node.js: Inherits core layer-sampling fix and evaluator performance improvements.   - Java: Inherits core layer-sampling fix and evaluator performance improvements.   - Python:     - Fix numeric coercion for large integer `user.custom` values that previously broke evaluation.     - Faster typed `DynamicConfig`/`Experiment` acc |
| `0.19.3` | 2026-04-23 | High | ### Improvements & Fixes - Fix for protobuf "passPercentage" rounding      >Included In This Release >- 69efed87ac4ddadf84297055d105f1cbe0392fd2 Daniel Loomb >   - fix: allow floating point in proto specs  **Full Changelog**: https://github.com/statsig-io/statsig-server-core/compare/0.19.1...0.19.3 |
| `0.19.2` | 2026-04-21 | Low | Imported from PyPI (0.19.2) |
| `0.19.1` | 2026-04-13 | Medium | ### Breaking Changes - N / A ### New Features - Made better workflow around dataStore        >Included In This Release >- 516ffd8e2c9897e88a227eeec7cb55a780ffb26e statsig-kong[bot] >   - chore: bump version to 0.19.1-rc.2604121706 >- a37f71e052ec800c601ce7c54785c851a7e3899e Xin Li (Bot) >   - [automated] sync rc with main >- d3d4022469c23082c8030f2829d6cab8bc102ba0 statsig-kong[bot] >   - [automated] chore: bump version to 0.19.1-beta.2604110309 (#2906) >- 00cf857b77087c26ad43ed1f2a8b71883069ac1 |
| `0.19.0` | 2026-04-09 | Medium | ### Breaking Changes - N / A ### New Features - Fast Core APIs in Node and Python. Fix Node Core SDK Regression      >Included In This Release >- 016f01d86d0d97b5a82d0ec8ef94708fe4820281 Weihao Ding >   - [cherrypick][rc] Revert "chore: change compilation profile" (#2894) >- 4ea23fbdf034d3a065bc3969c2b76890ee9e88fc statsig-kong[bot] >   - chore: bump version to 0.18.2-rc.2604080017 >- b3ecd1245d34bb566d173a95c7f57095bba1d523 Xin Li (Bot) >   - [automated] sync rc with main >- c509f10f72974c6e196 |
| `0.18.1` | 2026-04-08 | Medium | ### Breaking Changes - N / A  ### Improvements & Fixes - Sampling logic Improvements around exposure loggings.       >Included In This Release >- 98839832b9508f119fd6308f930fd30a61df56bd statsig-kong[bot] >   - chore: bump version to 0.18.1-rc.2604070137 >- 47ca459c44aa9b3243dd8a1d2eabcd6964dcfe3d Xin Li (Bot) >   - [automated] sync rc with main >- e058c1a455ce0ab2189982568eb2e750ca8789bb tvh-statsig >   - Read from config for sampling and dedupe ttls (#2874) >- ac938eeb7a1f5e086b62b4e2568b3c341 |
| `0.18.0` | 2026-04-06 | Medium | ### Breaking Changes - n / a ### New Features - Node.js: - Java: - Python: - Rust: - .NET: - Elixir:  ### Improvements & Fixes - Node.js: - Java: - Python: - Rust: - .NET: - Elixir:       >Included In This Release >- 043f366d2cbaca0c8548f5d7bed77901351e2158 statsig-kong[bot] >   - chore: bump version to 0.17.3-rc.2603272155 >- 361e9c38a2a096eab53de9d1a58aaba70973a1b8 Xin Li (Bot) >   - [automated] sync rc with main >- 0bd87afe2c341fc58c7a266d87b7afafbeca08bf Weihao Ding >   - feat: add backgroun |
| `0.17.2` | 2026-03-25 | Medium | ### Breaking Changes - N / A  ### Improvements & Fixes - Python: Serialize none values in nested fields such as user.custom and event.metadata - Rust: Apply sampling to proto mode.       >Included In This Release >- dffb16ed05a11f25fb234d1875c695a06fa424cc kat-statsig >   - [cherrypick][rc] Update server-core to handle samplingRate correctly (#2836) >- b0dceab03d75587792e0431e40f792acbd22bf15 statsig-kong[bot] >   - chore: bump version to 0.17.2-rc.2603240137 >- e446c8b44c0ccf35 |
| `0.17.1` | 2026-03-23 | Medium | ### New Features  ### Improvements & Fixes - Python: Faster StatsigUser Creation in Python - Use connection pool for logEvents and sdkException requests - Fallback less to CDN        >Included In This Release >- 527339f7069f5f44ba0d82789f9eeab77016bd74 Weihao Ding >   - [release] 0.17.1-rc.2603201903 - Pyo3 Fixes [rc] (#2814) >- d326694402f7acbbdc3a1630a93a2a46aaf9a8df Weihao Ding >   - [cherrypick][rc] chore: safely handle large numbers (#2813) >- 2ba24631a3134ad1fcd99e1ec44455228ec17515 statsi |
| `0.17.0` | 2026-03-18 | Low | ### Breaking Changes - Python: `statsig_python_core` now requires Python 3.10+. The Python bindings were migrated to PyO3 0.28 and now build with `abi3-py310`, so Python 3.7-3.9 are no longer supported. ### New Features - Node.js: support bytes in dataStore - Python: support bytes in dataStore  ### Improvements & Fixes - Python: Some core API perf improvements       >Included In This Release >- fb36b408d2e1d4e3a95dd2ebdc2f917671dfff1a statsig-kong[bot] >   - chore: bump version to 0.16.6-rc.2603 |

## Citation

- HTML: https://www.freshcrate.ai/projects/statsig-python-core
- Markdown: https://www.freshcrate.ai/projects/statsig-python-core.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/statsig-python-core/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
