Skip to main content

Commons of banal micro-functions for Python.

Project description


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?").


  • Functions are properly typed, library passes mypy.
  • Cannot depend on anything but six and the standard library


  • 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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for banal, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size banal-1.0.5-py2.py3-none-any.whl (6.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size banal-1.0.5.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page