# statsig

> Statsig Python Server SDK

- **URL**: https://www.freshcrate.ai/projects/statsig
- **Author**: Tore Hanssen
- **Category**: Frameworks
- **Latest version**: `0.71.6` (2026-04-21)
- **License**: ISC
- **Source**: https://github.com/statsig-io/python-sdk
- **Language**: Python
- **GitHub**: 9 stars, 15 forks
- **Registry**: pypi (`statsig`)
- **Tags**: `pypi`

## Description

# Statsig Python Server SDK
[![tests](https://github.com/statsig-io/python-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/statsig-io/python-sdk/actions/workflows/test.yml)

The python SDK for server/multi-user environments.

Statsig helps you move faster with Feature Gates (Feature Flags) and Dynamic Configs. It also allows you to run A/B tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, create an account at [statsig.com](https://www.statsig.com).

## Getting Started

Visit our [getting started guide](https://docs.statsig.com/server/pythonSDK).

## Testing

Each server SDK is tested at multiple levels - from unit to integration and e2e tests.  Our internal e2e test harness runs daily against each server SDK, while unit and integration tests can be seen in the respective github repos of each SDK.

Run local unit tests separately for now:

```
python3 -m unittest tests/server_sdk_consistency_test.py
python3 -m unittest tests/test_statsig_e2e.py
```

## Guidelines

- Pull requests are welcome! 
- If you encounter bugs, feel free to [file an issue](https://github.com/statsig-io/python-sdk/issues).
- For integration questions/help, [join our slack community](https://join.slack.com/t/statsigcommunity/shared_invite/zt-pbp005hg-VFQOutZhMw5Vu9eWvCro9g).

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `0.71.6` | 2026-04-21 | Low | Imported from PyPI (0.71.6) |
| `0.71.5` | 2026-03-13 | Low | ### Fixes - Fix the default value for reuse connection pool for logEvent.      >Included In This Release >- 6fbe68ea6697ba932da94d282a7021e89317b548 Weihao Ding >   - fix: change reuse connection pool for logEvent default to be false (#522)  **Full Changelog**: https://github.com/statsig-io/python-sdk/compare/0.71.4...0.71.5 |
| `0.71.4` | 2026-03-12 | Low | ### New Features - new option to reuse the connection pool for logEvent       >Included In This Release >- aa82bd97ea05c307400fc7bd9957fbc0d24d3857 Daniel >   - revert 198efc51a18ecd91bdfc65cf55d2e57fc9b76a12 (#520) >- 47005cfb890acc8de3952e4dc16fa9369567984c Weihao Ding >   - feat: add a option to control whether reuse connection pool for logevent (#519)  **Full Changelog**: https://github.com/statsig-io/python-sdk/compare/0.71.3...0.71.4 |
| `0.71.3` | 2026-03-11 | Low | ### Improvements - Add background config sync metric       >Included In This Release >- afa1cc88ed0e006a4e0903f38a18b4e755584000 kat-statsig >   - Hook up background sync telemetry metrics (#517)  **Full Changelog**: https://github.com/statsig-io/python-sdk/compare/0.71.2...0.71.3 |
| `0.71.2` | 2026-03-10 | Low | ### Improvements - Re-use connections for /sdk_exception logging       >Included In This Release >- b1e4e9e6a6c3f16d033e14d8705f1499bf716b67 Daniel >   - chore: use requests.Session for /sdk_exception (#515)  **Full Changelog**: https://github.com/statsig-io/python-sdk/compare/0.71.1...0.71.2 |
| `0.71.1` | 2026-03-09 | Low | ### Fixes - Remove hard dependency on specific httpx version      >Included In This Release >- 35d394a8366cb961e60c31654530ae60f2c2a342 Daniel >   - chore: remove hard dep of specific httpx version (#513)  **Full Changelog**: https://github.com/statsig-io/python-sdk/compare/0.71.0...0.71.1 |
| `0.71.0` | 2026-03-09 | Low | ### New Features - Adds IDList support to DataStore - (Experimental) Support HTTP2       >Included In This Release >- 198efc51a18ecd91bdfc65cf55d2e57fc9b76a12 Daniel >   - feat(experimental): add http2 support via httpx module (#511) >- 6d4c987c5965bf7cdb90ea9edaa92b6f15fa1599 kat-statsig >   - add metadata to ua (#508) >- 7270608f04bc327ae91b069e3021694435c5437a paul-statsig >   - [datastore] support download id list in datastore (#506)  **Full Changelog**: https://github.com/statsig-io/python- |
| `0.70.5` | 2026-03-04 | Low | ### Improvements - Support download id list file through statsig proxy  ### Fixes - Patched unintentional reverts, restored network latency metric with new tags.       >Included In This Release >- 5e2ba902dd9692547a0ac41608e128ed39512fe5 kat-statsig >   - Add context tag to network latency metric (#504) >- 3dc8b90b302f7f4f5db6dbf12cfae6fbd9d8dde5 Daniel >   - chore: address unintentional revert (#502) >- ed75666c69da4f57826fedf01f7107b25430cf75 Weihao Ding >   - feat: support sfp download id lis |
| `0.70.4` | 2026-03-03 | Low | ### Improvements - Reduce the network requests made to CDN       >Included In This Release >- 28a6f11fcf2a0666e786cc26396de49199b3c480 Daniel >   - chore: reduce fallback to statsig network on bg sync (#498) >- d385c6431178e6ea9e4e93dad0924c560be9a229 Daniel >   - Revert "Merge branch 'main' of https://github.com/statsig-io/private-python-sdk" >- 219c5b4b76a6ed314d977b1f51745bafd41cb471 Daniel >   - Merge branch 'main' of https://github.com/statsig-io/private-python-sdk >- 6d2f951239529a1e75d13 |
| `0.70.3` | 2026-02-26 | Low | ### New Features - Add two more tags into Init Metrics       >Included In This Release >- 65f5af5a3d133af2d68b8e12812f98ddc41789e3 Weihao Ding >   - Revert "feat: add sfp support for download single id list file" (#496) >- fef0d7c811284dfb17626717886cdfd46ab65372 Weihao Ding >   - feat(ob): add more tags into init metric (#495) >- 6db9c5a2d952ba2423b92d41e88ca15fdf5bff23 Weihao Ding >   - feat: add sfp support for download single id list file (#494)  **Full Changelog**: https://github.com/statsi |

## Citation

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

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