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-ishis_mapping: check if an object is dict-ishensure_list: make sure an argument is a list, or make it into a single-element listclean_dict: remove null values from a dict, recursivelydecode_path: decode a path name to be unicodehash_data: generate a SHA1 from a dict of reasonable objects
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file banal-1.1.2-py3-none-any.whl.
File metadata
- Download URL: banal-1.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
318701725015375e2e87589406a9c9f300f5a6c696c24e9f4ce5847163fe1ddd
|
|
| MD5 |
11510951d0ba6d9536fd7ddb84a7f585
|
|
| BLAKE2b-256 |
4cccb36bc69862e057a51b47e2ce4a74e4bb81bed77dcf3a54fd71a05b9c99dd
|
Provenance
The following attestation bundles were made for banal-1.1.2-py3-none-any.whl:
Publisher:
build.yml on pudo/banal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
banal-1.1.2-py3-none-any.whl -
Subject digest:
318701725015375e2e87589406a9c9f300f5a6c696c24e9f4ce5847163fe1ddd - Sigstore transparency entry: 1293671622
- Sigstore integration time:
-
Permalink:
pudo/banal@b0f77dff771b94861e10b8a82b52196d3ef698fd -
Branch / Tag:
refs/tags/1.1.2 - Owner: https://github.com/pudo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@b0f77dff771b94861e10b8a82b52196d3ef698fd -
Trigger Event:
push
-
Statement type: