You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/api-full.md
+54-18Lines changed: 54 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Quick links:
12
12
-[CLI Reference](cli.md)
13
13
-[DSL Reference](dsl.md)
14
14
15
-
Generated from source code on: August 12, 2025 at 16:01 UTC
15
+
Generated from source code on: August 12, 2025 at 18:57 UTC
16
16
17
17
Modules auto-discovered: 67
18
18
@@ -114,22 +114,46 @@ Example (YAML-like):
114
114
-`get(self, name: 'str') -> 'Optional[Component]'` - Retrieves a Component by its name from the library.
115
115
-`merge(self, other: 'ComponentsLibrary', override: 'bool' = True) -> 'ComponentsLibrary'` - Merges another ComponentsLibrary into this one. By default (override=True),
@@ -191,6 +215,9 @@ Provides hierarchical exploration of a Network, computing statistics in two mode
191
215
**Methods:**
192
216
193
217
-`explore_network(network: 'Network', components_library: 'Optional[ComponentsLibrary]' = None) -> 'NetworkExplorer'` - Build a NetworkExplorer, constructing a tree plus 'all' and 'active' stats.
218
+
-`get_bom(self, include_disabled: 'bool' = True) -> 'Dict[str, float]'` - Return aggregated hardware BOM for the whole network.
219
+
-`get_bom_by_path(self, path: 'str', include_disabled: 'bool' = True) -> 'Dict[str, float]'` - Return the hardware BOM for a specific hierarchy path.
220
+
-`get_bom_map(self, include_disabled: 'bool' = True, include_root: 'bool' = True, root_label: 'str' = '') -> 'Dict[str, Dict[str, float]]'` - Return a mapping from hierarchy path to BOM for each subtree.
194
221
-`print_tree(self, node: 'Optional[TreeNode]' = None, indent: 'int' = 0, max_depth: 'Optional[int]' = None, skip_leaves: 'bool' = False, detailed: 'bool' = False, include_disabled: 'bool' = True, max_external_lines: 'Optional[int]' = None) -> 'None'` - Print the hierarchy from 'node' down (default: root).
0 commit comments