Skip to main content

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.

Getting Started

Read through the Documentation or check out the Samples.

Development

Use the Node.js version in .node-version for repository tooling and local builds. For example, with nvm:

nvm install "$(cat .node-version)"

This is the repository toolchain version; it does not change the Node.js versions supported by the published SDK.

ID-list file routing and fallback

See ID-list loading for eager and lazy loading semantics, timeouts, concurrency, refresh behavior, and binding support.

download_id_list_file_api selects the preferred base URL for file downloads. Enable fallback_to_statsig_api to try the original file URL from the manifest after an overridden request fails with a retryable network error, provided that URL belongs to the trusted HTTPS OpenAI CDN origin:

let options = statsig_rust::StatsigOptions {
    download_id_list_file_api: Some("http://statsig-proxy:8080".to_string()),
    fallback_to_statsig_api: Some(true),
    ..Default::default()
};

Fallback accepts only https://statsigcdn.openai.com with the default port or explicit :443. Fallback sends no request or SDK credentials to other manifest origins; the original request error is returned. Fallback does not follow redirects. Custom network providers must implement send_without_redirects; otherwise the fallback returns an error without sending a request.

All ID-list file downloads, including direct CDN, proxy, and fallback requests, preserve the URL's path and query except for legacy range parameters, which are removed. Every request sends Range, statsig-id-list-file-size, and Accept-Encoding: identity headers, preserving the file identity and byte offset for incremental updates. Partial responses require a valid Content-Range matching the requested offset and received body length. They may use 206 or, for compatibility, 200. A 200 without Content-Range means the complete available file from byte zero; the SDK applies only bytes after the requested offset. Available bytes may be behind or ahead of the manifest: the SDK advances by bytes actually applied and keeps polling while below the advertised size. Responses that make no progress or have inconsistent ranges use the remaining retry budget without publishing the refresh. Partial bodies without Content-Range are unsupported; a malformed header is rejected even when the status is 200.

Set fallback_to_statsig_api to Some(false) or leave it unset to keep file downloads strictly on the selected destination. There is no fallback attempt when the override resolves to the original URL, no override is set, or the request fails with an authentication rejection (401/403) or another non-retryable error. Response parsing failures do not trigger fallback. This uses the existing option across language bindings; wrappers that disable it continue to opt out.

A successful proxy request makes no additional request. Primary and fallback requests share the same per-file attempt budget (three attempts by default). The next synchronization starts with the configured override again.

GNU/Linux heap trimming

By default, the SDK calls glibc's malloc_trim(0) after eligible config updates and mmap writes. To skip these calls across all SDK instances and native bindings in a process, set NO_MALLOC_TRIM in the worker environment.

export NO_MALLOC_TRIM=1

The SDK checks the variable before each trim. Only 1 and lowercase true skip the call. An unset variable or any other value keeps trimming enabled. For Flink, set the variable in the TaskManager environment and restart the workers so their Python processes inherit it. To restore the default, unset the variable and restart the workers.

Read-only data stores

Rust data stores can override DataStoreTrait::is_read_only(); Python DataStore subclasses can override the synchronous is_read_only() method:

def is_read_only(self) -> bool:
    return not self.is_leader

The default is False, preserving existing writable stores. Return True for a follower that only consumes shared cache entries. Bootstrap/polling reads and config hydration/evaluation remain enabled, but full network responses no longer build or compress hydrated cache snapshots or call the datastore's write methods. Delta responses continue to skip snapshot writes. Keep the role stable during an update. A failing Python capability check is treated as read-only.

Remote SDK telemetry control

Set StatsigOptions.disable_remote_telemetry to Some(true) to suppress Statsig-side diagnostics and SDK exception uploads. ObservabilityClient metrics/errors, local logs, console capture, custom events, and exposures remain active as configured.

Binding Enable suppression
Rust builder StatsigOptions::builder().disable_remote_telemetry(Some(true)).build()
Python StatsigOptions(disable_remote_telemetry=True)
Node { disableRemoteTelemetry: true }
Java new StatsigOptions.Builder().setDisableRemoteTelemetry(true).build()
Go NewOptionsBuilder().WithDisableRemoteTelemetry(true).Build()
C++ options.disable_remote_telemetry = true on StatsigOptionsBuilder
C options JSON {"disable_remote_telemetry": true}

Only boolean true enables suppression; false or unset/null preserves existing reporting. The option is captured per SDK/adapter at construction. Configure it before creating either; roll back by recreating them with false or unset. No process restart is needed. Environment variables and remote config cannot override it, and opposite settings remain isolated even under the same SDK key/instance ID.

Packages

Protobuf-typed reads and publication callbacks are described in Typed dynamic configs, with Python, Node, and Go API guides. See Python mmap preload for optional returnable hash precomputation when loading writer-published artifacts. See Verified blob reuse from mmap for automatic reuse of writer-verified large config values during SDK hydration.

Bindings

Community

If you need any assitance or just have a question, feel free to reach out to us on Slack.

Metadata

