Package adash

ユーティリティライブラリ

Test PyPI version

install

pip install adash

useit

Lodashのような使い方を推奨します。

import adash as _

s = "abcabc"
obj = {"a": "!", "b": "", "c": "?"}
_.replace_all(s, obj) #-> !?!?

adash API documentation

Expand source code
"""
.. include:: ../../README.md
"""
from .file_util import download, json_read, json_write, cat
from .string_util import (
    replace_all,
    to_half_string,
    to_number,
    to_date,
    split_uppercase,
    to_md5,
    to_sha256,
)
from .proportion import proportion, progress_rate
from .date_util import date_list
from .collection_util import allkeys

Sub-modules

adash.collection_util
adash.date_util
adash.file_util
adash.proportion
adash.string_util