Skip to main content

nesteddict

VERSION=0.1.1.alpha

class collections.NestedDict(self, seq=None, **kwargs)

Return an instance of a dict subclass, supporting the usual dict methods. An NestedDict is a dict that that only supports keys of type str. Those keys may be nested by separating them with dots '.'. Hence a valid uses of NestedDict are:

>>> from nesteddict import NestedDict
>>> a=NestedDict()
>>> a['x.y.z']=1
>>> a
{'x': {'y': {'z': 1}}}
>>> a['x.y']
{'z': 1}

Non str keys will throw a KeyError exception.

Metadata

Release files for nesteddict 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nesteddict 0.1.3
File Size Uploaded
nesteddict-0.1.3.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nesteddict 0.1.3
File Interpreter ABI Platform
nesteddict-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 14.7 kB

Release files / nesteddict-0.1.3.tar.gz

Download URL nesteddict-0.1.3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
07e5f59684df992559e6f25210edec8f5bc1cfc7114d9332d690f30fc1e49f47
BLAKE2b-256 checksum
How to use checksums
4be00f81f445f636a22dc190c18fb42fe4b91076923d3c1a6248c3433582dbd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

Release files / nesteddict-0.1.3-py2.py3-none-any.whl

Download URL nesteddict-0.1.3-py2.py3-none-any.whl
Size 9.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bbf7140b6b464b0d1ef02ae36eb0d3b33e67719b32e497def1e018ff4a6fb236
BLAKE2b-256 checksum
How to use checksums
60042ca49406355540db78abf7091a3e0c456521fef1f10b7dbd7aaf0dbe96a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
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