Skip to main content
# NesDict

[![Build Status](https://travis-ci.org/Kargathia/nesdict.svg?branch=master)](https://travis-ci.org/Kargathia/nesdict)

Intended to add easy-to-use lookup syntax to Python's builtin `dict()`, removing the need to chain `[]` operators or `.get()` calls.

Example:

```python
from nesdict import NesDict

xdata = NesDict({
'path': {
'to': {
'nested': {
'value': 'stuff',
'thing': 'more stuff',
'number': 42
},
'something': 'else'
}
}
})

xdata['/path/to/nested/value'] == 'stuff'

xdata.search('/path/to/nested/*') == [
('/path/to/nested/value', 'stuff'),
('/path/to/nested/thing', 'more stuff'),
('/path/to/nested/number', 42)
]

xdata.values() == ['stuff', 'more stuff', 42, 'else']
```

It also supports setting new values using the same syntax:

```python
xdata['/path/less/traveled/by'] = 'all the difference'

xdata['/path'] == {
'to': {
'nested': {
'value': 'stuff',
'thing': 'more stuff',
'number': 42
},
'something': 'else'
},
'less': {
'traveled': {
'by': 'all the difference'
}
}
}
```

Metadata

Release files for nesdict 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nesdict 0.3.0
File Size Uploaded Provenance Actions
nesdict-0.3.0.tar.gz 11.8 kB Without provenance Details for nesdict-0.3.0.tar.gz

Release files / nesdict-0.3.0.tar.gz

Download URL nesdict-0.3.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7aebb458a6c14b528c54d15925fa4428445404ccd860ec291645859bcca5f32a
BLAKE2b-256 checksum
How to use checksums
90a731510e46de74f16aa942fae30f4614c08113d5e8eff3097c3f3ef5eb37f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nesdict 0.3.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page