API

class wbs.CodingScheme(children: list = None, elements: list = None)

Represents a work breakdown structure coding scheme.

append(name, level=0, data=None)

Append a new element to the work breakdown structure coding scheme.

0 is the top level.

classmethod fromfile(file)

Import a work breakdown structure from a file.

Levels are indicated by indentations of 4 spaces. Numbering is applied automatically.

class wbs.Node
get(number)

Get a node based on the number.

For example, get the node 1.32.2.

class wbs.Element(name: str, number: str, level: int, data: dict = None, children: list = None)
append(element)

Append a child element to this element.