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 | |
|---|---|---|---|
| prune-0.0.1.tar.gz | 1.9 kB | Details |
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
|