Public API Reference¶
This section documents all classes and exceptions that are part of the stable
public API of ndict-tools. Everything listed here is exported from the
top-level ndict_tools package and covered by the project’s stability
guarantees.
from ndict_tools import NestedDictionary, PathsView, CompactPathsView
from ndict_tools import StackedDictionaryError # and subclasses
Dictionary classes¶
|
Nested dictionary class. |
|
Strict nested dictionary class. |
|
Smooth nested dictionary class. |
Path views¶
|
A view providing access to all hierarchical paths in a nested dictionary. |
|
A view providing compact representation of hierarchical paths. |
Exceptions¶
Base exception class for all stacked dictionary errors. |
|
General exception for nested dictionary operations. |
|
|
Exception raised when a key operation fails in a stacked dictionary. |
|
Exception raised when an attribute operation fails in a stacked dictionary. |
|
Exception raised when a type error occurs in a stacked dictionary operation. |
|
Exception raised when a value error occurs in a stacked dictionary operation. |
|
Exception raised when an index error occurs in a stacked dictionary operation. |