Name | zentropy-py JSON |
Version |
0.1.2
JSON |
| download |
home_page | None |
Summary | A simple client for Zentropy server |
upload_time | 2025-10-19 06:41:54 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT |
keywords |
client
redis
tcp
zentropy
zig
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Zentropy Python Client
A lightweight Python client for **[Zentropy](https://github.com/mailmug/zentropy)** — a fast, Redis-like key-value store with authentication, Unix socket support, and a simple text-based protocol.
---
## 🚀 Installation
Install from **PyPI**:
```bash
pip install zentropy-py
```
## 🧠 Usage
### Basic Example
```python
from zentropy import Client
client = Client(password="testpass")
client.set("foo", "bar")
print(client.get("foo")) # Output: bar
client.close()
```
## 🔐 Authentication
```python
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
```python
client.set("hello", "world")
print(client.exists("hello")) # True
print(client.get("hello")) # "world"
client.delete("hello")
```
### 🤝 Contributing
Contributions are welcome! 🎉
Raw data
{
"_id": null,
"home_page": null,
"name": "zentropy-py",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "client, redis, tcp, zentropy, zig",
"author": null,
"author_email": "MailMug <info@mailmug.net>",
"download_url": "https://files.pythonhosted.org/packages/4b/ac/6210095fa9c435e2e81c56060597974afc7ab2367eedb211f3a6d89502e8/zentropy_py-0.1.2.tar.gz",
"platform": null,
"description": "# Zentropy Python Client\n\nA lightweight Python client for **[Zentropy](https://github.com/mailmug/zentropy)** \u2014 a fast, Redis-like key-value store with authentication, Unix socket support, and a simple text-based protocol.\n\n---\n\n## \ud83d\ude80 Installation\n\nInstall from **PyPI**:\n\n```bash\npip install zentropy-py\n```\n\n## \ud83e\udde0 Usage\n### Basic Example\n\n```python\nfrom zentropy import Client\n\nclient = Client(password=\"testpass\")\n\nclient.set(\"foo\", \"bar\")\nprint(client.get(\"foo\")) # Output: bar\n\nclient.close()\n```\n\n## \ud83d\udd10 Authentication\n```python\nclient = Client(host='127.0.0.1', port=6383, password='password here')\n```\n\n## \u2699\ufe0f Supported Commands\n\n| Method | Command | Description |\n| ----------------- | -------- | --------------------------- |\n| `auth(password)` | `AUTH` | Authenticate the connection |\n| `set(key, value)` | `SET` | Set a key-value pair |\n| `get(key)` | `GET` | Retrieve a value |\n| `delete(key)` | `DELETE` | Remove a key |\n| `exists(key)` | `EXISTS` | Check if a key exists |\n| `ping()` | `PING` | Test connectivity |\n| `close()` | \u2013 | Close the connection |\n\n\n## Example\n\n```python\nclient.set(\"hello\", \"world\")\nprint(client.exists(\"hello\")) # True\nprint(client.get(\"hello\")) # \"world\"\nclient.delete(\"hello\")\n```\n\n\n### \ud83e\udd1d Contributing\n\nContributions are welcome! \ud83c\udf89",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple client for Zentropy server",
"version": "0.1.2",
"project_urls": {
"Documentation": "https://github.com/mailmug/zentropy-py#readme",
"Homepage": "https://github.com/mailmug/zentropy-py",
"Issues": "https://github.com/mailmug/zentropy-py/issues",
"Repository": "https://github.com/mailmug/zentropy-py"
},
"split_keywords": [
"client",
" redis",
" tcp",
" zentropy",
" zig"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6343b0cafceca7787db3fb6944d0fa9193aa8671f1993fa5eb410f3c99d0b60d",
"md5": "5a2bcc2fb2278318e5a57d11bb890bb4",
"sha256": "8432476aabfc4daad397a79651ba4a0b2be981e828569e2fd9cfdb439537c993"
},
"downloads": -1,
"filename": "zentropy_py-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5a2bcc2fb2278318e5a57d11bb890bb4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4414,
"upload_time": "2025-10-19T06:41:52",
"upload_time_iso_8601": "2025-10-19T06:41:52.224038Z",
"url": "https://files.pythonhosted.org/packages/63/43/b0cafceca7787db3fb6944d0fa9193aa8671f1993fa5eb410f3c99d0b60d/zentropy_py-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4bac6210095fa9c435e2e81c56060597974afc7ab2367eedb211f3a6d89502e8",
"md5": "0b69b6f7d6e7e528475f252078262f9a",
"sha256": "88d6944b40713f267bcf2833bcf0a5b847d396c27584a4736018c74c3b6be458"
},
"downloads": -1,
"filename": "zentropy_py-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "0b69b6f7d6e7e528475f252078262f9a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3361,
"upload_time": "2025-10-19T06:41:54",
"upload_time_iso_8601": "2025-10-19T06:41:54.027057Z",
"url": "https://files.pythonhosted.org/packages/4b/ac/6210095fa9c435e2e81c56060597974afc7ab2367eedb211f3a6d89502e8/zentropy_py-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-19 06:41:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mailmug",
"github_project": "zentropy-py#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "zentropy-py"
}