Handler for batching messages to azure eventhubs
Project description
Flextream 🏞️
Utility library forstreaming to Azure Event hubs. Handles background threaded process, and connection caching to minimise bottlenecks when streaming data over hubs.
Can be pip installed with pip install flextream.
To use, you'll mostly, just need a single function:
from flextream import send_to_event_hub
send_to_event_hub(
{"message": "hello world!", "also_some_numbers": [1, 2, 3]},
namespace="namestapce-name.servicebus.windows.net",
eventhub="my-first-eventhub",
latency=10,
)
In the above example, bespoke credentials haven't been passed into the credential keyword, so it will fall back to authenticating with DefaultAzureCredentials. The latency parameter is the maximum amount of time in seconds that a message will be held onto before being sent in a background triggered thread.
Any other messages sent to the eventhub during the wait time will be bundled alongside in a batch for efficiency.
Project details
Release history Release notifications | RSS feed
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 flextream-0.1.2.tar.gz.
File metadata
- Download URL: flextream-0.1.2.tar.gz
- Upload date:
- Size: 60.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41400cb3eecaae9030c12746b3149e31e3e3e87a7d0135de2e1775a59d0c5e19
|
|
| MD5 |
6606742a6769e6a4711bb3a1e58132e5
|
|
| BLAKE2b-256 |
4e6fff37d4a83953e9e960c304c87d41488dda81254220c69e4ec813b484587e
|
File details
Details for the file flextream-0.1.2-py3-none-any.whl.
File metadata
- Download URL: flextream-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfdd03100ffd8c149ec54f07a2e2e8216a7d9d3866a95f4c4468d5118f792d87
|
|
| MD5 |
b4a164783691004aba783ca2d0c8a57a
|
|
| BLAKE2b-256 |
79ae2cbaf6b8feeb8598aca44c8d885574213c15a519e99a5ece658dcf6a4953
|