Skip to main content

Yet Another python queue backed by redis; but modern and compliant

Project description

https://img.shields.io/pypi/v/yarqueue.svg https://img.shields.io/travis/clbarnes/yarqueue.svg Documentation Status

Yet Another python queue backed by redis; but modern and compliant

Heavily inspired by hotqueue.

Features

  • Compatible with the API of multiprocessing.Queue

  • LIFO, FIFO and Double-Ended variants

    • Each has a non-joinable and a joinable form (compatible with multiprocessing.JoinableQueue)

  • Additional convenience methods:

    • get_many(), put_many(), clear() for all queues

    • n_tasks() and n_in_progress() for joinable queues

  • Can be used as a context manager

    • Deletes the queue on exit

    • For Joinable variants, first waits for all tasks to be done

  • Can use custom serializers, or none at all

    • By default, uses the highest pickle protocol available, using the pickle5 backport if possible.

  • As thread-safe as the underlying Redis client instance

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

yarqueue-0.2.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yarqueue-0.2.0-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file yarqueue-0.2.0.tar.gz.

File metadata

  • Download URL: yarqueue-0.2.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for yarqueue-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5796aa9166c9e29a1008417cf5f94ce9e89bf8877c1982a4c19c2491dcddff5b
MD5 e39bd2196cb429ebf6c4c86a0960aac8
BLAKE2b-256 f421c6bb25728dcc47193ace756f15549b9babd14491f50e03b3c40bdeb049e0

See more details on using hashes here.

File details

Details for the file yarqueue-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: yarqueue-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for yarqueue-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 884ec1e1b45006acb8e886b7b13a1a7b69a105fac51b8a9e59fc8d8ff6d2e12e
MD5 3318989e2ab9ea9f0b6129d3579c70d0
BLAKE2b-256 1e878bb4cecbc638b14949daf943ceb85154daa8cb7a7bbf0b43556d474e9a84

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