Skip to main content

pyvalkey: Python implemented Valkey server

Project description

r3dis: 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.4.tar.gz (20.6 kB view hashes)

Uploaded Source

Built Distribution

pyvalkey-0.0.4-py3-none-any.whl (31.2 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