Skip to main content

General-purpose async event bus (file-backed, JSON Lines) — standalone module from the SciTeX ecosystem

Project description

scitex-events

SciTeX

Zero-dep async event bus for the SciTeX ecosystem.

Full Documentation · uv pip install scitex-events[all]

PyPI Python Tests Coverage Docs License: AGPL v3


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

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. 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).


SciTeX

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

scitex_events-0.1.6.tar.gz (7.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_events-0.1.6-py3-none-any.whl (7.7 MB view details)

Uploaded Python 3

File details

Details for the file scitex_events-0.1.6.tar.gz.

File metadata

  • Download URL: scitex_events-0.1.6.tar.gz
  • Upload date:
  • Size: 7.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_events-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a3d5fa0ac2fe353f07aa94195e7966e294a13fc37d91d1722c118a4f025c4750
MD5 2d02556273acd46e8159332607b3d25a
BLAKE2b-256 74f26ce7cf40a018003920f9aa3bd7c3b8bfd6a4789e346dcf9905145cf045b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_events-0.1.6.tar.gz:

Publisher: pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-events

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_events-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: scitex_events-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_events-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 84d195ee881064f464ccead9b2cdd883d4b6f12c0136f2fbfee494415794e7c3
MD5 aae6515283666407344f86927b31a7f8
BLAKE2b-256 1ca3a30c44a2c77e0d609e2b7f518b99f43a7aeedb4f3527e6e5ae7ee573a4cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_events-0.1.6-py3-none-any.whl:

Publisher: pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-events

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page