Skip to main content

DiceDB for Python

⚠️ This is not an official sdk for python and still in development.

Installation and Usage

From PyPI

pip install dicedb

From Source

Clone the repository and install the package:

$ git clone https://github.com/un4gt/dicedb.git --depth 1 --branch main
$ uv sync
$ uv buid

Supported Commands

command description
decr DECRBY
decrby DECRBY
delete DEL
echo ECHO
exists EXISTS
expire EXPIRE
expire_at EXPIREAT
expire_time EXPIRETIME
flushdb FLUSHDB
get GET
get_del GET_DEL
get_ex GET_EX
hget HGET
hget_all HGETALL
hset HSET
incr_by INCRBY
incr INCRBY
ping PING
ttl TTL
typeof TYPE
set SET

Roadmap

  • More documentation/tests/examples
  • Support for all commands
  • Connection pool
  • Support for async

Contributing

PRs and issues are welcome!

About Developing

Generate Python Proto Files

cmd.proto and res.proto comes from https://github.com/DiceDB/dicedb-protos

On Windows:

protoc -I=protos\ --python_out=src\dicedb\proto\ --pyi_out=src\dicedb\proto cmd.proto res.proto

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dicedb-0.1.1.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

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

dicedb-0.1.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file dicedb-0.1.1.tar.gz.

File metadata

  • Download URL: dicedb-0.1.1.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.16

File hashes

Hashes for dicedb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 00a299825bf7cba28d8104b678ccb48667dffd7310681daa4de28b0b52dede6a
MD5 e54c05ffea563fc1235d66e158c54dae
BLAKE2b-256 0529bc8b3e9aae921b4956ff8e50d42a7d05a00ae9fde1ae2c2cb4ba76880c7b

See more details on using hashes here.

File details

Details for the file dicedb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dicedb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.16

File hashes

Hashes for dicedb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b0ce1e02a6f798a1c744684a16f68b4a69651848ab7788a889a66d5abcebec7
MD5 ec1f2a900cf0969f12c27f67b58ebcf3
BLAKE2b-256 74f973aecd5cd058c0eae5d6d438fb9f41c7a92c6291428ba99ffa55780b4d9b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

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