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

  • Simple queue watchers

    • yarqwatch: command-line progress bars for given queues

    • yarqserve: simple REST API and browser page for given queues

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.4.1.tar.gz (17.7 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.4.1-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: yarqueue-0.4.1.tar.gz
  • Upload date:
  • Size: 17.7 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.4.1.tar.gz
Algorithm Hash digest
SHA256 1d858fb34b08eb76a6538a263d11319bcf42ef5e3bd55e7777361e2e1bcb2759
MD5 b2bf83240bad20aabc89c23acf9756ad
BLAKE2b-256 8e8d11d3a7509a6a08636ddb14ed908f3f4f924de411a55db71f61336864591d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yarqueue-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.0 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.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b43be3803f3f4623a80f8faa52ec73f4f2eadf3bc8807ba572c96960131dc9b1
MD5 60e07073cd2b03c42f059c4f40c32305
BLAKE2b-256 32b78a6ae17b941dd67529b5de4c4a5ca2e5b507dd68438bc9ce43c495f2424f

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