# 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
Raw data
{
"_id": null,
"home_page": "http://github.com/pudo/banal",
"name": "banal",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "utilities commons functions",
"author": "Friedrich Lindenberg",
"author_email": "friedrich@pudo.org",
"download_url": "https://files.pythonhosted.org/packages/8c/a7/3301a69b4a31f7324b99332d758ae8da691f7f865ccd1b2adcd973c45344/banal-1.0.6.tar.gz",
"platform": "",
"description": "# banal\n\nCommons of Python micro-functions. This basically an out-sourced, shared\nutils module with a focus on functions that buffer type uncertainties in\nPython (e.g. \"is this a list?\").\n\nRules:\n\n* Functions are properly typed, library passes `mypy`.\n* Cannot depend on anything but six and the standard library\n\n## Functions\n\n* ``is_listish``: check if something is list-ish\n* ``is_mapping``: check if an object is dict-ish\n* ``ensure_list``: make sure an argument is a list, or make it into a single-element list\n* ``clean_dict``: remove null values from a dict, recursively\n* ``decode_path``: decode a path name to be unicode\n* ``hash_data``: generate a SHA1 from a dict of reasonable objects\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Commons of banal micro-functions for Python.",
"version": "1.0.6",
"split_keywords": [
"utilities",
"commons",
"functions"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "417bc1688ab56ea65f9b9cb31a9a7154",
"sha256": "877aacb16b17f8fa4fd29a7c44515c5a23dc1a7b26078bc41dd34829117d85e1"
},
"downloads": -1,
"filename": "banal-1.0.6-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "417bc1688ab56ea65f9b9cb31a9a7154",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6069,
"upload_time": "2021-02-24T13:10:20",
"upload_time_iso_8601": "2021-02-24T13:10:20.290856Z",
"url": "https://files.pythonhosted.org/packages/ae/c4/7f6e6a539cc6b2da4da3b6a58d5e6f9342c870522ee46d41f8cbd2156953/banal-1.0.6-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "eee3dba88d495b5f9c54a971ba4da31b",
"sha256": "2fe02c9305f53168441948f4a03dfbfa2eacc73db30db4a93309083cb0e250a5"
},
"downloads": -1,
"filename": "banal-1.0.6.tar.gz",
"has_sig": false,
"md5_digest": "eee3dba88d495b5f9c54a971ba4da31b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4827,
"upload_time": "2021-02-24T13:10:21",
"upload_time_iso_8601": "2021-02-24T13:10:21.237787Z",
"url": "https://files.pythonhosted.org/packages/8c/a7/3301a69b4a31f7324b99332d758ae8da691f7f865ccd1b2adcd973c45344/banal-1.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-02-24 13:10:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "pudo",
"github_project": "banal",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "banal"
}