Python client for db6 database
Project description
db6py
Python client for db6 database with REST and WebSocket support.
Installation
pip install db6py
With WebSocket support:
pip install db6py[websocket]
Quick Start
from db6py import Client
# Create client (REST)
db = Client("http://localhost:50052")
# Or use WebSocket
db = Client("http://localhost:50052", use_websocket=True)
# Health check
db.health()
# Key-Value operations
db.put(1, "key", "value")
value, found = db.get(1, "key")
# Batch operations
db.batch_put(1, [("k1", "v1"), ("k2", "v2")])
results = db.scan(1, "k", "k\xff")
# Statistics
stats = db.stats()
# Delete
db.delete(1, "key")
API Reference
Client(base_url, use_websocket=False)
health()-> boolput(table_id, key, value)-> Noneget(table_id, key)-> (value, found)delete(table_id, key)-> Nonebatch_put(table_id, items)-> Nonescan(table_id, start_key, end_key)-> [(key, value), ...]stats()-> dict
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
db6py-5.3.2.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
db6py-5.3.2-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file db6py-5.3.2.tar.gz.
File metadata
- Download URL: db6py-5.3.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
116226f21125616c5825c4a69fdb5d192bfe8ee5634f5e89f5ad7479a18210ee
|
|
| MD5 |
4090844431063ce8cbb13e513f99cd2f
|
|
| BLAKE2b-256 |
2aa3fdc1bd3389c51fde41096bb445d5089e9e4b815d061c2015f3062e4a98c3
|
File details
Details for the file db6py-5.3.2-py3-none-any.whl.
File metadata
- Download URL: db6py-5.3.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6eefd2352b0a4165ce98fd0a3bab0b17c50fbc2a4781257a9c71717af69fdbea
|
|
| MD5 |
90a6ce9f69821d8dcf11fb527046b553
|
|
| BLAKE2b-256 |
ae78cf03e605e498d582ef853a7a3b0078ccd119a74ea0096548b8da50730056
|