nob: the Nested OBject manipulator
Deep nested data is sometimes difficult to map with objects in an Object Relational Mapping (ORM) appraoch. Suppose e.g. you're working with this file:
root:
System:
Library:
Frameworks:
Python.framework:
Versions:
2.7:
bin: python2.7
If you wanted the last value here using pure Python, you would have to write something like:
pure_python['root']['System']['Library']['Frameworks']['Python.framework']['Versions']['2.7']['bin']
Gosh that's bad, it doesn't even fit in the screen! This is where nob shines: it offers a simple set of tools to explore and edit any nested data (Python native dicts and lists). With nob, this becomes:
nob_object['bin'][:]
Pretty neat, no? For more, checkout nob's documentation.
Installation
pip install nob
Enough said :)
Metadata
Release files for nob 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nob-0.8.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / nob-0.8.2-py2.py3-none-any.whl
| Download URL | nob-0.8.2-py2.py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
668edaeffd8ab93b3ca4e906403a8e5e7f6a504e00eb0cc6373c89578a34a63f
|
|
BLAKE2b-256 checksum How to use checksums |
cf705c06496ed1768a7f3b2afa733e82899f780fc1e1a895faa7fb2d318729d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.4
|