Skip to main content

Spasmodic Engine

Project description

spasmoidal 0.1.1

Asynchronous I/O (and other tasks) proceeding in fits and spasms The SpasmodicEngine selects tasks (spasmoids) from a (heapqueue based) priority queue. The tasks are Python 2.5 extended generators (some call them coroutines: PEP 342). The engine calls task.send() with an appropriate argument. One of the library of tasks is Pollster. Pollster calls poll() with for tasks that are waiting I/O. Tasks that are ready for I/O are fed to the priority queue.

Spasmodic provides an efficient way to manage a large number of sockets and/or files. Other processing works well too, if it can be subdivided into brief spasms.

release notes for 0.1.1

added periodic logger, rigged echo server to log byte counts

added client case to the echo example, this showed up several bugs in handling multiple connections and large messages, which are corrected

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

spasmoidal-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file spasmoidal-0.1.1.tar.gz.

File metadata

  • Download URL: spasmoidal-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spasmoidal-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c716a37b56e034e5885ee923093a5bbb3ce79c52cb78d54d7f507ed2f2eb4e02
MD5 2baddbca1db1dfb0c4ea3c493071459f
BLAKE2b-256 8fc9d81a3e1cb5bec1905398f6f7cf5470e608c3a613dd866ce28d8e20b5124f

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