Skip to main content

No project description provided

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

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"))  # Any popular timeformat
print(yumako.time.of("-3d"))  # 3 days ago

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: yumako-0.1.10.tar.gz
  • Upload date:
  • Size: 9.8 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.10.tar.gz
Algorithm Hash digest
SHA256 0f267ca4fad9ff53ddfec4f5a797900059075d1cf5511337882d450a4c83bb70
MD5 2e375be9fa6945734e259faf45a3f3f6
BLAKE2b-256 64a59f775a3f6dd920987e1ab92a1e600a24a1603a061f61dc5590e6a7803aec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yumako-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2822d66efca74e3b001be82c6915dc9ab7836596c2a082ce2d2fe3502aa97d25
MD5 1ba75f918bca50065d5763ffc219b968
BLAKE2b-256 e19f9aac6d087ccd86934ede2ec4b22c4a9526c978683104139260493db4c6cf

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