Skip to content

Python Asyncio-enabled Event Dispatcher Based on Publishers and Subscribers

License

Notifications You must be signed in to change notification settings

tobypatterson/async-dispatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async Dispatch

Python Asyncio-enabled Event Dispatcher Based on Publishers and Subscribers

Build Status

https://travis-ci.org/tobypatterson/async-dispatch.svg?branch=master

https://readthedocs.org/projects/async-dispatch/badge/?version=latest

Requirements

Async Dispatch uses the keywords async and await, and thus requires Python 3.5 or greater. This version of Python is distributed in the most recent release of Ubuntu 16.04, and can be easily installed on Mac OS X using brew .

Installation

The prefered way to install Async Dispatch for Python 3.5 is using pip:.

pip install async-dispatch

Basic Usage

Documentation will soon be available on readthedocs. Here is a brief summary.

publisher = BasicPublisher()
subscriber = BasicSubscriber()

loop = asyncio.get_event_loop()

server = Dispatcher(publisher, subscriber, loop=loop)
loop.run_until_complete(server.start(max_events=5))

Documentation

Best to Read The Docs.

About

Python Asyncio-enabled Event Dispatcher Based on Publishers and Subscribers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages