prune
- Trim Entries from a Python Dictionary
install
pipenv install prune or pip3 install prune
usage
from prune import prune
tree = { "ford": { "country": "USA", "year": "2005" }, "ferrari": { "country": "Italy", "year": "1995" }}
branches = ["ford.year", "ferrari.year"]
prune(tree, branches)
# tree is now { "ford": { "country": "USA" }, "ferrari": { "country": "Italy" }}
support
Post an issue at https://github.com/DanielJDufour/prune/issues or email the package author at daniel.j.dufour@gmail.com
Metadata
Release files for prune 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prune-0.0.1.tar.gz | 1.9 kB | Without provenance | Details for prune-0.0.1.tar.gz |
Release files / prune-0.0.1.tar.gz
| Download URL | prune-0.0.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83f2022826eab19f6381ea55d36b80590c965b192418f303149172e90234bf4f
|
|
BLAKE2b-256 checksum How to use checksums |
89a8f3adb81059cdc85eecbd53202d2a970ba0b1a134024ab741a51ef803a4fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
|
Security for prune 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.