Skip to main content

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

Project description

asyncoro is a Python framework for concurrent, distributed, asynchronous network 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 timers, including non-blocking sleep,

  • Asynchronous locking primitives similar to Python threading module,

  • 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,

  • Monitoring and restarting of (local or remote) coroutines, for fault detection and fault-tolerance,

  • 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, nodes, servers and coroutines; in-memory processing and data streaming are supported as well,

  • Hot-swapping of coroutine functions, for dynamic system reconfiguration,

  • Thread pools with asynchronous task completions, for executing (external) synchronous tasks, e.g., reading standard input.

Installation

To install asyncoro for Python 2.7+, run:

pip install asyncoro

or to install asyncoro for Python 3.1+, run:

pip3 install asyncoro

Dependencies

asyncoro is implemented with standard modules in Python.

If psutil is installed, node status (total and used of CPU, memory, disk) is available in status indications, and shown in web browser.

Under Windows efficient polling notifier I/O Completion Ports (IOCP) is supported only if pywin32 is installed; otherwise, inefficient select notifier is used.

Authors

  • Giridhar Pemmasani

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

asyncoro-3.6.8.tar.gz (329.9 kB view details)

Uploaded Source

File details

Details for the file asyncoro-3.6.8.tar.gz.

File metadata

  • Download URL: asyncoro-3.6.8.tar.gz
  • Upload date:
  • Size: 329.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asyncoro-3.6.8.tar.gz
Algorithm Hash digest
SHA256 1ef3e1ce55d2bffb0ca08cc8cc8f08659b5aa167cb2c2cf9fd4ff569c6aa39e2
MD5 39f00f98c0737ff456bef187d18752af
BLAKE2b-256 9227fdace3db9f4d125fc23cedc88eb3cc6f5d5f20b96c5b361e3748533a301a

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