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.43
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.43.tar.gz | 25.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yumako-0.1.43-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.8 kB
Release files / yumako-0.1.43.tar.gz
| Download URL | yumako-0.1.43.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6014a8f77f2a953dbff452035fbf6d0dfd44e60eeaef72b57b0b7be3649c240b
|
|
BLAKE2b-256 checksum How to use checksums |
9a9fa4e805dda667a923c44d71d8f3ba5c9fc9eaefb016cc9d6bb541bc960485
|
| 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.43-py3-none-any.whl
| Download URL | yumako-0.1.43-py3-none-any.whl |
|---|---|
| Size | 28.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4ff397023534be872cffcb699d974f5dd7f4e9570f5e2e68429f231b6bc0142
|
|
BLAKE2b-256 checksum How to use checksums |
a20acebea05bc62c54aa5fce201bbd53517e3d16b23037512dd9f88736fced4f
|
| 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
|