azfive-capture (Python)
AzFive product analytics for Python servers — events, identity, super
properties, and feature flags/experiments. Zero dependencies (stdlib only).
See sdk-spec/SPEC.md in the AzFive repo for the cross-SDK contract.
Install
pip install azfive-capture
Use a secret API key with the events:write scope (AzFive → Settings → API
Keys). Secret keys are also valid on /v1/decide, so server-side flag
evaluation needs no extra setup.
Quickstart
from azfive_capture import Client
azfive = Client("azfive_…", host="https://analytics.example.com", project="backend")
azfive.capture("invoice_paid", {"amount": 99}, distinct_id="user-42")
azfive.people.set({"plan": "pro"}, distinct_id="user-42")
# experiments / feature flags — get_flag() reports the exposure automatically,
# deduped per (distinct_id, flag, value)
variant = azfive.get_flag("user-42", "exp-checkout") # 'control' | 'test' | False | None
if azfive.is_flag_enabled("user-42", "new-onboarding"):
...
azfive.flush() # also flushed by the background thread and at exit
Batching: events queue in memory (batch 10 / 5 s / max 1000, oldest dropped)
and are delivered by a daemon thread; failed batches retry on the next tick.
close() (also registered via atexit) drains the queue.
Tests
pip install -e '.[dev]' && pytest # golden vectors from ../sdk-spec/vectors
Release files for azfive-capture 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| azfive_capture-0.1.0.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| azfive_capture-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / azfive_capture-0.1.0.tar.gz
| Download URL | azfive_capture-0.1.0.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d9b7d05c18b06eb9736a5d2f16d78463b292f14b40acd15f851453e87b6b885
|
|
BLAKE2b-256 checksum How to use checksums |
a64e14967ce1e2acfb9bc1a4de07906e3c8f589e2bfdf6d5600d474742ef47e4
|
| 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 18, 2026.
Transparency logRelease files / azfive_capture-0.1.0-py3-none-any.whl
| Download URL | azfive_capture-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb4c5ea4800a904430a3e41d1e06f39aa3e46ca9eedb74834dbd3aa8ec63fa8b
|
|
BLAKE2b-256 checksum How to use checksums |
b01316318d538463ba3f2912503cda0f663f031a656917fb3a5f37e8fe79d106
|
| 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 18, 2026.
Transparency log