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

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.41
File Size Uploaded
yumako-0.1.41.tar.gz 25.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yumako 0.1.41
File Interpreter ABI Platform
yumako-0.1.41-py3-none-any.whl Python 3 none any Details

Total release size: 53.3 kB

Release files / yumako-0.1.41.tar.gz

Download URL yumako-0.1.41.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b646ffa85f136874d88e2886061986221da33c5705a1bb69051fe2bffb8505be
BLAKE2b-256 checksum
How to use checksums
76c21a967f2d472e8c73e7525e445afdbc6737b0107413080b90e830f86f3ae5
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.41-py3-none-any.whl

Download URL yumako-0.1.41-py3-none-any.whl
Size 28.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a6f1acb69a0150b646925b68b22e614816a25e095fdf1dfe445dd6cf63ac8a1
BLAKE2b-256 checksum
How to use checksums
e13c1880c1368add2e84e511fa8f49818d4b5cce1365895cd691461fa3aab3c2
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

0.1.42

2 release files

This release

0.1.41 This release

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