README.md
1# banal
2
3Commons of Python micro-functions. This basically an out-sourced, shared
4utils module.
5
6Rules:
7
8* Must work in Python 2 and Python 3
9* Cannot depend on anything but six and the standard library
10
11## Functions
12
13* ``is_listish``: check if something is list-ish
14* ``is_mapping``: check if an object is dict-ish
15* ``ensure_list``: make sure an argument is a list, or make it into a single-element list
16* ``clean_dict``: remove null values from a dict, recursively
17* ``decode_path``: decode a path name to be unicode
18* ``hash_data``: generate a SHA1 from a dict of reasonable objects