A lightweight Python client for Zentropy β a fast, Redis-like key-value store with authentication, Unix socket support, and a simple text-based protocol.
Install from PyPI:
pip install zentropy-pyfrom zentropy import Client
client = Client(password="testpass")
client.set("foo", "bar")
print(client.get("foo"))  # Output: bar
client.close()client = Client(host='127.0.0.1', port=6383, password='password here')| Method | Command | Description | 
|---|---|---|
| auth(password) | AUTH | Authenticate the connection | 
| set(key, value) | SET | Set a key-value pair | 
| get(key) | GET | Retrieve a value | 
| delete(key) | DELETE | Remove a key | 
| exists(key) | EXISTS | Check if a key exists | 
| ping() | PING | Test connectivity | 
| close() | β | Close the connection | 
client.set("hello", "world")
print(client.exists("hello"))  # True
print(client.get("hello"))     # "world"
client.delete("hello")Contributions are welcome! π