A client for the humus composting database
Project description
Humus.py
(A python client for) a composting database.
Simple python client for Humus, the forgetful database.
Installation:
pip install humus.py # Not pip install humus, that's someone else's project that ironically does the complete opposite
Usage:
First, make sure the Humus server is running somewhere you can access it.
Then you can create a client object:
import humus
# Create a client.
# Looks for HUMUS_PROTOCOL, HUMUS_HOST and HUMUS_PORT environment variables,
# or by default connects to humus on http://localhost:3030
client = humus.Client()
# Otherwise you can provide protocol, host and port as arguments:
client = humus.Client(host="somehost", port=1234, protocol="https")
Once you have your client, you can start storing and retrieving objects:
# Put (any json-serializable) dict at a path:
client.insert("path/to/the_object", { "hello": "world"})
# Get objects at a path:
client.get("path/to/the_object")
# => [{ "hello": "world"}]
Further information on the humus, its data model, and our innovative and forward-thinking strong guarantee of transience™ can be found in the main humus repository.
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
humus_py-0.1.0.tar.gz
(13.8 kB
view details)
Built Distribution
humus_py-0.1.0-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file humus_py-0.1.0.tar.gz
.
File metadata
- Download URL: humus_py-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.6.43
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0affbf80ad53bdbf1131c5424cf68aa6e1f3f58d9b5014c50f4164e9fc25504c |
|
MD5 | 6d1b704a4e16020b507fd844a265b3e3 |
|
BLAKE2b-256 | ac93727cd5bb415230c5743341465c4e132decdbda5e766a191e54f7293aaf1d |
File details
Details for the file humus_py-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: humus_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.6.43
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2faadc6211dfc4111425327654efd2b36bcf082f1b57d46aff48f5e0b36d5642 |
|
MD5 | 012c5afd29daef0a0df76af985a5348e |
|
BLAKE2b-256 | b8273cc879af3081e08915c937b7710f2b254c0bdc5726803575a2fb79b1dc2b |