Skip to main content

Queue system with key-based throttling implemented over Redis.

Project description

Queue system with key-based throttling implemented over Redis.

  • Free software: BSD 2-Clause License

Installation

pip install redis-throttled-queue

You can also install the in-development version with:

pip install https://github.com/ionelmc/python-redis-throttled-queue/archive/main.zip

Documentation

https://python-redis-throttled-queue.readthedocs.io/

Development

To run all the tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.4.0 (2022-03-31)

  • Add last_activity and idle_seconds attributes.

  • Add a cleanup() method.

0.3.1 (2022-03-31)

  • Rename attributes (should be safe to mess with):

    • _limit becomes limit.

    • _resolution becomes resolution.

0.3.0 (2022-03-31)

  • Allow pop(window) using any window value (str/bytes/int recommended tho).

0.2.0 (2022-03-31)

  • Fix __len__ (was returning a string).

0.1.0 (2022-03-30)

  • First release on PyPI.

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

redis-throttled-queue-0.4.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

redis_throttled_queue-0.4.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file redis-throttled-queue-0.4.0.tar.gz.

File metadata

  • Download URL: redis-throttled-queue-0.4.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for redis-throttled-queue-0.4.0.tar.gz
Algorithm Hash digest
SHA256 051c12719f6a568df069ad68c4a6e6a6c278ed3ac887e7376e846ee1163cfb6e
MD5 0830b18fc72ee9e3eb012f7b9e59b906
BLAKE2b-256 bff4b9d647a9a6c3652b84af1ea1b236983cb7e01ad6f2a404d48dc4dc02bb31

See more details on using hashes here.

File details

Details for the file redis_throttled_queue-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: redis_throttled_queue-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for redis_throttled_queue-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fad8a6c0dfbef3508068569207517f7cc07ca3a90ffbf118a11f5983c422229f
MD5 cff7c2ea392747352af4ee0cceab5da8
BLAKE2b-256 b4ea9c3e73ab2ce3b2a56e4700e45170d28b1bc12f7194b821087c59bd41af5b

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