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

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.1.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybeehive-0.1.1-py2.py3-none-any.whl (7.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pybeehive-0.1.1.tar.gz.

File metadata

  • Download URL: pybeehive-0.1.1.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pybeehive-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7be6e71119832cec95ef768c17ecd4cb9c7050c2f5a322de12bb5a60c6a9d3ed
MD5 e1bb18d3a79429db3f0ad09a49c9b28d
BLAKE2b-256 7e70450ef7895969174b3f0c5c85a70fb1b5c1256de9b9d5c42f40fed9029ad9

See more details on using hashes here.

File details

Details for the file pybeehive-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pybeehive-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 15715dce50821f7efcd3c2fa0d7def9862c7d8deee89f6062300fcb7d85b58c1
MD5 6d8ba0daa9058b84a43056fc8572fadc
BLAKE2b-256 19fa2b9e3135e9e95f59e4281e5e4c80e5841bf69567a272155a926ad9930858

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page