Greendeck Redis Package
Project description
greendeck-redis
For internal Greendeck
use only.
Install from pip
https://pypi.org/project/greendeck-redis/
pip install greendeck-redis
How to use ?
import the library
import greendeck_redis
import redis
class
from greendeck_redis import RedisQueue
from greendeck_redis import RedisSet
initialize redis
client connection
# declare variables
REDIS_HOST = <YOUR_REDIS_HOST>
REDIS_PORT = <YOUR_REDIS_PORT>
# Here default values are REDIS_PORT='', REDIS_HOST=''
redis_queue = RedisQueue(REDIS_HOST, REDIS_PORT, queue_name)
# OR/AND
redis_set = RedisSet(REDIS_HOST, REDIS_PORT, set_name)
How to build your pip package
- open an account here https://pypi.org/
In the parent directory
python setup.py sdist bdist_wheel
twine upload dist/*
references
Thank You
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
greendeck-redis-0.0.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for greendeck_redis-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5cbff9c117f8fbfb12ae87dfaab60aad3c08abd2bcf13109241d8cf03684ac5 |
|
MD5 | c1295aec0f3b23664cb2fb781209938c |
|
BLAKE2b-256 | a871f5050ac3b4d351b51d8a54357e5d5e90077a2363561232eec3422a36b802 |