Skip to main content

A lightweight, event-driven concurrency library with bees!

Project description

pybeehive

https://img.shields.io/pypi/v/pybeehive.svg https://img.shields.io/travis/sentrip/pybeehive.svg Documentation Status https://codecov.io/gh/sentrip/pybeehive/branch/master/graph/badge.svg Updates

A lightweight, event-driven concurrency library with bees!

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.

Files for pybeehive, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pybeehive-0.1.4.tar.gz (20.4 kB) File type Source Python version None Upload date Hashes View
Filename, size pybeehive-0.1.4-py2.py3-none-any.whl (7.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page