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
Release history Release notifications | RSS feed
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.1.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for redis_tools_py2-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ab31f6c26db7fc0c9535c6138b3a097928f3bd624d813f1aac5323705561fb |
|
MD5 | 7bc495511d2a998225007a65fb48a913 |
|
BLAKE2b-256 | ef465e9050686218dd8ee8ac30216ee0f919cffec9758ee7936969e05ba915a8 |