Yumako 
Vanilla Python utilities for humans.
What Yumako Includes
- Human-friendly utilities.
- Utilities for generic use cases, not domain-specific.
- High performance utilities.
- Utilities based on vanilla Python with no external dependencies.
Installation
pip install yumako
# Yumako utilities are based on vanilla python: no other dependencies.
Usage
import yumako
# Yumako submodules are loaded only when needed
# ---------------------------------------
# Yumako utilities are highly performant
# ---------------------------------------
from yumako.lru import LRUDict, LRUSet
lru = LRUDict()
lru[1] = True
lru["hello"] = "mortal"
lru["ユマ果"] = "💖"
print(lru)
lru_set = LRUSet()
lru_set.add("ユマ果")
print(lru_set)
# ---------------------------------------
# Yumako utilities are handy
# ---------------------------------------
from yumako.state import state_file
context = state_file(".state")
context.k1 = "v1" # Persisted to disk
print(context.k1) # But also cached in RAM
# ---------------------------------------
# Yumako utilities are designed for humans
# ---------------------------------------
print(yumako.time.of("2025-01-17H23:00:00.000-05:00")) # Popular standard time formats
print(yumako.time.of("-3d")) # Popular intuitive human-friendly formats
seconds = yumako.time.duration("3m4s") # "3m4s" -> 184 seconds
delta = timedelta(seconds=seconds)
print(yumako.time.display(delta)) # "3m4s"
More examples.
Metadata
Release files for yumako 0.1.42
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yumako-0.1.42.tar.gz | 25.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yumako-0.1.42-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.5 kB
Release files / yumako-0.1.42.tar.gz
| Download URL | yumako-0.1.42.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a098197d420d043adb6dccfca5a1505a7225f12427a9188a7080ecb0202ccea
|
|
BLAKE2b-256 checksum How to use checksums |
c0a1e5373345079fe2de16329c671b72a12cf2c0c513da851a8a48fd4f36be4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.0 CPython/3.9.6 Darwin/24.6.0
|
Release files / yumako-0.1.42-py3-none-any.whl
| Download URL | yumako-0.1.42-py3-none-any.whl |
|---|---|
| Size | 28.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
193875916d071287f90092de8d6a06ed7825550f48074226f81112e8fad1db56
|
|
BLAKE2b-256 checksum How to use checksums |
3d1f8353222f6b7f906e0119cb473feed7ed1b9c5cbd2d8d64c6211d32bd1056
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.0 CPython/3.9.6 Darwin/24.6.0
|