raesl.canopy
¶
Module to ESL derived graph to a graph suitable for exporting to Canopy.
add_canopy_annotations
¶
add_canopy_annotations(
graph: Graph,
node_kinds: list[str] | None = None,
edge_kinds: list[str] | None = None,
)
Convert ESL derived graph to a graph suitable for exporting to Canopy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
graph
|
Graph
|
Graph to be converted |
required |
node_kinds
|
list[str] | None
|
List of node kinds to be considered in conversion. |
None
|
edge_kinds
|
list[str] | None
|
List of edge kinds to be considered in conversion. |
None
|
Returns Converted graph object.
Source code in src/raesl/canopy/__init__.py
cli
¶
Canopy export Command-Line Interface.
canopy
¶
Convert ESL files to Canopy format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
paths
|
str
|
Paths to resolve into ESL files. May be any number of files and directories to scan. |
()
|
output
|
str
|
Output file to write to. |
OUTPUT
|
fmt
|
str
|
Output format, one of 'graph' or 'session'. |
FORMAT
|
force
|
bool
|
Whether to overwrite the output file or raise an error if the file already exists. |
FORCE
|
Source code in src/raesl/canopy/cli.py
canopy_cli
¶
Convert ESL files and/or directories to Canopy format.
Source code in src/raesl/canopy/cli.py
html
¶
get_comp_node_html_table
¶
Returns a HTML grid table.
Source code in src/raesl/canopy/html.py
get_edge_html_text
¶
Yields ESL info belonging to an edge.
Source code in src/raesl/canopy/html.py
get_spec_node_html_text
¶
Yields ESL info belonging to spec node in html format.