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.30.tar.gz (20.0 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.30-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yumako-0.1.30.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.9.6 Darwin/24.6.0

File hashes

Hashes for yumako-0.1.30.tar.gz
Algorithm Hash digest
SHA256 f6a35c814bed37b4d741ba6bc5c8d4400034efa55292b51280636851a35bdb73
MD5 858e7779c34635ae6e293b7800144fb5
BLAKE2b-256 6e0369c21453eb7d2bc3b286fa2547fbe078590ed8557791c430a2e1f56d1080

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yumako-0.1.30-py3-none-any.whl
  • Upload date:
  • Size: 22.6 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

Hashes for yumako-0.1.30-py3-none-any.whl
Algorithm Hash digest
SHA256 f77d229d059801552312d55c6362214eae70894304ac29afbee48bd3c184f9f6
MD5 3796a368c7bd1360e105c6e60e4e7baf
BLAKE2b-256 32b52aff2d176f59dece5b202da8ac0c9adc576af078cad337708900666c9d95

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