Skip to main content
Help us improve Python packaging – donate today!

Python framework for concurrent, distributed, asynchronous network programming with coroutines, asynchronous completions and message passing.

Project Description

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.

Features

  • No callbacks or event loops! No need to lock critical sections either,
  • Efficient polling mechanisms epoll, kqueue, /dev/poll, Windows I/O Completion Ports (IOCP) for high performance and scalability,
  • Asynchronous (non-blocking) sockets and pipes, for concurrent processing of I/O,
  • SSL for security,
  • Asynchronous locking primitives similar to Python threading module,
  • Asynchronous timers and timeouts,
  • Message passing for (local and remote) coroutines to exchange messages one-to-one with Message Queue Pattern or through broadcasting channels with Publish-Subscribe Pattern,
  • Location transparency with naming and locating (local and remote) resources,
  • Distributing computation components (code and data) for execution of distributed communicating processes, for wide range of use cases, covering SIMD, MISD, MIMD system architectures at the process level, web interface to monitor cluster/application status/performance; in-memory processing, data streaming, real-time (live) analytics and cloud computing are supported as well,
  • Monitoring and restarting of (local or remote) coroutines, for fault detection and fault-tolerance,
  • Hot-swapping of coroutine functions, for dynamic system reconfiguration,
  • Thread pools with asynchronous task completions, for executing (external) synchronous tasks, such as reading standard input.

Dependencies

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.

Installation

To install asyncoro, run:

python -m pip install asyncoro

Authors

  • Giridhar Pemmasani

Release history Release notifications

This version
History Node

4.5.6

History Node

4.5.5

History Node

4.5.4

History Node

4.5.3

History Node

4.5.2

History Node

4.5.1

History Node

4.5.0

History Node

4.4.1

History Node

4.4.0

History Node

4.3.4

History Node

4.3.3

History Node

4.3.2

History Node

4.3.1

History Node

4.3.0

History Node

4.2.2

History Node

4.2.1

History Node

4.2.0

History Node

4.1.1

History Node

4.1

History Node

4.0

History Node

3.6.16

History Node

3.6.15

History Node

3.6.14

History Node

3.6.13

History Node

3.6.12

History Node

3.6.11

History Node

3.6.10

History Node

3.6.9

History Node

3.6.8

History Node

3.6.7

History Node

3.6.6

History Node

3.6.5

History Node

3.6.4

History Node

3.6.3

History Node

3.6.2

History Node

3.6.1

History Node

3.6.0

History Node

3.5

History Node

3.4.1

History Node

3.4

History Node

3.3.2

History Node

3.3.1

History Node

3.3

History Node

3.2

History Node

3.1

History Node

3.0.3

History Node

3.0.2

History Node

3.0.1

History Node

3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
asyncoro-4.5.6.tar.gz (274.6 kB) Copy SHA256 hash SHA256 Source None May 23, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page