Python framework for concurrent, distributed, asynchronous network programming with coroutines, asynchronous completions and message passing.
asyncoro is a Python framework for asynchronous, concurrent, distributed programming with coroutines, asynchronous completions and message passing.
Unlike with other asynchronous frameworks, programs developed with asyncoro have same logic and structure as programs with threads, except for a few syntactic changes - mostly using yield with asynchronous completions that give control to asyncoro’s scheduler, which interleaves executions of coroutines, similar to the way an operating system executes multiple processes. In addition, asyncoro has many additional features, including message passing for communication, distributed computing/programming etc.
Unlike threads, creating processes (coroutines) with asyncoro is very efficient. Moreover, with asyncoro context switch occurs only when coroutines use yield (typically with an asychronous call), so there is no need for locking and there is no overhead of unnecessary context switches.
asyncoro works with Python versions 2.7+ and 3.1+. It has been tested with Linux, Mac OS X and Windows; it may work on other platforms, too.
asyncoro is implemented with standard modules in Python.
If psutil is available on nodes, node availability status (CPU, memory and disk) is sent in status messages, and shown in web browser so node/application performance can be monitored.
Under Windows efficient polling notifier I/O Completion Ports (IOCP) is supported only if pywin32 is available; otherwise, inefficient select notifier is used.
To install asyncoro, run:
python -m pip install asyncoro