HyperDB Python Client
Author: Afaan Bilal
Introduction
HyperDB Python is a Python client package for the HyperDB server.
Installation
pip install hyperdb-py
Example usage
from hyperdb_py.HyperDB import HyperDB
# Setup with address (default: http:#localhost:8765)
hyperdb = HyperDB("http://localhost:8765")
# OR
# Setup with address and authentication
# hyperdb = new HyperDB("http://localhost:8765", "username", "password")
# Ping the server
r = hyperdb.ping()
print(str(r)) # True
# Get the version number
r = hyperdb.version()
print(str(r)) # "[HyperDB v0.1.0 (https:#afaan.dev)]"
# Set a value
r = hyperdb.set("test", "value")
print(str(r)) # value
# Check if a key is present
r = hyperdb.has("test")
print(str(r)) # True
# Get a value
r = hyperdb.get("test")
print(str(r)) # value
# Get all stored data
r = hyperdb.all()
print(str(r)) # {test: "value"}
# Remove a key
r = hyperdb.delete("test")
print(str(r)) # True
# Delete all stored data
r = hyperdb.clear()
print(str(r)) # True
# Check if the store is empty
r = hyperdb.empty()
print(str(r)) # True
# Persist the store to disk
r = hyperdb.save()
print(str(r)) # True
# Reload the store from disk
r = hyperdb.reload()
print(str(r)) # True
# Delete all store data from memory and disk
r = hyperdb.reset()
print(str(r)) # True
Contributing
All contributions are welcome. Please create an issue first for any feature request or bug. Then fork the repository, create a branch and make any changes to fix the bug or add the feature and create a pull request. That's it! Thanks!
License
HyperDB Python is released under the MIT License. Check out the full license here.
Metadata
Release files for hyperdb-py 0.1.2
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 |
|---|---|---|---|---|
| hyperdb_py-0.1.2.tar.gz | 3.3 kB | Without provenance | Details for hyperdb_py-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hyperdb_py-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for hyperdb_py-0.1.2-py3-none-any.whl |
Total release size: 7.1 kB
Release files / hyperdb_py-0.1.2.tar.gz
| Download URL | hyperdb_py-0.1.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1c913fd15131fc66dbc82d7c5c474cef990845ae3efb19d4f9a1584015e08ac
|
|
BLAKE2b-256 checksum How to use checksums |
cfb12fa83330d251a67a80bc1711888e466bfe108c1110a827809f21bab29c94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Release files / hyperdb_py-0.1.2-py3-none-any.whl
| Download URL | hyperdb_py-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59be24d10fbb5e2ef557effd50262c0fd6e01c762a6d3dd80682530aea098f40
|
|
BLAKE2b-256 checksum How to use checksums |
e56ef2396f5ac74c7846aa259cb800251ce6e0357c0e1d7968be4e54d5fc63ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Security for hyperdb-py 0.1.2
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.