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
Metadata
Release files for db6py 5.4.6
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 | |
|---|---|---|---|---|
| db6py-5.4.6.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| db6py-5.4.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / db6py-5.4.6.tar.gz
| Download URL | db6py-5.4.6.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae37e228c743e9575ccac8c7931fce71428c5bcd8904f4f784b9d732a548cf9a
|
|
BLAKE2b-256 checksum How to use checksums |
eda08b6ec02d4804146819ebe9f92d46bbdf57aec5e1f0fddaabe815e554b188
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / db6py-5.4.6-py3-none-any.whl
| Download URL | db6py-5.4.6-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0556bf6040370d8ea2b0af34e17f1a10f0724ba33c400e6bcece7cdbcfe7aab6
|
|
BLAKE2b-256 checksum How to use checksums |
2e53b375e385045e781dadf07ec5c7df08d0abaf4b94944cb6fd84ca4db5e9d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for db6py 5.4.6
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.