Skip to main content

No project description provided

Project description

ndix ✨

PyPI - Python Version PyPI

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


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)

Uploaded Source

Built Distribution

ndix-0.1.2-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page