Skip to main content

Simple & fast event library. MIT licensed

Project description

Kuài

/Ku·ài/ Fast, swift, swiftness, sharp, to be satisfied, quick, rapid, rapidness, to hurry up..

https://img.shields.io/pypi/v/kuai.svg https://img.shields.io/travis/Duroktar/kuai.svg

Simple & fast event library.

Install

pip install Kuai --user

Develop

clone https://github.com/Duroktar/Kuai.git
cd Kuai
pip install -e .

Kuai is Fast

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!

License

MIT

Author

Scott Doucet / Duroktar / traBpUkciP

History

0.1.0 (2017-06-08)

  • First release on PyPI.

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

Kuai-0.1.0.tar.gz (58.2 kB view hashes)

Uploaded Source

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