Skip to main content

Vanilla python utilities, for humans.

Project description

Yumako Yumako

Vanilla python utilities, for humans.

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

What Yumako should include

  • Human-friendly utilities.
  • Utilities that are for generic use cases, not domain-specific.
  • High performance utilities.
  • Utilities based on vanilla python, no external dependencies.

Install:

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 designed for human
# ---------------------------------------
print(yumako.time.of("2025-01-17H23:00:00.000-05:00"))  # most popular time formats
print(yumako.time.of("-3d"))  # most intuitive human-friendly formats

seconds = yumako.time.duration("3m4s")  # 3m4s -> 184 seconds
delta = timedelta(seconds=seconds)
print(yumako.time.display(delta))  # 3m4s

# ---------------------------------------
# Yumako utilities are highly performant
# ---------------------------------------
lru = yumako.lru.LRUDict()
lru[1] = True
lru["hello"] = "mortal"
print(lru)

lru_set = yumako.lru.LRUSet()
lru_set.add("ユマ果")
print(lru_set)

Project details


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.19.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yumako-0.1.19-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file yumako-0.1.19.tar.gz.

File metadata

  • Download URL: yumako-0.1.19.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.11.10 Darwin/23.6.0

File hashes

Hashes for yumako-0.1.19.tar.gz
Algorithm Hash digest
SHA256 3c0e3bd56e1a72120a25f5305c62cf06c1a4542a73273bfb398958e9a3c79216
MD5 75188af713dbf634b5a393ac8e3f0c58
BLAKE2b-256 dc7b1772e68dbba668da23c7e03e35084210d677ac0fc307e0e75a50fa1e72a6

See more details on using hashes here.

File details

Details for the file yumako-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: yumako-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.11.10 Darwin/23.6.0

File hashes

Hashes for yumako-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 0db22d48ab4105732e5930d9e0c6d1bcf7f052774d76784d7814676d2eaae47a
MD5 196f78cb52bba6c0c0d31a218c5e6936
BLAKE2b-256 d4c2be2dd88b5219dbb98870e89c5c9275f6a7d954c6d1eb04f9c06642f3edee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page