Skip to main content

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)

tab_completion

  • 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)

Source distribution for ipy-dict-hierarchy 0.0.2
File Size Uploaded
ipy_dict_hierarchy-0.0.2.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipy-dict-hierarchy 0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page