Skip to main content

pyvalkey: Python implemented Valkey server

Project description

pyvalkey: Python implemented Valkey server

PyPI version PyPI downloads GitHub PyPI - Python Version

Tired of DevOps telling you not deploy Valkey on your system? Stuck in python environment but still want simple data structure store to sync between you threads?

r3dis is a pure python implementation of the popular data store. it's create tcp server that support resp protocol and can be used as regular server.

to install, run:

pip install pyvalkey

to start server, run:

python -m pyvalkey

to start inside python thread:

from threading import Thread

from pyvalkey.server import ValkeyServer

server = ValkeyServer(("127.0.0.1", 6379))
t = Thread(target=server.serve_forever, daemon=True)
t.start()

currently supported commands:

  • CONFIG SET
  • CONFIG GET
  • ACL HELP ~
  • ACL GENPASS
  • ACL CAT
  • ACL DELUSER
  • ACL SETUSER
  • ACL GETUSER
  • LPUSH
  • CLIENT LIST
  • CLIENT ID
  • CLIENT SETNAME
  • CLIENT GETNAME
  • CLIENT KILL
  • CLIENT PAUSE
  • CLIENT UNPAUSE
  • CLIENT REPLY
  • INFO
  • AUTH
  • FLUSHDB
  • SELECT
  • PING
  • QUIT
  • DBSIZE
  • ECHO
  • GET
  • SET
  • DEL
  • HSET
  • HGETALL
  • KEYS
  • APPEND

in the future:

  • more commands
  • support for multiple client using asyncio loop instead of thread per client

you are invited to help :)

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

pyvalkey-0.0.5.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

pyvalkey-0.0.5-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file pyvalkey-0.0.5.tar.gz.

File metadata

  • Download URL: pyvalkey-0.0.5.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Windows/10

File hashes

Hashes for pyvalkey-0.0.5.tar.gz
Algorithm Hash digest
SHA256 112b39dca16e627fb62e9b740e7157dc4f418f8c30feed0b38bae076c1639868
MD5 877ec4d9c2a4253f5f3b91dfa7932d8f
BLAKE2b-256 5b43404c8c7184def333db9b301667ded0e03e546239fbb63f0e0b56c58f2142

See more details on using hashes here.

File details

Details for the file pyvalkey-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyvalkey-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Windows/10

File hashes

Hashes for pyvalkey-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9a1bd56c40a0cde0debe1792bacea0758fa50acb9440d746ba442e7d21520206
MD5 a3494836d3c4042ca191be0d3e881267
BLAKE2b-256 856fdc8549c793359d3e5b3fcc3a3d60d1004893b325f8a69b08696d82581c79

See more details on using hashes here.

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