Skip to main content

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keydb-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file keydb-0.0.1.tar.gz.

File metadata

  • Download URL: keydb-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for keydb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 748d22225a8facaf15693842fbe5af248bb598db471804eff448e3034acafb7d
MD5 ce25a0b937f288ec0e6756c0030253cd
BLAKE2b-256 49225ae846c805a9ef2086d488536a394d6e1005f4b2766af40f995f224b88ae

See more details on using hashes here.

File details

Details for the file keydb-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: keydb-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for keydb-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e03832a427bf09bae02d5ebc99d516d99a5553548df443c78a4790fb36726a2d
MD5 bb2d38f571f06c75f4aafb58c12975e5
BLAKE2b-256 bd33de98cf17c7be1682e9f3e9ff290e47933ec2b51afe4023f435324c24d754

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page