Skip to main content

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

Project description

scitex-events

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

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


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.1.tar.gz (20.9 kB 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.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_events-0.1.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • 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.1.tar.gz
Algorithm Hash digest
SHA256 7552fb61d5548524b09782b73d2162d30168f5835d7acd89deffd655f679c5b4
MD5 7ec39d18beee3c31a3adcbbdd16aa687
BLAKE2b-256 46c602a932db36adf036254ec9ab7931d63485d13ce5c5ad63f6bb6885d31a16

See more details on using hashes here.

Provenance

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

Publisher: publish-pypi.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.1-py3-none-any.whl.

File metadata

  • Download URL: scitex_events-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79373f58b37dcc990c92969bbfd5ac418df9e536dc8b0aece2ec861ac4b67862
MD5 64c6c35df4c7965ce5c2903571ff3f2a
BLAKE2b-256 153b1122f24c9fbe2bcd083dd2c0878b938206ef374f2d243d9614ac26d433a7

See more details on using hashes here.

Provenance

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

Publisher: publish-pypi.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