releasepace
Official Python SDK for ReleasePace — production-grade feature flags.
Zero required dependencies — uses Python stdlib urllib by default, requests optionally.
Installation
pip install releasepace
# With requests (recommended for production)
pip install "releasepace[requests]"
Quick start
from releasepace import ReleasePace
# Context manager (recommended — auto-disconnects)
with ReleasePace(api_key='rp_live_xxxxxxxxxxxx', environment='production') as rp:
if rp.is_enabled('new-checkout'):
render_new_checkout()
label = rp.get_string('cta-label', default='Get started')
limit = rp.get_number('rate-limit', default=100)
cfg = rp.get_json('feature-config', default={})
Django / Flask integration
# settings.py / app factory — create once, reuse everywhere
import atexit
from releasepace import ReleasePace
rp = ReleasePace(api_key='rp_live_xxx', environment='production')
rp.connect()
atexit.register(rp.disconnect)
# views.py
def checkout_view(request):
if rp.is_enabled('new-checkout'):
return render(request, 'checkout_v2.html')
return render(request, 'checkout.html')
API reference
ReleasePace(api_key, **options)
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
required | SDK key from your dashboard |
environment |
str |
"production" |
Environment slug |
api_url |
str |
https://api.releasepace.io |
Override API URL |
poll_interval |
float |
30.0 |
Seconds between polls |
context |
dict |
{} |
Evaluation context (userId, country…) |
on_update |
callable |
None |
Called with List[Flag] when flags change |
on_error |
callable |
None |
Called with Exception on fetch errors |
Methods
| Method | Returns | Description |
|---|---|---|
connect() |
ReleasePace |
Fetch flags, start background polling |
disconnect() |
None |
Stop polling |
refresh() |
None |
Force immediate re-fetch |
is_enabled(key) |
bool |
Check boolean flag |
get_string(key, default='') |
str |
Get string flag value |
get_number(key, default=0) |
float |
Get number flag value |
get_json(key, default=None) |
Any |
Get JSON flag value |
get_value(key, default=None) |
Any |
Get any flag value |
get_all_flags() |
List[Flag] |
Get all flags |
set_context(**kwargs) |
None |
Update evaluation context |
Gradual rollouts
rp.set_context(userId='user-123')
if rp.is_enabled('new-feature'):
# Same user always gets same result (sticky bucketing)
...
Self-hosting
rp = ReleasePace(
api_key='rp_live_xxx',
api_url='https://api.yourdomain.com',
)
Author
License
MIT © ReleasePace
Metadata
Release files for releasepace 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| releasepace-1.0.1.tar.gz | 7.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| releasepace-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.3 kB
Release files / releasepace-1.0.1.tar.gz
| Download URL | releasepace-1.0.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
538cabebb224c038e772bb542203115e3c9a88a1ebbde13c7f5da5ff008300dc
|
|
BLAKE2b-256 checksum How to use checksums |
0a358661cec90af1b84490b9129027fca4b653fed2676665f235ca2474dcfa50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 23, 2026.
Transparency logRelease files / releasepace-1.0.1-py3-none-any.whl
| Download URL | releasepace-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ab33d258f6c4885733cee38da037bf13e59cacc953f51081747deabbc7af820
|
|
BLAKE2b-256 checksum How to use checksums |
fcaf97e5e692a7f41280a380666176b0969b7caa2161f0cb0848917340560ff2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 23, 2026.
Transparency logSecurity for releasepace 1.0.1
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 2 files in this release have been uploaded with provenance metadata.
Attestation for releasepace-1.0.1.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 Aug 23, 2026.
Transparency logA 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.