Lightweight multi-threaded job framework
Project description
Overview
execlib 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
Listenerinstance 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()andshutdown()for graceful interruption.
Project details
Release history Release notifications | RSS feed
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 execlib-0.4.4.tar.gz.
File metadata
- Download URL: execlib-0.4.4.tar.gz
- Upload date:
- Size: 39.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62a6af4118f303c9bb73684d1667febda6b89dcf76a7be2a971ece23c9efa26f
|
|
| MD5 |
f448d28b4752613a9b0b27d50204fb2e
|
|
| BLAKE2b-256 |
9eb9e89a21c22ba70975b9bc01292a1197e975c7c28535deab672ce54cf3fde7
|
File details
Details for the file execlib-0.4.4-py3-none-any.whl.
File metadata
- Download URL: execlib-0.4.4-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dc74b610527867953cd5d55d515931767baf51f4bdf4f72fdd07dbc8ae15635
|
|
| MD5 |
67d42546849212faf33a717f647e9c89
|
|
| BLAKE2b-256 |
6e4da1670e60d2c0a5ad10a2b49f33189f1c2363b2236b55e1f3df2b55d01283
|