Metadata-Version: 2.1
Name: pybeehive
Version: 0.1.3
Summary: A lightweight, event-driven concurrency library with bees!
Home-page: https://github.com/sentrip/pybeehive
Author: Djordje Pepic
Author-email: djordje.m.pepic@gmail.com
License: GNU General Public License v3
Keywords: pybeehive
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: pyzmq (>=17.0.0)

=========
pybeehive
=========


.. image:: https://img.shields.io/pypi/v/pybeehive.svg
    :target: https://pypi.python.org/pypi/pybeehive

.. image:: https://img.shields.io/travis/sentrip/pybeehive.svg
    :target: https://travis-ci.org/sentrip/pybeehive

.. image:: https://readthedocs.org/projects/pybeehive/badge/?version=latest
    :target: https://pybeehive.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status


.. image:: https://codecov.io/gh/sentrip/pybeehive/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/sentrip/pybeehive

.. image:: https://pyup.io/repos/github/sentrip/pybeehive/shield.svg
    :target: https://pyup.io/repos/github/sentrip/pybeehive/
    :alt: Updates



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
-----------
.. code-block:: python

    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()


.. code-block:: text

    $ 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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
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


