Commons of banal micro-functions for Python.
Project Links
Meta
Author: Friedrich Lindenberg
Classifiers
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python :: 3.5
- Python :: 3.6
- Python :: 3.7
- Python :: 3.8
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-ishis_mapping: check if an object is dict-ishensure_list: make sure an argument is a list, or make it into a single-element listclean_dict: remove null values from a dict, recursivelydecode_path: decode a path name to be unicodehash_data: generate a SHA1 from a dict of reasonable objects
1.0.6
Feb 24, 2021
1.0.5
Feb 24, 2021
1.0.4
Feb 08, 2021
1.0.2
Feb 08, 2021
1.0.1
Apr 23, 2020
1.0.0
Apr 23, 2020
0.4.2
Dec 28, 2018
0.4.1
Dec 28, 2018
0.4.0
Oct 31, 2018
0.3.8
Oct 09, 2018
0.3.7
May 09, 2018
0.3.6
May 07, 2018
0.3.5
Apr 21, 2018
0.3.4
Apr 21, 2018
0.3.3
Dec 23, 2017
0.3.2
Dec 17, 2017
0.3.1
Dec 10, 2017
0.3.0
Nov 05, 2017
0.2.1
Oct 25, 2017
0.2.0
Sep 17, 2017
0.1.0
Sep 17, 2017