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

Metadata

Release files for dicedb 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dicedb 0.1.1
File Size Uploaded
dicedb-0.1.1.tar.gz 23.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dicedb 0.1.1
File Interpreter ABI Platform
dicedb-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.8 kB

Release files / dicedb-0.1.1.tar.gz

Download URL dicedb-0.1.1.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
00a299825bf7cba28d8104b678ccb48667dffd7310681daa4de28b0b52dede6a
BLAKE2b-256 checksum
How to use checksums
0529bc8b3e9aae921b4956ff8e50d42a7d05a00ae9fde1ae2c2cb4ba76880c7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.16

Release files / dicedb-0.1.1-py3-none-any.whl

Download URL dicedb-0.1.1-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b0ce1e02a6f798a1c744684a16f68b4a69651848ab7788a889a66d5abcebec7
BLAKE2b-256 checksum
How to use checksums
74f973aecd5cd058c0eae5d6d438fb9f41c7a92c6291428ba99ffa55780b4d9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.16

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page