A lightweight, event-driven concurrency library with bees!
Project description
pybeehive
A lightweight, event-driven concurrency library with bees!
Free software: GNU General Public License v3
Documentation: https://pybeehive.readthedocs.io.
Features
One interface for writing concurrent code, both sync and async
Basic Usage
from pybeehive import Hive
import time
hive = Hive()
@hive.streamer
def stream():
while True:
time.sleep(1)
yield 'hello world!'
@hive.listener
def on_event(event):
print(event)
if __name__ == '__main__':
hive.run()
$ python hello.py
Event(created_at=1525400000, data="hello world!")
Event(created_at=1525400001, data="hello world!")
Event(created_at=1525400002, data="hello world!")
...
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2018-05-27)
First release on PyPI.
0.11 (2018-05-28)
Fixed installation of dependencies
0.12 (2018-05-28)
Fixed travis-ci building with coverage
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
pybeehive-0.1.2.tar.gz
(20.2 kB
view details)
Built Distribution
File details
Details for the file pybeehive-0.1.2.tar.gz
.
File metadata
- Download URL: pybeehive-0.1.2.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0574961e7834b04665b88863a49cbad7e5292e2b9b69fe1447c9dc41cf77f246 |
|
MD5 | 3b4ed8a88cf4eb6adc24005387d4e10c |
|
BLAKE2b-256 | b3c5743d02b74e3e7a87efbc07fcec2418df2dd4e05df008b22a4392854923ca |
File details
Details for the file pybeehive-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pybeehive-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec5f2ef6776ef28855d99dde56bedf47562882a1cf2493e4bbe85c1d6286746 |
|
MD5 | a9ede75f659370800737912f734e5e45 |
|
BLAKE2b-256 | 954daaa28d7e683fb9d967cc7963d61946a4ddde3c9c6d4d7f8a89103c922852 |