This library can be used to render OpenVCAD objects. See the main OpenVCAD package for more info.
Mermaid Tree Diagrams
pyvcad_rendering.render_tree_diagram(...) and Render_Tree_Diagram(...) save authored OpenVCAD tree diagrams from a root tree in one call.
pyvcad_rendering.render_tree_legend(...) and Render_Tree_Legend(...) do the same for the built-in master legend.
Install the Mermaid CLI separately and ensure mmdc is available on your PATH:
mmdc -i input.mmd -o output.svg
The tree helper accepts either a root pyvcad.Node or a pre-built pyvcad.TreeDiagram.
- If
output_pathends in.mmd, the Mermaid source is written directly. - If
output_pathends in.svgor.png, the helper writes a temporary.mmdand shells out tommdc.
pyvcad.TreeDiagram.master_legend() returns a hardcoded annotated master legend for the broader OpenVCAD tree-diagram language, and pyvcad.TreeDiagram.save_master_legend(path) writes that Mermaid source to disk.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvcad_rendering-3.0.1-py3-none-any.whl.
File metadata
- Download URL: pyvcad_rendering-3.0.1-py3-none-any.whl
- Upload date:
- Size: 143.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7decc27d06cd300b7a17a0e1b0a2d275248d630c7e37ee91106303222f840e1
|
|
| MD5 |
6d01292c8601dad8ab625a7cfb7af961
|
|
| BLAKE2b-256 |
6c3f35d9413a589d3178b3109054f75207387f3828eac4cb0b3dc9806ca34553
|