r3dis: Python implemented Redis server
Project description
r3dis: Python implemented Redis server
Tired of DevOps telling you not deploy Redis 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 redis server.
to install, run:
pip install r3dis
to start redis server, run:
python -m r3dis
to start inside python thread:
from threading import Thread
from r3dis.server import RedisServer
server = RedisServer(("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
r3dis-0.0.4.tar.gz
(6.6 kB
view details)
Built Distribution
r3dis-0.0.4-py3-none-any.whl
(7.4 kB
view details)
File details
Details for the file r3dis-0.0.4.tar.gz
.
File metadata
- Download URL: r3dis-0.0.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 191708d45dba8f9e27321e63523e4f0ddd6aea1223c0bfc0cb10938db9f0b8e2 |
|
MD5 | b7d6fb959837715be70b5c506c39c847 |
|
BLAKE2b-256 | d10543b06e27ea857a72f9af43e46feeb9b7822042840b29df2db2bc1c90abce |
File details
Details for the file r3dis-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: r3dis-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18efd497cbd76d3e61cb1150b30072ba0777ed444cb731db9b29f7d129efbc8f |
|
MD5 | e18ed0c1c83436b2f5cc48bbee4fdd96 |
|
BLAKE2b-256 | 1fa5fb139e7cb18f22db2d5d390570d5c15d3370fc515b556c81fc7496353b32 |