Skip to main content

pycos

pycos is a Python framework for asynchronous, concurrent, distributed programming with tasks, asynchronous completions and message passing.

Unlike with other asynchronous frameworks, programs developed with pycos 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 pycos’s scheduler, which interleaves executions of tasks, similar to the way an operating system executes multiple processes. In addition, pycos has many additional features, including message passing for communication, distributed computing/programming etc.

Unlike threads, creating tasks with pycos is very efficient. Moreover, with pycos context switch occurs only when tasks use yield (typically with an asychronous call), so there is no need for locking and there is no overhead of unnecessary context switches.

pycos 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) tasks 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) tasks, for fault detection and fault-tolerance,

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

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

Dependencies

pycos 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 pycos, run:

python -m pip install pycos

Authors

  • Giridhar Pemmasani

Metadata

Release files for pycos 4.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycos 4.7.4
File Size Uploaded Provenance Actions
pycos-4.7.4.tar.gz 283.7 kB Without provenance Details for pycos-4.7.4.tar.gz

Release files / pycos-4.7.4.tar.gz

Download URL pycos-4.7.4.tar.gz
Size 283.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c906cbfdeb8ed3fa5cf66f403ce31c3a1f89bea3f442c25eac28fb1313442b5c
BLAKE2b-256 checksum
How to use checksums
8b6cde545119f04ea04dca71ac488da201baee00418de7a8d7693c756697bb79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pycos 4.7.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.7.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page