Skip to main content

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


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)

Uploaded Source

Built Distribution

keydb-0.0.1-py3-none-any.whl (3.7 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