• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

banal/H07-May-2022-181143

banal.egg-info/H03-May-2022-1716

LICENSEH A D23-Apr-20201.1 KiB2217

MANIFEST.inH A D23-Apr-202068 33

PKG-INFOH A D23-Apr-2020537 1716

README.mdH A D23-Apr-2020586 1813

setup.cfgH A D23-Apr-2020102 117

setup.pyH A D23-Apr-2020870 3230

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