Skip to main content

some Queue subclasses and ducktypes

Project description

Queue-like items: iterable queues and channels.

Class Channel

A zero-storage data passage. Unlike a Queue(1), put() blocks waiting for the matching get().

Function IterablePriorityQueue(capacity=0, name=None, *args, **kw)

Factory to create an iterable PriorityQueue.

Function IterableQueue(capacity=0, name=None, *args, **kw)

Factory to create an iterable Queue.

Class NullQueue

MRO: cs.resources.MultiOpenMixin, cs.obj.O
A queue-like object that discards its inputs. Calls to .get() raise Queue_Empty.

Class PushQueue

MRO: cs.resources.MultiOpenMixin, cs.obj.O
A puttable object which looks like an iterable Queue.

Calling .put(item) calls func_push supplied at initialisation to trigger a function on data arrival, whose processing is mediated queued via a Later for delivery to the output queue.

Class TimerQueue

Class to run a lot of "in the future" jobs without using a bazillion Timer threads.

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

cs.queues-20181022.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file cs.queues-20181022.tar.gz.

File metadata

  • Download URL: cs.queues-20181022.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6

File hashes

Hashes for cs.queues-20181022.tar.gz
Algorithm Hash digest
SHA256 51be1b9a2d59c7d3d50aa949bac563301650a9c97642db14460ba40ed0e6ece5
MD5 a98e97810c5efb3eedd54dd39b72c443
BLAKE2b-256 41ed0c8c274eb0221f3b48903a50f5a02e5e10c7f28ad1ed41e90ea8214dba24

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