python_subdict
The intent of this library is to make it easy to extract subdicts from python dicts by just specifying which keys are needed, in a dotted-syntax.
Example
>>> from subdict import extract_subdict
>>> d = {'a': 1, 'b': 0, 'c': {'ca': '3', 'cb': {'cba': 0, 'cbb': False}}}
>>> extract_subdict(d, ['a', 'c.cb.cbb'])
{'a': 1, 'c': {'cb': {'cbb': False}}}
Documentation Links
Metadata
Release files for subdict 0.5
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 |
|---|---|---|---|---|
| subdict-0.5.tar.gz | 3.0 kB | Without provenance | Details for subdict-0.5.tar.gz |
Release files / subdict-0.5.tar.gz
| Download URL | subdict-0.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14ec7036c532d6e165325a76ce5b43ce8efa38c6ebc746407a3128be756ebac3
|
|
BLAKE2b-256 checksum How to use checksums |
da33b4940bfec1cfd38127e4274639f9cd9c760886b9c7fdf3b3c6784066c752
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for subdict 0.5
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.