This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connectors: | |
X1: | |
pincount: 3 | |
type: | | |
Very | |
long | |
connector | |
type | |
subtype: | | |
Even |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fake YAML input data (only keys matter) | |
connectors = {'A': [1,2,3], 'B': [1,2,4], 'C': [3,6,7]} | |
cables = {'X': [4,4,4], 'Y': [4,5,6], 'Z': [9,9,9]} | |
# list to check, should alternatingly contain connector and cable keys, may start with either | |
listy = ['A','X','B','Y','C'] | |
conkeys = list(connectors.keys()) | |
cblkeys = list(cables.keys()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connectors: | |
X1: &proper | |
type: proper connector | |
pincount: 4 | |
F1: | |
autogenerate: true | |
# category: ferrule | |
pincount: 1 | |
color: PK | |
F2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wv_colors | |
for k, v in wv_colors._color_hex.items(): | |
print(f'- `{k}` ![#{v}](https://via.placeholder.com/15/{v.replace("#","")}/000000?text=+) ({wv_colors._color_full[k]})') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate a quick HTML page to view the characters generated by the Schraubenkiste.ttf font | |
# Font source: http://www.peter-wiegel.de/Schraubenkiste.html | |
screw_shapes = [ | |
('ZY', 'E010'), | |
('FL', 'E012'), | |
('LK', 'E013'), | |
('HR', 'E014'), | |
('SE', 'E015'), | |
('RS', 'E016') |