Skip to main content

Greendeck Redis Package

Project description

greendeck-redis

For internal Greendeck use only.

Greendeck redis

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

In the parent directory

  • python setup.py sdist bdist_wheel
  • twine upload dist/*

references

Thank You

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

greendeck-redis-0.0.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

greendeck_redis-0.0.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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