Skip to main content

pycos is a Python framework for concurrent, asynchronous, network/distributed programming and distributed / cloud computing, using very light weight computational units called tasks. pycos tasks are created with generator functions similar to the way threads are created with functions using Python’s threading module. 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 generators, similar to the way an operating system executes multiple processes.

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

Unlike with other asynchronous frameworks, programming with pycos is rather straight forward: There are just 4 simple steps to convert programming with threads to programming with pycos.

Features

pycos features include:

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

  • Remote Pico Service (RPS) for defining services that remote clients can run as tasks (with possibly message passing to communicate).

  • 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; in-memory processing, data streaming, real-time (live) analytics and cloud computing are supported as well,

  • Web interface to monitor cluster/application status/performance,

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

pycos works with Python 2.7+ and Python 3.1+ and tested on Linux, Mac OS X and Windows; it may work on other platforms (e.g., FreeBSD and other BSD variants) too. pycos works with PyPy as well.

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

Release files for pycos 4.12.2

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.12.2
File Size Uploaded
pycos-4.12.2.tar.gz 504.0 kB Details

Release files / pycos-4.12.2.tar.gz

Download URL pycos-4.12.2.tar.gz
Size 504.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e4454ee1c80ea0f1cd8eb8f6f815578144997c76b3dfa68162825a40bc070a26
BLAKE2b-256 checksum
How to use checksums
fca1a872fa389995a1a9c7a5e5e75e3bc48dadd25d1e6adfc43817e9634a0745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.7

Release history Release notifications | RSS feed

This release

4.12.2 This release

1 release file

4.12.1

1 release file

4.12.0

1 release file

4.11.0

1 release file

4.10.1

1 release file

4.10.0

1 release file

4.9.1

1 release file

4.9.0

1 release file

4.8.15

1 release file

4.8.14

1 release file

4.8.13

1 release file

4.8.12

1 release file

4.8.11

1 release file

4.8.10

1 release file

4.8.9

1 release file

4.8.8

1 release file

4.8.7

1 release file

4.8.6

1 release file

4.8.5

1 release file

4.8.4

1 release file

4.8.3

1 release file

4.8.2

1 release file

4.8.1

1 release file

4.8.0

1 release file

4.7.7

1 release file

4.7.6

1 release file

4.7.5

1 release file

4.7.4

1 release file

4.7.3

1 release file

4.7.2

1 release file

4.7.1

1 release file

4.7.0

1 release file

4.6.6

1 release file

4.6.5

1 release file

4.6.4

1 release file

4.6.3

1 release file

4.6.2

1 release file

4.6.1

1 release file

4.6.0

1 release file

4.5.6

1 release file

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