Traversable Dict
Traversing and Querying Dicts the easy way
Free software: BSD license
Install
pip install t_dict
Why?
Dealing with deep nested dicts can be a total pain. TDict aims to make less boring working with it, using jsonpointer syntax for that.
It stand on the shoulders of jsonpointer (https://pypi.python.org/pypi/jsonpointer), which implements the RFC - https://tools.ietf.org/html/rfc6901
Usage
from t_dict.t_dict import TDict
td = TDict({'nested': { 'dict': 'here', 'other': {'spam': 'eggs'} }})
td.find('/nested/dict')
>> 'here'
td.find('/nested/notfound', 'defaultvalue')
>> 'defaultvalue'
td.setin('/nested/dict', 'new')
td['nested']['dict'] == 'new'
>> True
# converts dict to TDict
isinstance(td.find('/nested/other'), TDict)
>> True
History
0.1.0 (2014-01-11)
First release on PyPI.
Metadata
Release files for t_dict 0.1.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 |
|---|---|---|---|---|
| t_dict-0.1.1.tar.gz | 5.4 kB | Without provenance | Details for t_dict-0.1.1.tar.gz |
Release files / t_dict-0.1.1.tar.gz
| Download URL | t_dict-0.1.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97d5191a4314854577612e41043029dba27ca777ddfefd327d2b5b31108f62c9
|
|
BLAKE2b-256 checksum How to use checksums |
48e67ee67725214a2976e6a8c9450d26efbc3d6724e52dfd5bc58ecffd9d71fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for t_dict 0.1.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.