Skip to main content

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.

Release files for humus.py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for humus.py 0.1.0
File Size Uploaded
humus_py-0.1.0.tar.gz 13.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for humus.py 0.1.0
File Interpreter ABI Platform
humus_py-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / humus_py-0.1.0.tar.gz

Download URL humus_py-0.1.0.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0affbf80ad53bdbf1131c5424cf68aa6e1f3f58d9b5014c50f4164e9fc25504c
BLAKE2b-256 checksum
How to use checksums
ac93727cd5bb415230c5743341465c4e132decdbda5e766a191e54f7293aaf1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.6.43

Release files / humus_py-0.1.0-py3-none-any.whl

Download URL humus_py-0.1.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2faadc6211dfc4111425327654efd2b36bcf082f1b57d46aff48f5e0b36d5642
BLAKE2b-256 checksum
How to use checksums
b8273cc879af3081e08915c937b7710f2b254c0bdc5726803575a2fb79b1dc2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.6.43

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page