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
0.13 (2018-05-28)
Coverage now only runs on travis-ci with only pybeehive source code
0.14 (2018-05-29)
Fixed bug in event propagation
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
Built Distribution
File details
Details for the file pybeehive-0.1.4.tar.gz
.
File metadata
- Download URL: pybeehive-0.1.4.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66f2980d34d3b001d11e5f4239e3cdd1437189ace78fa729dbfcbe660949fc79 |
|
MD5 | 6f0abaddba27279a62d259b274a9cb24 |
|
BLAKE2b-256 | 4b4d4fe669135cfc83d87cde05748d3bbb8df38a61e2ebb0957b227cd2835f44 |
File details
Details for the file pybeehive-0.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: pybeehive-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd566de5a58cd0efbbe70a9702654f17bd52aedf771452509e14dd4a33747af2 |
|
MD5 | c5c1bd7a4e79175eb846dd45da861fbb |
|
BLAKE2b-256 | c77ef5d7b59db3a1c450e7c9cf24ab14d408073a21a8de6864b7b7df75b379aa |