Daniel Rojas
d993f58685
More WIP
2023-01-19 16:36:27 -05:00
Daniel Rojas
c8690a99c9
WIP
2023-01-19 16:36:27 -05:00
Daniel Rojas
0f6ed3ae0d
Implement HTML indentation
2023-01-19 16:36:27 -05:00
Daniel Rojas
bb9b43c872
WIP: refactor cable node generation
2023-01-19 16:36:26 -05:00
Daniel Rojas
4eff1de6f7
Generate gauge string inside Cable object
2023-01-19 16:36:26 -05:00
Daniel Rojas
f4da47f39f
Rebuild demos
2023-01-19 16:36:25 -05:00
Daniel Rojas
738012911d
Further refactor connector node generation
2023-01-19 16:36:25 -05:00
Daniel Rojas
77080c90a2
Refactor connector node generation
2023-01-19 16:36:25 -05:00
Daniel Rojas
e769be3905
WIP
2023-01-19 16:36:24 -05:00
Daniel Rojas
3937509f93
Add temporary loop to demo01
...
for debugging purposes
2023-01-19 16:36:24 -05:00
Daniel Rojas
21d6e032ea
Add metadata.title to demo01.yml
...
to avoid diffs later when calling via CLI
2023-01-19 16:36:23 -05:00
Daniel Rojas
ab183f6968
Rebuild all examples before refactoring
...
no diff should ocurr as a result of the refactoring
2023-01-19 16:36:23 -05:00
Daniel Rojas
81b0dba858
Make prefix for autogenerated component names configurable
...
`edotor.net` does not seem to like leading underscores, which makes GraphViz debugging difficult.
2023-01-19 16:36:23 -05:00
Daniel Rojas
abd53ec404
Simplify Enum
2023-01-19 16:36:22 -05:00
Daniel Rojas
28aa7f0420
Embed images into SVG output
2023-01-19 16:36:22 -05:00
Daniel Rojas
81f955457d
Auto-assign missing harness title if reading from file
2023-01-19 16:36:22 -05:00
Daniel Rojas
c38305b3a5
Simplify file access operations
2023-01-19 16:36:21 -05:00
Daniel Rojas
fbc90c0475
Make template separator character user-configurable
2023-01-19 16:36:21 -05:00
Daniel Rojas
8796709195
Add support for multiple prepended files
2023-01-19 16:36:20 -05:00
Daniel Rojas
c1f195fe86
Automatically include input file directory in list to resolve image paths
2023-01-19 16:36:20 -05:00
Daniel Rojas
36641bb6e3
Update build_examples.py
2023-01-19 16:36:20 -05:00
Daniel Rojas
76da525c3b
Write docstring for parse() function
2023-01-19 16:36:19 -05:00
Daniel Rojas
22c3e18dfa
Add leading underscore to local helper functions
2023-01-19 16:36:19 -05:00
Daniel Rojas
73dfe74cf5
Allow specifying output directory and file name separately
2023-01-19 16:36:18 -05:00
Daniel Rojas
1c9a1d886f
Consolidate wireviz.parse() to handle Path, str and Dict as input
2023-01-19 16:36:18 -05:00
Daniel Rojas
63b7124a43
Add 'black' badge to README.md
2023-01-19 16:36:18 -05:00
Daniel Rojas
daff23cbaa
Mention isort and black in contribution guidelines
2023-01-19 16:36:17 -05:00
Daniel Rojas
a255596471
Apply some manual fixes, reapply black
2023-01-19 16:36:17 -05:00
Daniel Rojas
343cd2949f
Apply black
2023-01-19 16:36:17 -05:00
Daniel Rojas
e6f76f9ab7
Apply isort
2023-01-19 16:35:25 -05:00
Daniel Rojas
3a189895e6
Add black profile for isort
2023-01-19 16:35:25 -05:00
Daniel Rojas
a9eb4f6481
Create cache of graph to avoid generating it more than once
2023-01-19 16:35:24 -05:00
Daniel Rojas
23db602445
Split file output logic and object return logic
...
Use `output_formats` parameter to specify which *files* to output to disk,
Use `return_types` parameter to specify which objects to return to a calling Python script
2023-01-19 16:35:24 -05:00
Daniel Rojas
8e31768564
Improve REAME.md
2023-01-19 16:35:23 -05:00
Daniel Rojas
b8d74bae81
Output help string if no arguments are received
2023-01-19 16:35:23 -05:00
Daniel Rojas
f87d9ef72d
Update README for new CLI commands
2023-01-19 16:35:23 -05:00
Daniel Rojas
0044997b9c
Sort --format flags alphabetically
2023-01-19 16:35:22 -05:00
Daniel Rojas
884b98216e
Add encoding info to wv_cli.py
2023-01-19 16:35:22 -05:00
Daniel Rojas
63be33e9db
Add main() to wireviz.py as fallback
2023-01-19 16:35:22 -05:00
Daniel Rojas
7638425fd9
Remove obsolete comments
2023-01-19 16:35:21 -05:00
Daniel Rojas
97207e6986
Fix smart file resolver for images
2023-01-19 16:35:21 -05:00
Daniel Rojas
b9527a8086
Do not output .gv files by default
2023-01-19 16:35:20 -05:00
Daniel Rojas
a4a89eb3df
Implement image path resolver
2023-01-19 16:35:20 -05:00
Daniel Rojas
471a6c3e29
Split the YAML loading and parsing functions
2023-01-19 16:35:20 -05:00
Daniel Rojas
f325b69d9a
Fix entry point
2023-01-19 16:35:19 -05:00
Daniel Rojas
a98e17b737
Only output requested file types ( closes #60 )
2023-01-19 16:35:19 -05:00
Daniel Rojas
0764a8d2ff
Add CLI help strings
2023-01-19 16:35:19 -05:00
Daniel Rojas
d0909d4cbb
Remove unneeded code from wireviz.py
...
Re-add `parse_file()` for building examples
bla
2023-01-19 16:35:18 -05:00
Daniel Rojas
7121a3eb34
Implement working proof of concept
2023-01-19 16:35:18 -05:00
Daniel Rojas
ef6af32a01
Add wv_cli.py, add Click requirement, change entry point
2023-01-19 16:35:17 -05:00