🤔 What is this?
hydrods is a lightweight Python SDK to connect to HydroDB — a high-performance NoSQL database engine built from scratch in C++17.
- No
redis-pyneeded — talks directly over raw TCP sockets - RESP protocol parser — automatically converts responses into Python types (
str,int,dict) - Thread-safe — works great with
threading,concurrent.futures, or connection pools
🚀 Installation
pip install hydrods
💻 Quick Start
from hydrods import HydroDB
# Connect to your HydroDB server
db = HydroDB(host='127.0.0.1', port=7379)
# ✏️ SET — store a value
db.set('user:101', 'Anurag Panwar')
# 📖 GET — retrieve it
name = db.get('user:101')
print(name) # → "Anurag Panwar"
# 🗑️ DELETE — remove it
db.delete('user:101')
# 📊 RANGE — query a lexicographic range
db.set('sensor:001', 'temp: 22.5')
db.set('sensor:002', 'temp: 23.1')
db.set('sensor:003', 'temp: 21.8')
results = db.range('sensor:000', 'sensor:999')
for key, value in results.items():
print(f" {key} → {value}")
# 📄 RANGE with pagination
page = db.range('sensor:000', 'sensor:999', limit=10, offset=0)
# 🔌 Close when done
db.close()
📖 API Reference
| Method | Returns | Description |
|---|---|---|
HydroDB(host, port) |
— | Connect to HydroDB server (default: 127.0.0.1:7379) |
set(key, value) |
bool |
Store a key-value pair |
get(key) |
str | None |
Retrieve value by key, None if not found |
delete(key) |
bool |
Delete a key, returns True if deleted |
range(start, end) |
dict |
Get all key-value pairs in lexicographic range |
range(start, end, limit, offset) |
dict |
Paginated range query |
close() |
— | Close the TCP connection |
⚡ Why hydrods?
| Feature | hydrods |
redis-py |
|---|---|---|
| External dependencies | ❌ None | ✅ hiredis, etc. |
| Direct TCP sockets | ✅ | ❌ (abstracted) |
| RESP parsing | ✅ Built-in | ✅ Built-in |
| Range queries (ordered) | ✅ Native HRANGE |
⚠️ Needs ZRANGEBYLEX |
| Pagination support | ✅ LIMIT offset count |
⚠️ Varies by command |
| Thread-safe usage | ✅ | ✅ |
🔗 Links
- HydroDB Server → github.com/Anuragpm214/Hydrods
- PyPI → pypi.org/project/hydrods
📜 License
MIT License — Anurag Panwar
Metadata
Release files for hydrods 2.1.1
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 |
|---|---|---|---|---|
| hydrods-2.1.1.tar.gz | 4.0 kB | Without provenance | Details for hydrods-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hydrods-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for hydrods-2.1.1-py3-none-any.whl |
Total release size: 8.2 kB
Release files / hydrods-2.1.1.tar.gz
| Download URL | hydrods-2.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2066daa4b0243f0080e3213c1c6e0886e06807d4dd8fd6b3295c8d1ad870462
|
|
BLAKE2b-256 checksum How to use checksums |
bfec5ed25078395f261711a67ff2f2624f43b1e39e5464d6b91926e3b4667f52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / hydrods-2.1.1-py3-none-any.whl
| Download URL | hydrods-2.1.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5724a542fda581c134bcc56b21dec459206cf085ae68a57a9e2a7a02b857c64
|
|
BLAKE2b-256 checksum How to use checksums |
131812579d43b7f344d96608a29916b5b0440481096d15b6699506b9040b53ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for hydrods 2.1.1
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.