banal-1.0.6
توضیحات
Commons of banal micro-functions for Python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | banal-1.0.6 |
| نام | banal |
| نسخه کتابخانه | 1.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Friedrich Lindenberg |
| ایمیل نویسنده | friedrich@pudo.org |
| آدرس صفحه اصلی | http://github.com/pudo/banal |
| آدرس اینترنتی | https://pypi.org/project/banal/ |
| مجوز | MIT |
# banal
Commons of Python micro-functions. This basically an out-sourced, shared
utils module with a focus on functions that buffer type uncertainties in
Python (e.g. "is this a list?").
Rules:
* Functions are properly typed, library passes `mypy`.
* Cannot depend on anything but six and the standard library
## Functions
* ``is_listish``: check if something is list-ish
* ``is_mapping``: check if an object is dict-ish
* ``ensure_list``: make sure an argument is a list, or make it into a single-element list
* ``clean_dict``: remove null values from a dict, recursively
* ``decode_path``: decode a path name to be unicode
* ``hash_data``: generate a SHA1 from a dict of reasonable objects
نیازمندی
| مقدار | نام |
|---|---|
| - | mypy |
| - | wheel |
نحوه نصب
نصب پکیج whl banal-1.0.6:
pip install banal-1.0.6.whl
نصب پکیج tar.gz banal-1.0.6:
pip install banal-1.0.6.tar.gz