General-purpose async event bus (file-backed, JSON Lines) — standalone module from the SciTeX ecosystem
Project description
scitex-events
Zero-dep async event bus for the SciTeX ecosystem.
Full Documentation · uv pip install scitex-events[all]
Installation
pip install scitex-events
Architecture
scitex-events/
├── src/scitex_events/
│ ├── _emit.py # write event to JSONL store
│ ├── _history.py # latest / history / list_types
│ ├── _schemas.py # event-type registry
│ └── _webhook.py # optional cloud forwarder
└── tests/
1 Interfaces
Python API
import scitex_events as ev
# Emit an event (any kwargs become payload fields).
ev.emit("test_complete", project="figrecipe", status="success",
payload={"exit_code": 0, "module": "stats"})
# Latest event of a given type.
ev.latest("test_complete")
# Recent history (newest first).
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.
Demo
flowchart LR
Producer[ev.emit] --> JSONL[(JSONL store)]
JSONL --> Latest[ev.latest]
JSONL --> History[ev.history]
JSONL -. optional .-> Webhook[Cloud webhook]
Quick Start
import scitex_events as ev
ev.emit("test_complete", project="figrecipe", status="success",
payload={"exit_code": 0, "module": "stats"})
ev.latest("test_complete") # most recent event of this type
list(ev.history(limit=20)) # recent history
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.
Part of SciTeX
scitex-events is part of SciTeX. Install via
the umbrella with pip install scitex[events] to use as
scitex.events (Python) or scitex events ... (CLI).
Four Freedoms for Research
- The freedom to run your research anywhere — your machine, your terms.
- The freedom to study how every step works — from raw data to final manuscript.
- The freedom to redistribute your workflows, not just your papers.
- The freedom to modify any module and share improvements with the community.
AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.
License
AGPL-3.0-only (see LICENSE).
Project details
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.4.tar.gz.
File metadata
- Download URL: scitex_events-0.1.4.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
751a752272882919732a494ea7bdd9e9b2145e676c1f799062b5f15a8b0aae18
|
|
| MD5 |
cb5092aa85699f927890cbdfb6bbb6b8
|
|
| BLAKE2b-256 |
2f57038d43f5d5c18b6caeece43491d06f1c0e2e4f55d5670078229f81010f64
|
Provenance
The following attestation bundles were made for scitex_events-0.1.4.tar.gz:
Publisher:
pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-events
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_events-0.1.4.tar.gz -
Subject digest:
751a752272882919732a494ea7bdd9e9b2145e676c1f799062b5f15a8b0aae18 - Sigstore transparency entry: 1571485289
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-events@d89cc5731118bc35cf6086b571f45c3e3f2b1402 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-and-github-release-on-tag.yml@d89cc5731118bc35cf6086b571f45c3e3f2b1402 -
Trigger Event:
push
-
Statement type:
File details
Details for the file scitex_events-0.1.4-py3-none-any.whl.
File metadata
- Download URL: scitex_events-0.1.4-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd5e5c0af7abf567c819e84e7bb4023ba0ecddb9515d796153e26e176a57d393
|
|
| MD5 |
9484448bd991acda861f751c16fd4cc8
|
|
| BLAKE2b-256 |
2ef98e18b0a34dbe8362b081c4ccd6e174cc08df100b813b62cc34a08cdef06e
|
Provenance
The following attestation bundles were made for scitex_events-0.1.4-py3-none-any.whl:
Publisher:
pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-events
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_events-0.1.4-py3-none-any.whl -
Subject digest:
fd5e5c0af7abf567c819e84e7bb4023ba0ecddb9515d796153e26e176a57d393 - Sigstore transparency entry: 1571485303
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-events@d89cc5731118bc35cf6086b571f45c3e3f2b1402 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-and-github-release-on-tag.yml@d89cc5731118bc35cf6086b571f45c3e3f2b1402 -
Trigger Event:
push
-
Statement type: