Skip to main content

A simple client for Zentropy server

Project description

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! 🎉

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

zentropy_py-0.1.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zentropy_py-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file zentropy_py-0.1.3.tar.gz.

File metadata

  • Download URL: zentropy_py-0.1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for zentropy_py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5196e45a3e822da9abc8aa44327934ea2fa9fd0ddef41e290feb099e4175d799
MD5 cebefc2d306ee16b6a3d87a705ca3ad7
BLAKE2b-256 f8b4f3a6d8d5a3f2e968ef354fb27e2a4128e9898fc0eb98f9a011c46e134e5e

See more details on using hashes here.

File details

Details for the file zentropy_py-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: zentropy_py-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for zentropy_py-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68077afa7f88f834a3ef85440ffc179c2ee870845389116773fcf1b25c815c39
MD5 fa7cefd1e5032d83b7a57aff7088b10b
BLAKE2b-256 5e17f098baedf13c810ef0996a63fc56dc2150b02007148e91c35e0341a8b515

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page