nothoney
This is a small Python package that is able to recursively iterate through a nested (n-deep) dictionary or JSON object/file to retrieve data.
So how do I fly this thing?
Install:
pip install nothoney --user
or
python setup.py install --user
Basic usage:
>>> import nothoney
>>> test
{'x': [{'a': 'b', 'c': {'foo': 'hello'}}, {'y': 'z', 'blah': {'lala': 'funfun', 'foo': 'world'}}]}
>>> nothoney.eat(test, 'foo')
['hello', 'world']
>>> nothoney.eat(test, 'funfun', mode='value')
['lala']
File mode (test.json):
[
{
"a": "b",
"c": {
"foo": "boom goes the dynamite!"
}
},
{
"x": "y",
"z": [
{
"lalala": {
"foo": "gotem coach!",
"random": "stuff",
"here": 1337
}
}
]
}
]
>>> nothoney.eat('test.json', 'foo', as_file=True)
['boom goes the dynamite!', 'gotem coach!']
Metadata
Release files for nothoney 0.1.2
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 | |
|---|---|---|---|---|
| nothoney-0.1.2.tar.gz | 2.1 kB | Without provenance | Details |
Release files / nothoney-0.1.2.tar.gz
| Download URL | nothoney-0.1.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47cd4c963b6db3e70a1361040799e0d767f3287a028e60570196ae87cd1e5b32
|
|
BLAKE2b-256 checksum How to use checksums |
7599be5fb45ba5f25ac896cbc9e9871305b558fa4a2ad3276f9c1ff32eef8f21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for nothoney 0.1.2
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.