scitex-events
Zero-dep async event bus for the SciTeX ecosystem.
Full Documentation · uv pip install scitex-events[all]
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
Event types are nonempty filename components, such as test_complete or
stage-2.result. Path separators, Windows drive prefixes, ./.. and NUL
are rejected before state access. Unicode names remain supported.
Demo
flowchart LR
Producer[ev.emit] --> JSONL[(JSONL store)]
JSONL --> Latest[ev.latest]
JSONL --> History[ev.history]
JSONL -. optional .-> Webhook[Cloud webhook]
Figure 1. Demo path. One emit call lands in the JSONL store and is immediately readable via latest/history.
Installation
uv pip install "scitex-events[all]"
Per-module extras
| Extra | Pulls in |
|---|---|
all |
dev + docs (recommended) |
dev |
pytest, pytest-cov, pytest-timeout, ruff |
docs |
Sphinx + RTD theme + myst-parser (docs build only) |
uv pip install -e ".[dev]" # editable install for contributors
flowchart LR
Emit[ev.emit] --> Schema[_schema.Event]
Schema --> Store[(JSONL store)]
Store --> Latest[ev.latest]
Store --> History[ev.history]
Store -. optional .-> Webhook[webhook delivery]
Registry[_types registry] --> Info[ev.list_types / get_type_info]
Figure 2. Event flow. Emission validates against the schema, appends to the local JSONL store, and fans out to readers plus an optional webhook.
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 under ~/.scitex/events/runtime/
(resolved via local_state.runtime_path("events")) and can optionally be forwarded
to a cloud webhook.
Status
Standalone fork of scitex.events. Pure stdlib — zero runtime deps except
scitex-config (canonical local-state directory resolver per the SciTeX
local-state directories skill). 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).
Metadata
Release files for scitex-events 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scitex_events-0.1.8.tar.gz | 7.7 MB | Without provenance | Details for scitex_events-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scitex_events-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for scitex_events-0.1.8-py3-none-any.whl |
Total release size: 15.4 MB
Release files / scitex_events-0.1.8.tar.gz
| Download URL | scitex_events-0.1.8.tar.gz |
|---|---|
| Size | 7.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5cb86701bdb9d5fd328b3ca754c23191ce0c8b86ecc5051de33fafe1979db11
|
|
BLAKE2b-256 checksum How to use checksums |
92cde776cd09034a0e9a89a198b66bc65f2d8e07dedef06a0ea205b27e3673f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / scitex_events-0.1.8-py3-none-any.whl
| Download URL | scitex_events-0.1.8-py3-none-any.whl |
|---|---|
| Size | 7.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d3093e932bd1781492fe457641109eafc19a0728dd70e534afc0985e0dbacfa
|
|
BLAKE2b-256 checksum How to use checksums |
ac63ee1748df3fbc3c6465136b1b9d5e5fbd97e0027d4547994d06f4b851a325
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for scitex-events 0.1.8
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.