Skip to main content

Library for inter-service event-based communication

Project description

Redis Tools

Useful helpers and tools when working with Redis or using redis for common problems like rate-limitting, locks and other...

THIS IS A PYTHON 2.7 COMPATIBLE PACKAGE, FOR PYTHON 3 USE https://pypi.org/project/redis-tools/

12Factor configuration

Standarized initialization of client using environment, supporting Sentinel.

# export REDIS_URL=redis://localhost
# export REDIS_URL=sentinel://localhost?master=mymaster
# export REDIS_URL=sentinel://localhost:12343/0?master=mymaster
import redistools
redistools.get_redis()  # get redis client
redistools.get_redis(master=False)  # slave (read-only) client

Rate limitting

Rate limitting log filter

Lock decorator

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-tools-py2-0.0.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

redis_tools_py2-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file redis-tools-py2-0.0.2.tar.gz.

File metadata

  • Download URL: redis-tools-py2-0.0.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for redis-tools-py2-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7f54c075d4c918e7ccc4fada6680dc2db5ef9ad0d988b95bd51e46cd8cb4f97f
MD5 a926fa08fccbe1ff9824d4a04526e52d
BLAKE2b-256 3f76fec2d79c6635afe93e58fd8381dabcd41855abe4c66731d5eba28e6e5192

See more details on using hashes here.

File details

Details for the file redis_tools_py2-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: redis_tools_py2-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for redis_tools_py2-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ed517726d0a05393eb14d3547bb39e602c254bb0935c9b099303d67b7b7ba053
MD5 dd7332a067b323969cef0e3f8d2a9fa1
BLAKE2b-256 af7b8eb6a9e250ae458ec05182d445cb1cb48d5484aac8e7be5aec698303c434

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page