A simple key-value store client for keyval.org
Project description
keyval
Simple Python client for keyval.org — a minimal key-value store for developers.
Install
pip install keyval
Usage
import keyval
# Store a value
result = keyval.set("mykey", "myvalue")
# {"status": "success", "key": "mykey", "val": "myvalue"}
# Retrieve a value
result = keyval.get("mykey")
# {"status": "success", "key": "mykey", "val": "myvalue"}
# Auto-generate a key using '-'
result = keyval.set("-", "myvalue")
# {"status": "success", "key": "uuid-abc-...", "val": "myvalue"}
Response format
Both methods return a dict:
| Field | Description |
|---|---|
status |
"success" or an error string |
key |
The key used |
val |
The stored value |
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
keyval-1.2.1.tar.gz
(2.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
File details
Details for the file keyval-1.2.1.tar.gz.
File metadata
- Download URL: keyval-1.2.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da378be95a5435ab37120a93b057ee4b13030c61a0b17ae4d4c25975ea0b2721
|
|
| MD5 |
5464c81be0f415e68fa6f5466f00af9c
|
|
| BLAKE2b-256 |
fdaf19e3b89b77391df140388bd7a1e6bc013e747af5c47edcf8d6c3e8cc3a2c
|
File details
Details for the file keyval-1.2.1-py3-none-any.whl.
File metadata
- Download URL: keyval-1.2.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b198081d80cf7b6edd54fc9c97fdc90330cb97db261e2ec7b8db1c69638c3274
|
|
| MD5 |
15fd70cceaa2e641dd3f4b3047eb09f7
|
|
| BLAKE2b-256 |
d63545fb18b1fc1b0529c63c869b626d5f022119c897aa027d756ce6ebe69f91
|