Release files for oai-statsig-python-core 0.42.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oai-statsig-python-core 0.42.0
File Size Uploaded Provenance Actions
oai_statsig_python_core-0.42.0.tar.gz 2.8 MB With provenance Details for oai_statsig_python_core-0.42.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for oai-statsig-python-core 0.42.0
File Actions
oai_statsig_python_core-0.42.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for oai_statsig_python_core-0.42.0-cp310-abi3-win_amd64.whl
oai_statsig_python_core-0.42.0-cp310-abi3-win32.whl CPython 3.10 abi3 Windows x86-32 Details for oai_statsig_python_core-0.42.0-cp310-abi3-win32.whl
oai_statsig_python_core-0.42.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for oai_statsig_python_core-0.42.0-cp310-abi3-musllinux_1_2_x86_64.whl
oai_statsig_python_core-0.42.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for oai_statsig_python_core-0.42.0-cp310-abi3-musllinux_1_2_aarch64.whl
oai_statsig_python_core-0.42.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for oai_statsig_python_core-0.42.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
oai_statsig_python_core-0.42.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for oai_statsig_python_core-0.42.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
oai_statsig_python_core-0.42.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for oai_statsig_python_core-0.42.0-cp310-abi3-macosx_11_0_arm64.whl
oai_statsig_python_core-0.42.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for oai_statsig_python_core-0.42.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 162.1 MB

Release files / oai_statsig_python_core-0.42.0.tar.gz

Download URL oai_statsig_python_core-0.42.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
53d599125652e2611e40cb0612109197e0096bc9beeb351c53fdfbf5db0bff7d
BLAKE2b-256 checksum
How to use checksums
ab3054294fee333fc936715d24c56628457915168ada243b0c9166016dc1a60c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / oai_statsig_python_core-0.42.0-cp310-abi3-win_amd64.whl

Download URL oai_statsig_python_core-0.42.0-cp310-abi3-win_amd64.whl
Size 9.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
bcb91383b4aa0ab50f5b07db4a1c2116f64d3b6c78cd29e554ed50663098590b
BLAKE2b-256 checksum
How to use checksums
5d1a97131a02803b049250e4142d3b4f49e15432aee557ac5129af792b59e133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / oai_statsig_python_core-0.42.0-cp310-abi3-win32.whl

Download URL oai_statsig_python_core-0.42.0-cp310-abi3-win32.whl
Size 8.0 MB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
4aff1ab4702220287ab0f660a951ef59c7b14f773d521604dad00243a6bd31f6
BLAKE2b-256 checksum
How to use checksums
df811aeb1ae20c267a1bea2a8f820010e7116be791e8f8a6435f3fea7d9d4969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / oai_statsig_python_core-0.42.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL oai_statsig_python_core-0.42.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 30.8 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
38abec930c36fd14e4b333d30763a6c9f6cb55125fdb2264994186d8696121cc
BLAKE2b-256 checksum
How to use checksums
38e92c60a58cff0a21169fe06ade2d5c2846e3206e50999c839e2d7a290637a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / oai_statsig_python_core-0.42.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL oai_statsig_python_core-0.42.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 30.0 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
2897c1142afe74f56f49638eb77077f258be661d4dee494843e735b76c6742c3
BLAKE2b-256 checksum
How to use checksums
12c3f6b0a7aa40934e96cd3305d012e8eef5c85eb982dab34fe5c12ddada01ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / oai_statsig_python_core-0.42.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL oai_statsig_python_core-0.42.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 33.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
4f1297f244b9f28376ae66e1340d2b0ba5fe1a42504b7ea456c50ba559488531
BLAKE2b-256 checksum
How to use checksums
3c14c141f401699e725212441a7f9be1c5ce1b33459f423fbcb65ff838be5ebb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / oai_statsig_python_core-0.42.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL oai_statsig_python_core-0.42.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 29.4 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
308ff62b81d915d258dbfe08cfd113917fca9b421fe4aabb4f15ae2193683756
BLAKE2b-256 checksum
How to use checksums
f25506387493cddcd073ef51a57d0999d88253af1165aa74e9a43d1676c56ced
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / oai_statsig_python_core-0.42.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL oai_statsig_python_core-0.42.0-cp310-abi3-macosx_11_0_arm64.whl
Size 9.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f6c6378309ab1a611d7fd2044a39dd929edc00101a563cf1bcd054f31a15ecd8
BLAKE2b-256 checksum
How to use checksums
5770720373526ee992a3d03ef8ea451eddc59a158f6156e78f3ebf3c1af5a819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / oai_statsig_python_core-0.42.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL oai_statsig_python_core-0.42.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 9.5 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
35baf3c1318fe8ed2efad58d3cf04d0035b06cc7ac53b6a1b153333c16d178d3
BLAKE2b-256 checksum
How to use checksums
110032e5c1f794136eba0faaf8f64462828c4323655bad819c75fe830423ed57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for oai-statsig-python-core 0.42.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for oai_statsig_python_core-0.42.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.42.0 This release

9 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page