Nested OBject manipulations
Project description
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 :)
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nob-0.8.2-py2.py3-none-any.whl.
File metadata
- Download URL: nob-0.8.2-py2.py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
668edaeffd8ab93b3ca4e906403a8e5e7f6a504e00eb0cc6373c89578a34a63f
|
|
| MD5 |
3f6ce644126f672be4297cf318a37fdb
|
|
| BLAKE2b-256 |
cf705c06496ed1768a7f3b2afa733e82899f780fc1e1a895faa7fb2d318729d6
|