getfluxly (Python)
Server-side Python SDK for GetFluxly. Same surface as the Node SDK so observability across SDKs lives in one mental model.
pip install getfluxly
Quick start (sync)
from getfluxly import Client
client = Client(token="gflux_secret_yourtoken")
client.track("subscription_started", external_id="user_42", properties={"plan": "pro"})
client.identify(external_id="user_42", traits={"email": "x@y.com", "plan": "pro"})
client.alias(user_id="user_42", anonymous_id="anon_a8f3c2")
client.flush()
client.shutdown() # also runs from atexit
Quick start (async)
from getfluxly import AsyncClient
async with AsyncClient(token="gflux_secret_yourtoken") as ac:
await ac.track("subscription_started", external_id="user_42", properties={"plan": "pro"})
Defaults
| Option | Default | Notes |
|---|---|---|
flush_at |
20 | Events queued before forced flush |
flush_interval |
5.0 | Periodic flush cadence, seconds |
max_retries |
2 | Per failed batch |
timeout |
5.0 | Per HTTP request, seconds |
max_queue_size |
1000 | Hard cap, raises queue_overflow |
Retries: 408, 425, 429, and 5xx with exponential backoff and +/- 25% jitter. Retry-After is honored. Each batch carries a unique X-Idempotency-Key. Each individual event also carries a stable message_id (UUID v4) generated when the payload is built — the backend uses (project_id, message_id) to deduplicate duplicate deliveries across retries.
Errors
from getfluxly import GFluxError
try:
client.track("invoice_paid", external_id="user_42")
except GFluxError as e:
if e.code == "queue_overflow":
... # back-pressure
elif e.retryable:
... # SDK already retried max_retries times
Full code table at docs.getfluxly.com/snippets/error-table.
Server keys never in browser
Client(token="gflux_secret_...") refuses to construct if it detects a Pyodide / Emscripten runtime, so a server-side script that accidentally ships to the browser fails loudly instead of leaking the key into client traffic.
License
MIT, see LICENSE.
Metadata
Release files for getfluxly 0.1.4
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 | Actions |
|---|---|---|---|---|
| getfluxly-0.1.4.tar.gz | 12.6 kB | With provenance | Details for getfluxly-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| getfluxly-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for getfluxly-0.1.4-py3-none-any.whl |
Total release size: 28.2 kB
Release files / getfluxly-0.1.4.tar.gz
| Download URL | getfluxly-0.1.4.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba2924dcf08d8e5f368959641cd764ca6e577d17351a286886403b00d9b14c60
|
|
BLAKE2b-256 checksum How to use checksums |
5b2365e2012dc1dba9025cc834976b6a55ffbf6ac12986038dcec862982960b5
|
| 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 / getfluxly-0.1.4-py3-none-any.whl
| Download URL | getfluxly-0.1.4-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e772f8b6c24dc10e4002191d79fcc7e5d9d3c60486a0b798bfff3e7e275e004
|
|
BLAKE2b-256 checksum How to use checksums |
35d26086fcad0ce3abca012d50f60028587b26ede4d231abdda7f80511ef8f88
|
| 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 getfluxly 0.1.4
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
Both files in this release have been uploaded with provenance metadata.
Attestation for getfluxly-0.1.4.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.