An experimental Python hook-based task runner.
Project description
coordinator
A simple library that manages hooks in Python applications.
Example
Simplest example
from gevent import monkey; monkey.patch_all()
from coordinator import Coordinator
coord = Coordinator()
@coord.register_task("my_hook")
def my_task(context):
print(context["message"])
coord.fire_hook("my_hook", {
"message": "Hello, World!"
})
Full documentation is WIP.
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
coordinator-1.0.0b1.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file coordinator-1.0.0b1.tar.gz
.
File metadata
- Download URL: coordinator-1.0.0b1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad3c61519cb0c4f3e3e1ba5b09e8ddd1eaac4cb041351f55e288316e18f439f9 |
|
MD5 | 1b417149f58c506d0139a25684ff3320 |
|
BLAKE2b-256 | e2a6d3e80903a432ee46fbd8b86f4d78ab9b02cca8a257c508c68bebd8adcc8f |
File details
Details for the file coordinator-1.0.0b1-py3-none-any.whl
.
File metadata
- Download URL: coordinator-1.0.0b1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5293ab393da3f1b937f8a8fc736a6d1676e92d5abc93697af7847fc40762cfac |
|
MD5 | 7d12cd4e5219c96f36930c0f874aac69 |
|
BLAKE2b-256 | 4ca3a0b96e53ac8b213fca1f26a6c6bf71f2c9d1878e0fdda24289b2e9227d32 |