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 hashes)
Built Distribution
Close
Hashes for coordinator-1.0.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5293ab393da3f1b937f8a8fc736a6d1676e92d5abc93697af7847fc40762cfac |
|
MD5 | 7d12cd4e5219c96f36930c0f874aac69 |
|
BLAKE2b-256 | 4ca3a0b96e53ac8b213fca1f26a6c6bf71f2c9d1878e0fdda24289b2e9227d32 |