Skip to main content

Commons of banal micro-functions for Python.

Project description

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 the standard library

Functions

  • 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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

banal-1.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file banal-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: banal-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for banal-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be1d91401cdddcf8bf008efc0223f2ce6bd8c9c3be9b45122b0c1896e4302679
MD5 924e65c368a2363fbca66f4d1a999081
BLAKE2b-256 b20b147ad5922f7553208b0c30e289bdf796e3200c120307c97ca4f09f956a46

See more details on using hashes here.

Provenance

The following attestation bundles were made for banal-1.1.1-py3-none-any.whl:

Publisher: build.yml on pudo/banal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page