A Python client for KeyDB
Project description
keydb-python
A python client for KeyDB derived from redis-py. You can use all classes from redis
package as keydb
. For example to use connection pool
from keydb import KeyDB
from keydb import ConnectionPool
pool = ConnectionPool(host='localhost', password='password')
db = KeyDB(connection_pool=pool)
Examples
import time
from keydb import KeyDB
db = KeyDB(host='localhost', password='password')
db.set("A", 10)
db.sadd("SS", 11, 12, 13, 14, 15)
db.scard("SS")
db.expiremember("SS", 12, 5)
time.sleep(6)
db.scard("SS")
Contribution
You can add new commands from KeyDB CLI in this repository. Another related to redis, please contribute to redis-py
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
keydb-0.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
keydb-0.0.1-py3-none-any.whl
(3.7 kB
view hashes)