Skip to main content

Yumako Yumako

Vanilla Python utilities for humans.

PyPI version Python Versions License: MIT Ruff Checked with mypy Typed Downloads pre-commit security: bandit Sourcery pylint: errors-only

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)

Source distribution for yumako 0.1.42
File Size Uploaded
yumako-0.1.42.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yumako 0.1.42
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.1.43

2 release files

This release

0.1.42 This release

2 release files

0.1.41

2 release files

0.1.40

2 release files

0.1.39

2 release files

0.1.37

2 release files

0.1.36

2 release files

0.1.31

2 release files

0.1.30

2 release files

0.1.27

2 release files

0.1.26

2 release files

0.1.25

2 release files

0.1.24

2 release files

0.1.23

2 release files

0.1.22

2 release files

0.1.21

2 release files

0.1.19

2 release files

0.1.17

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

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