octroi-ingest
The Octroi cloud event client for Python. BSL 1.1, deliberately separate from
the MIT octroi package — the SDK works with no cloud and no BSL code
installed (spec §1.1).
pip install octroi-ingest
from octroi_ingest import IngestClient
from octroi.fastapi import Octroi
client = IngestClient(api_key=os.environ["OCT_KEY"])
tw = Octroi(..., sinks=[client.sink])
Zero runtime dependencies: stdlib threading, gzip and urllib.
Delivery is §7 verbatim, matching the TypeScript client behaviour for
behaviour: batches of 100 or every 5s, gzip over 1 KiB, at-least-once with the
same event ids on retry, a 10k retry buffer that drops oldest on overflow —
with the loss reported in the stream via a gate.error that rides alongside
the next batch, so it can never itself be dropped. sink() appends under a
lock and returns; every network cost lives on the worker thread. A 4xx
discards (a bad key never succeeds), 5xx/429 backs off exponentially and
eventually gives up loudly rather than growing without bound.
close() stops accepting first, then makes one final best-effort flush — a
failing final flush never schedules retries after you were told it stopped.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file octroi_ingest-0.1.0.tar.gz.
File metadata
- Download URL: octroi_ingest-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab85cc2419370df8251c253127eb16ac744469bc9d8cde1a0f99edd7be21aa2b
|
|
| MD5 |
1e8719e11ef3c93f47ed5e29a0c1d477
|
|
| BLAKE2b-256 |
d74579e191550f896b80129da6ddd65e1cf80435b0dd47c75da7844a834ff9fb
|
File details
Details for the file octroi_ingest-0.1.0-py3-none-any.whl.
File metadata
- Download URL: octroi_ingest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
246e5fad071eeb1e8d6c1591126e49a6302bca4a721f1184a1e3b43efda5b975
|
|
| MD5 |
5f0418d782c63103322e019609da7b10
|
|
| BLAKE2b-256 |
85fc0c329e1baca6bc5e6e721931d6e9abd87bd0b59ebe7604be4fe148489283
|