aboutsummaryrefslogtreecommitdiff
path: root/devel/py-banal/pkg-descr
blob: 893add4d734fd32f5ca80a9e8afd8f704061663e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Commons of Python micro-functions. This is basically an out-sourced, shared
utils module.

Rules:

- Must work in Python 2 and Python 3
- Cannot depend on anything but six and the standard library

Functions:

- is_sequence: 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

WWW: https://github.com/pudo/banal