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

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.3.tar.gz (20.2 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.3-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for pybeehive-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9c2eed056a36ef11db01e412eda7ba2f60b0868f7429a9f904b7501d60689c70
MD5 f660667f977e5b58b9debb44fe6eb285
BLAKE2b-256 8423525682beaffcfb80a87b30107e6ba8c3a6658756aca3b7aea82a3dd08b54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pybeehive-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8a024a6c9e4243901f5d9067756b73f573f79ad6b3f5d9ade2827989294a83df
MD5 e6e8895c651af22151e18a8d7805d334
BLAKE2b-256 689da24d1974bb912a1c281f02731c53a59956b35a9765e4d469c6eb0f7376a3

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