Zentropy Python Client
A lightweight Python client for Zentropy — a fast, Redis-like key-value store with authentication, Unix socket support, and a simple text-based protocol.
🚀 Installation
Install from PyPI:
pip install zentropy-py
🧠 Usage
Basic Example
from zentropy import Client
client = Client(password="testpass")
client.set("foo", "bar")
print(client.get("foo")) # Output: bar
client.close()
🔐 Authentication
client = Client(host='127.0.0.1', port=6383, password='password here')
⚙️ Supported Commands
| 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 |
Example
client.set("hello", "world")
print(client.exists("hello")) # True
print(client.get("hello")) # "world"
client.delete("hello")
🤝 Contributing
Contributions are welcome! 🎉
Metadata
Release files for zentropy-py 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zentropy_py-0.1.4.tar.gz | 3.8 kB | Without provenance | Details for zentropy_py-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zentropy_py-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for zentropy_py-0.1.4-py3-none-any.whl |
Total release size: 8.7 kB
Release files / zentropy_py-0.1.4.tar.gz
| Download URL | zentropy_py-0.1.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fe9ec650a9288fecdb199583710060af457a924f8f072f9560f8f810d7e581a
|
|
BLAKE2b-256 checksum How to use checksums |
b3b274c3746775027865efa0ee5061538a96e807f06b67cc5f922a2db10d97fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / zentropy_py-0.1.4-py3-none-any.whl
| Download URL | zentropy_py-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0406beda65473fa2d95f5a1a55af765b5d0d18dbf7c06dfdac907e3b18958b34
|
|
BLAKE2b-256 checksum How to use checksums |
957984dabed416a11b50bcb216f527ecd666e27ff674715fdc0e69f6acc3d3e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for zentropy-py 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.