No project description provided
Project description
ndix ✨
A lightweight solution for nested dictionaries that are both
- arbitrarily deep,
- while having a pretty representation.
Usage:
$ pip install ndix
( or $ poetry add ndix
)
Initialize nested dict:
from ndix import Dict
d = Dict.nest()
# Populate dict with arbitrary nesting:
d['first']['second']['third']['fourth']['fifth'] = 100
# check d:
d
>>> {'first': {'second': {'third': {'fourth': {'fifth': 100}}}}}
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
ndix-0.1.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
ndix-0.1.2-py3-none-any.whl
(3.7 kB
view hashes)