General-purpose async event bus (file-backed, JSON Lines) — standalone module from the SciTeX ecosystem
Project description
scitex-events
General-purpose async event bus extracted from the SciTeX ecosystem as a standalone, zero-dep package.
Install
pip install scitex-events
Usage
import scitex_events as ev
# Emit
ev.emit("test_complete", project="figrecipe", status="success",
payload={"exit_code": 0, "module": "stats"})
# Read latest event of a given type
ev.latest("test_complete")
# {"type": "test_complete", "project": "figrecipe", ...}
# Recent history
list(ev.history(limit=20))
# Schemas / introspection
ev.list_types()
ev.get_type_info("test_complete")
Events are stored locally as JSON-Lines files (override path via SCITEX_EVENTS_DIR)
and can optionally be forwarded to a cloud webhook.
Status
Standalone fork of scitex.events. Pure stdlib — zero runtime deps. The
umbrella package's scitex.events import path is preserved via a
sys.modules-alias bridge so existing code continues to work.
License
AGPL-3.0-only (see LICENSE).
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 scitex_events-0.1.0.tar.gz.
File metadata
- Download URL: scitex_events-0.1.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58d76e0b16a0ddbab373e33d45273b136cbd6283f7e167cbaf8dcb6717c0799a
|
|
| MD5 |
f939cb4574d456b56304ac3214a80896
|
|
| BLAKE2b-256 |
816ca189402b4da87a784432a417838ed2ef851b7ec84ce0da96705acdc8d2cb
|
File details
Details for the file scitex_events-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scitex_events-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e0b971368d7f8d114c0dac387315a4506fdb942f47b559476420fd90a6c1845
|
|
| MD5 |
ddd973f400b4a6685cf486d8004c8ab4
|
|
| BLAKE2b-256 |
4b791e63e869c04263ce147cdbd1365c4dabb79e27c4c28e1c15067c88bad146
|