/Ku·ài/ Fast, swift, swiftness, sharp, to be satisfied, quick, rapid, rapidness, to hurry up..
Simple & fast event library.
- Free software: MIT license
- Documentation: http://pythonhosted.org/Kuai/
$ pip install Kuai --user
$ clone https://github.com/Duroktar/Kuai.git
$ cd Kuai
$ pip install -e .
Save in a hello.py:
from kuai import Kuai
def hello(world):
print(f"Hello, {world}!")
Kuai.on('hello-world', hello)
Kuai.emit('hello-world', 'Kuài')
It’s as easy as
$ pip install Kuai
$ python hello.py
Hello, Kuài!
MIT
Thank you to anyone who has helped contribute to Kuai in one form or another. If you submit any PR's don't forget to add your name to the list!
xmonader - PR #2 Cleaned up handler definition
Scott Doucet / Duroktar / traBpUkciP