yumako


Nameyumako JSON
Version 0.1.13 PyPI version JSON
download
home_pageNone
SummaryVanilla python utilities, for humans.
upload_time2025-01-23 08:38:53
maintainerNone
docs_urlNone
authorNanw1103
requires_python>=3.9
licenseMIT
keywords util vanilla for humans
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Yumako ![Yumako](doc/yumako.png) 

Vanilla python utilities, for humans.

[![PyPI version](https://badge.fury.io/py/yumako.svg)](https://badge.fury.io/py/yumako)
[![Python Versions](https://img.shields.io/pypi/pyversions/yumako.svg)](https://pypi.org/project/yumako/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![Typed](https://img.shields.io/badge/Typed-Yes-blue.svg)](https://github.com/yumako/yumako)
[![Downloads](https://static.pepy.tech/badge/yumako)](https://pepy.tech/projects/yumako)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
[![Sourcery](https://img.shields.io/badge/Sourcery-enabled-brightgreen)](https://sourcery.ai)
[![pylint: errors-only](https://img.shields.io/badge/pylint-errors--only-brightgreen)](https://github.com/pylint-dev/pylint)





Install:
```bash
pip install yumako

# Yumako utilities are based on vanilla python: no other dependencies.
```

Usage:
```python
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "yumako",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "util, vanilla, for humans",
    "author": "Nanw1103",
    "author_email": "nanw1103@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f1/d2/1e3fb8a176e673fa967d8a47184abc29a74d6ded52b3aaf91f216cea1e9e/yumako-0.1.13.tar.gz",
    "platform": null,
    "description": "# Yumako ![Yumako](doc/yumako.png) \n\nVanilla python utilities, for humans.\n\n[![PyPI version](https://badge.fury.io/py/yumako.svg)](https://badge.fury.io/py/yumako)\n[![Python Versions](https://img.shields.io/pypi/pyversions/yumako.svg)](https://pypi.org/project/yumako/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![Typed](https://img.shields.io/badge/Typed-Yes-blue.svg)](https://github.com/yumako/yumako)\n[![Downloads](https://static.pepy.tech/badge/yumako)](https://pepy.tech/projects/yumako)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)\n[![Sourcery](https://img.shields.io/badge/Sourcery-enabled-brightgreen)](https://sourcery.ai)\n[![pylint: errors-only](https://img.shields.io/badge/pylint-errors--only-brightgreen)](https://github.com/pylint-dev/pylint)\n\n\n\n\n\nInstall:\n```bash\npip install yumako\n\n# Yumako utilities are based on vanilla python: no other dependencies.\n```\n\nUsage:\n```python\nimport yumako\n# Yumako submodules are loaded only when needed.\n\n# ---------------------------------------\n# Yumako utilities are designed for human\n# ---------------------------------------\nprint(yumako.time.of(\"2025-01-17H23:00:00.000-05:00\"))  # most popular time formats\nprint(yumako.time.of(\"-3d\"))  # most intuitive human-friendly formats\n\nseconds = yumako.time.duration(\"3m4s\")  # 3m4s -> 184 seconds\ndelta = timedelta(seconds=seconds)\nprint(yumako.time.display(delta))  # 3m4s\n\n# ---------------------------------------\n# Yumako utilities are highly performant\n# ---------------------------------------\nlru = yumako.lru.LRUDict()\nlru[1] = True\nlru[\"hello\"] = \"mortal\"\nprint(lru)\n\nlru_set = yumako.lru.LRUSet()\nlru_set.add(\"\u30e6\u30de\u679c\")\nprint(lru_set)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Vanilla python utilities, for humans.",
    "version": "0.1.13",
    "project_urls": null,
    "split_keywords": [
        "util",
        " vanilla",
        " for humans"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ceebe2880b336cdfdad2e13377c2f40bfb4bc99423e8f42b60de07eba11a656",
                "md5": "a188af0c7e31a818c4138e1e6262e107",
                "sha256": "abdb0205e795df3433449f62ae0fc1a038137f774c1f2c3526b6fbc871f0c680"
            },
            "downloads": -1,
            "filename": "yumako-0.1.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a188af0c7e31a818c4138e1e6262e107",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9743,
            "upload_time": "2025-01-23T08:38:51",
            "upload_time_iso_8601": "2025-01-23T08:38:51.873940Z",
            "url": "https://files.pythonhosted.org/packages/0c/ee/be2880b336cdfdad2e13377c2f40bfb4bc99423e8f42b60de07eba11a656/yumako-0.1.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1d21e3fb8a176e673fa967d8a47184abc29a74d6ded52b3aaf91f216cea1e9e",
                "md5": "27357d5532ac9c06dbedb7272974d32f",
                "sha256": "3e4c42cb1f2ae120d856cb566464d2623ab7a37c8369a5f0f99d10a978394e63"
            },
            "downloads": -1,
            "filename": "yumako-0.1.13.tar.gz",
            "has_sig": false,
            "md5_digest": "27357d5532ac9c06dbedb7272974d32f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 9899,
            "upload_time": "2025-01-23T08:38:53",
            "upload_time_iso_8601": "2025-01-23T08:38:53.514055Z",
            "url": "https://files.pythonhosted.org/packages/f1/d2/1e3fb8a176e673fa967d8a47184abc29a74d6ded52b3aaf91f216cea1e9e/yumako-0.1.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-23 08:38:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "yumako"
}
        
Elapsed time: 0.42477s