IPython Extension to pretty print nested dicts
Project description
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
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
Close
Hashes for ipy_dict_hierarchy-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca86a42b61e9169d40f538262c8c8fca20bbca5d73294a0d974bf62358a043a6 |
|
MD5 | 0535db0ff1383a9dd23268ecc3709521 |
|
BLAKE2b-256 | f6efbbb89a393f707024b768aaca2e7680887ab80c9f4dac26aed1829ea87a71 |