Vanilla python utilities, for humans.
Project description
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.
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
yumako-0.1.39.tar.gz
(25.4 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
yumako-0.1.39-py3-none-any.whl
(28.3 kB
view details)
File details
Details for the file yumako-0.1.39.tar.gz.
File metadata
- Download URL: yumako-0.1.39.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.0 CPython/3.9.6 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d3f8f60b031a05c61885cc598d48a6ba2d6bc842c951e4966d7ca87a117084d
|
|
| MD5 |
18e3479f54023a4ef494a0174e0540df
|
|
| BLAKE2b-256 |
de3f6d4da9e8e4e5f03ac83bb413a06dfb5f6855bf88d7bea5d3e1931829b270
|
File details
Details for the file yumako-0.1.39-py3-none-any.whl.
File metadata
- Download URL: yumako-0.1.39-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.0 CPython/3.9.6 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
114e2c4df5c7ca3ce9fe1ae3a94d1319bd72b0c26028e73f268dad06c8db8e79
|
|
| MD5 |
13d9282dec6f99843d599b555b33405f
|
|
| BLAKE2b-256 |
c9c1bd11893f0618f4a2d2bea85aa1e2322892ee78fcc693392ea233d0389bbc
|