Skip to main content

Lightweight multi-threaded job framework

Project description

Overview

execlog is a lightweight multi-threaded job framework written in Python. It implements a simple event-based model over core Python utilities like ThreadPoolExecutor to facilitate reactivity and manage concurrent responses.

There are a few top-level classes exposed by the package:

  • Router: Central event routing object. Routers facilitate route registration, allowing for pattern-based matching of events to arbitrary callback functions. For example, you could have a function that converts a PDF file to a collection images (callback), and want this function to be called for a new files (event) that match the glob *.pdf (pattern).
  • Listener: Connective event listening object, often created directly by router instances. Listeners pay attention to events arising along registered routes of an affiliated router, passing them through (after optional delays, debouncing, filtering, etc). In the above example, the associated Listener instance might wrap a tool like iNotify to dynamically respond to file events.
  • Server: Long-running process manager for listeners and optional live-reloading via HTTP. Interfaces with listener start() and shutdown() for graceful interruption.

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

execlib-0.4.3.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

execlib-0.4.3-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

Details for the file execlib-0.4.3.tar.gz.

File metadata

  • Download URL: execlib-0.4.3.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for execlib-0.4.3.tar.gz
Algorithm Hash digest
SHA256 8da58d519ab1a1881f607d91095ff50e0667465f70bd418dba7bcd6b38574786
MD5 5c9d59f8ea0044f2d8822ad8b2577528
BLAKE2b-256 765a2c3114eeee55d725e4077ce19917ff84599bb794c2b42eb6905b1c6576f8

See more details on using hashes here.

File details

Details for the file execlib-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: execlib-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 40.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for execlib-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa670be3f44c552db2bbb7f8d427741956f519efe6441437a425f0037512ec6e
MD5 191499111b756303afda53ce5b022d81
BLAKE2b-256 368ee2494b9be91fc9c04ad021b69d90109b53c3b2c8d083f8ff4bcebd7f6724

See more details on using hashes here.

Supported by

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