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
Built Distribution
File details
Details for the file datadelve-0.8.2.tar.gz
.
File metadata
- Download URL: datadelve-0.8.2.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.4.0-104-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c54e0589e2375d289986010313c527c4590060f6f7f3b407c6437ba81c1210f7
|
|
MD5 |
99b2974dd74c95291746bd92deb538c0
|
|
BLAKE2b-256 |
f920d59a3ffaca5a6ea00c692aeffd49f12271dbb0cf6d12567b592515ba2ec6
|
File details
Details for the file datadelve-0.8.2-py3-none-any.whl
.
File metadata
- Download URL: datadelve-0.8.2-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.4.0-104-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
07ae1db750e745f6781682cb2485fcb8efdac69e9481d75878f106f30792a1e1
|
|
MD5 |
997971075120996c0f397116787b8728
|
|
BLAKE2b-256 |
907c4fdfed95f5f0e1eb4e324c47ab36948e6a89a76e88922093e590d3c4119b
|