! This is not the valkey python client !
pyvalkey 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()