sections

Flexible tree data structures for organizing lists and dicts into sections.

https://github.com/trevorpogue/sections

sections.MetaSection

alias of sections.meta.Meta

class sections.Section(*args: SectionKeysOrObjects, parent: Optional[SectionParent] = None, **kwds: SectionAttr)[source]

Objects instantiated by Section are nodes in a sections tree structure. Each node has useful methods and properties for organizing lists/dicts into sections and for conveniently accessing/modifying the sub-list/dicts from each section/subsection.

property cls: Type[Section]

The unique structure-wide class of each node.

property entries: Section

A synonym for property leaves.

property sections: Section

A synonym for property children.