A library to read and manipulate nested data structures, particularly ones read from JSON files
Project description
DataDelve
Working with complex nested data can be tedious. If you have to access any objects that are four layers deep in a JSON response from a web service, you quickly tire of writing square brackets. Much better would be to have a simple way of accessing data through a simple syntax. jsonpointer is a perfect match, it looks just like paths through a filesystem. Applying this information to the data structures makes it easy and convenient.
Usage
from datadelve import DataDelver
data = ["your annoying data here"]
delver = DataDelver(data)
element = delver.get("/dict/keys/and/1/list/index")
subset = delver.cd("/particular/key/to/focus/on")
delver.set("/path/to/change", "new")
delver.delete("/bad")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datadelve-0.8.2.tar.gz
(13.2 kB
view hashes)
Built Distribution
datadelve-0.8.2-py3-none-any.whl
(13.8 kB
view hashes)
Close
Hashes for datadelve-0.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07ae1db750e745f6781682cb2485fcb8efdac69e9481d75878f106f30792a1e1 |
|
MD5 | 997971075120996c0f397116787b8728 |
|
BLAKE2b-256 | 907c4fdfed95f5f0e1eb4e324c47ab36948e6a89a76e88922093e590d3c4119b |