Utilities to work with hierarchical dictionaries
When working with simulation data or simply creating data visualizations, I often find myself wishing for a readable representation of a nested structure. In python these are typically dicts containing dicts or something alike.
So, this is where this ipython extension comes in:
- Tab completion across levels for benedicts (plain dicts asap)
- Pretty printing dictionaries and similar types in a tree-like structure.
dict(
lorem = "ipsum",
first_level = dict(
second_level = dict(
some_entry = 8.15,
another_entry = [0, 1, 2, 3, 4],
)
)
)
<class 'dict'>
├── lorem .................................... str ipsum
└── first_level
└── second_level
├── some_entry ..................... float 8.15
└── another_entry ................... list (5)
Install
Optional, but recommended
pip install python-benedict
pip install h5py
Required
pip install ipy_dict_hierarchy
In jupyter or ipython, to load manually
%load_ext ipy_dict_hierarchy
Metadata
Release files for ipy-dict-hierarchy 0.0.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 | |
|---|---|---|---|
| ipy_dict_hierarchy-0.0.2.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ipy_dict_hierarchy-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / ipy_dict_hierarchy-0.0.2.tar.gz
| Download URL | ipy_dict_hierarchy-0.0.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdc36e9b79b98e4fd536a609ac03999e662b316e9bb1a3dc34869e2696c49a7f
|
|
BLAKE2b-256 checksum How to use checksums |
edbc31e739ca1483dedec09aeb95f0d44005347f2d1f915268f7c6f872600898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / ipy_dict_hierarchy-0.0.2-py3-none-any.whl
| Download URL | ipy_dict_hierarchy-0.0.2-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b7262bc76a03513bb7d85348b8b2642dae9479fac294399b9a5707c56380ae1
|
|
BLAKE2b-256 checksum How to use checksums |
6ff239e74b6d291a17ce8bf1d3409fee5716eb0de9117a970ca14f595c8001e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|