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.43

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.43
File Size Uploaded
yumako-0.1.43.tar.gz 25.4 kB Details

Built distribution (wheel)

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

Release history Release notifications | RSS feed

This release

0.1.43 This release

2 release files

0.1.42

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