perfboard-studio 0.11.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. perfboard_studio-0.11.0/LICENSE +202 -0
  2. perfboard_studio-0.11.0/NOTICE +30 -0
  3. perfboard_studio-0.11.0/PKG-INFO +381 -0
  4. perfboard_studio-0.11.0/README.md +343 -0
  5. perfboard_studio-0.11.0/pyproject.toml +139 -0
  6. perfboard_studio-0.11.0/setup.cfg +4 -0
  7. perfboard_studio-0.11.0/src/perfboard_studio/__init__.py +15 -0
  8. perfboard_studio-0.11.0/src/perfboard_studio/autoroute.py +1104 -0
  9. perfboard_studio-0.11.0/src/perfboard_studio/command.py +358 -0
  10. perfboard_studio-0.11.0/src/perfboard_studio/commands.py +2354 -0
  11. perfboard_studio-0.11.0/src/perfboard_studio/connectivity.py +337 -0
  12. perfboard_studio-0.11.0/src/perfboard_studio/drc.py +1723 -0
  13. perfboard_studio-0.11.0/src/perfboard_studio/footprints.py +1181 -0
  14. perfboard_studio-0.11.0/src/perfboard_studio/geometry.py +1229 -0
  15. perfboard_studio-0.11.0/src/perfboard_studio/guide.py +1618 -0
  16. perfboard_studio-0.11.0/src/perfboard_studio/guide_export.py +626 -0
  17. perfboard_studio-0.11.0/src/perfboard_studio/lvs.py +585 -0
  18. perfboard_studio-0.11.0/src/perfboard_studio/mcp/__init__.py +19 -0
  19. perfboard_studio-0.11.0/src/perfboard_studio/mcp/__main__.py +8 -0
  20. perfboard_studio-0.11.0/src/perfboard_studio/mcp/server.py +704 -0
  21. perfboard_studio-0.11.0/src/perfboard_studio/mcp/session.py +1679 -0
  22. perfboard_studio-0.11.0/src/perfboard_studio/model.py +621 -0
  23. perfboard_studio-0.11.0/src/perfboard_studio/occupancy.py +303 -0
  24. perfboard_studio-0.11.0/src/perfboard_studio/parsers/__init__.py +21 -0
  25. perfboard_studio-0.11.0/src/perfboard_studio/parsers/kicad.py +295 -0
  26. perfboard_studio-0.11.0/src/perfboard_studio/parsers/sexpr.py +145 -0
  27. perfboard_studio-0.11.0/src/perfboard_studio/persist.py +1381 -0
  28. perfboard_studio-0.11.0/src/perfboard_studio/placer.py +1636 -0
  29. perfboard_studio-0.11.0/src/perfboard_studio/ratsnest.py +276 -0
  30. perfboard_studio-0.11.0/src/perfboard_studio/recovery.py +183 -0
  31. perfboard_studio-0.11.0/src/perfboard_studio/router.py +1241 -0
  32. perfboard_studio-0.11.0/src/perfboard_studio/schematic.py +1633 -0
  33. perfboard_studio-0.11.0/src/perfboard_studio/schematic_export.py +378 -0
  34. perfboard_studio-0.11.0/src/perfboard_studio/stripboard.py +258 -0
  35. perfboard_studio-0.11.0/src/perfboard_studio/striproute.py +406 -0
  36. perfboard_studio-0.11.0/src/perfboard_studio/ui/__init__.py +12 -0
  37. perfboard_studio-0.11.0/src/perfboard_studio/ui/assets/perfboard-studio.ico +0 -0
  38. perfboard_studio-0.11.0/src/perfboard_studio/ui/assets/perfboard-studio.png +0 -0
  39. perfboard_studio-0.11.0/src/perfboard_studio/ui/autosave.py +208 -0
  40. perfboard_studio-0.11.0/src/perfboard_studio/ui/boardcolors.py +132 -0
  41. perfboard_studio-0.11.0/src/perfboard_studio/ui/bodies.py +535 -0
  42. perfboard_studio-0.11.0/src/perfboard_studio/ui/clipboard.py +513 -0
  43. perfboard_studio-0.11.0/src/perfboard_studio/ui/export_pdf.py +136 -0
  44. perfboard_studio-0.11.0/src/perfboard_studio/ui/export_schematic.py +200 -0
  45. perfboard_studio-0.11.0/src/perfboard_studio/ui/headless.py +328 -0
  46. perfboard_studio-0.11.0/src/perfboard_studio/ui/i18n.py +1018 -0
  47. perfboard_studio-0.11.0/src/perfboard_studio/ui/icons.py +609 -0
  48. perfboard_studio-0.11.0/src/perfboard_studio/ui/main.py +7276 -0
  49. perfboard_studio-0.11.0/src/perfboard_studio/ui/scenetext.py +152 -0
  50. perfboard_studio-0.11.0/src/perfboard_studio/ui/theme.py +164 -0
  51. perfboard_studio-0.11.0/src/perfboard_studio/ui/updater.py +603 -0
  52. perfboard_studio-0.11.0/src/perfboard_studio/ui/view2d.py +3727 -0
  53. perfboard_studio-0.11.0/src/perfboard_studio/ui/view3d.py +2739 -0
  54. perfboard_studio-0.11.0/src/perfboard_studio/ui/viewsch.py +581 -0
  55. perfboard_studio-0.11.0/src/perfboard_studio/updates.py +313 -0
  56. perfboard_studio-0.11.0/src/perfboard_studio/version.py +82 -0
  57. perfboard_studio-0.11.0/src/perfboard_studio.egg-info/PKG-INFO +381 -0
  58. perfboard_studio-0.11.0/src/perfboard_studio.egg-info/SOURCES.txt +92 -0
  59. perfboard_studio-0.11.0/src/perfboard_studio.egg-info/dependency_links.txt +1 -0
  60. perfboard_studio-0.11.0/src/perfboard_studio.egg-info/entry_points.txt +3 -0
  61. perfboard_studio-0.11.0/src/perfboard_studio.egg-info/requires.txt +13 -0
  62. perfboard_studio-0.11.0/src/perfboard_studio.egg-info/top_level.txt +1 -0
  63. perfboard_studio-0.11.0/tests/test_autoroute.py +1221 -0
  64. perfboard_studio-0.11.0/tests/test_board_features.py +576 -0
  65. perfboard_studio-0.11.0/tests/test_board_presets.py +592 -0
  66. perfboard_studio-0.11.0/tests/test_bodies.py +368 -0
  67. perfboard_studio-0.11.0/tests/test_clipboard.py +349 -0
  68. perfboard_studio-0.11.0/tests/test_commands.py +1753 -0
  69. perfboard_studio-0.11.0/tests/test_connectivity.py +587 -0
  70. perfboard_studio-0.11.0/tests/test_drc.py +1469 -0
  71. perfboard_studio-0.11.0/tests/test_examples.py +107 -0
  72. perfboard_studio-0.11.0/tests/test_footprints.py +615 -0
  73. perfboard_studio-0.11.0/tests/test_gl.py +123 -0
  74. perfboard_studio-0.11.0/tests/test_guide.py +1046 -0
  75. perfboard_studio-0.11.0/tests/test_guide_golden.py +206 -0
  76. perfboard_studio-0.11.0/tests/test_i18n.py +366 -0
  77. perfboard_studio-0.11.0/tests/test_kicad.py +347 -0
  78. perfboard_studio-0.11.0/tests/test_lvs.py +744 -0
  79. perfboard_studio-0.11.0/tests/test_mcp.py +1237 -0
  80. perfboard_studio-0.11.0/tests/test_occupancy.py +461 -0
  81. perfboard_studio-0.11.0/tests/test_occupancy_golden.py +175 -0
  82. perfboard_studio-0.11.0/tests/test_persist.py +604 -0
  83. perfboard_studio-0.11.0/tests/test_placer.py +1228 -0
  84. perfboard_studio-0.11.0/tests/test_ratsnest.py +341 -0
  85. perfboard_studio-0.11.0/tests/test_recovery.py +275 -0
  86. perfboard_studio-0.11.0/tests/test_render_golden.py +243 -0
  87. perfboard_studio-0.11.0/tests/test_router.py +876 -0
  88. perfboard_studio-0.11.0/tests/test_schematic.py +1019 -0
  89. perfboard_studio-0.11.0/tests/test_schematic_export.py +494 -0
  90. perfboard_studio-0.11.0/tests/test_stripboard.py +620 -0
  91. perfboard_studio-0.11.0/tests/test_ui.py +6328 -0
  92. perfboard_studio-0.11.0/tests/test_updater.py +533 -0
  93. perfboard_studio-0.11.0/tests/test_updates.py +369 -0
  94. perfboard_studio-0.11.0/tests/test_version.py +356 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,30 @@
1
+ Perfboard Studio
2
+ Copyright 2026 medinstech
3
+
4
+ This product includes software developed at medinstech.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+
18
+ ---
19
+
20
+ Clean-room notice
21
+ -----------------
22
+
23
+ Perfboard Studio is developed clean-room with respect to the existing GPL-licensed
24
+ perfboard and stripboard layout tools (notably DIY Layout Creator and VeroRoute).
25
+ No code from those projects has been read, copied or adapted. Prior art was
26
+ studied only through public descriptions, documentation and user-facing behaviour.
27
+
28
+ Where an existing MIT-licensed project (striprouter) informed the routing
29
+ approach, that influence is at the level of published algorithm description
30
+ only, and is credited in docs/prior-art.md.
@@ -0,0 +1,381 @@
1
+ Metadata-Version: 2.4
2
+ Name: perfboard-studio
3
+ Version: 0.11.0
4
+ Summary: Perfboard layout designer: netlist-driven placement and routing, perfboard-specific design rules, layout-vs-schematic verification, and a step-by-step soldering guide with measurement checkpoints.
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Homepage, https://github.com/medinstech/perfboard-studio
7
+ Project-URL: Repository, https://github.com/medinstech/perfboard-studio
8
+ Project-URL: Documentation, https://github.com/medinstech/perfboard-studio#where-everything-else-is-written-down
9
+ Project-URL: Changelog, https://github.com/medinstech/perfboard-studio/blob/main/CHANGELOG.md
10
+ Project-URL: Issues, https://github.com/medinstech/perfboard-studio/issues
11
+ Keywords: perfboard,stripboard,veroboard,protoboard,eda,pcb,kicad,netlist,autorouter,drc,lvs,electronics,soldering
12
+ Classifier: Development Status :: 2 - Pre-Alpha
13
+ Classifier: Environment :: X11 Applications :: Qt
14
+ Classifier: Intended Audience :: Manufacturing
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Natural Language :: English
17
+ Classifier: Natural Language :: Turkish
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
22
+ Requires-Python: >=3.12
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ License-File: NOTICE
26
+ Requires-Dist: PySide6>=6.10
27
+ Requires-Dist: vtk>=9.6
28
+ Provides-Extra: dev
29
+ Requires-Dist: pytest>=8; extra == "dev"
30
+ Requires-Dist: pytest-cov; extra == "dev"
31
+ Requires-Dist: mypy>=1.13; extra == "dev"
32
+ Requires-Dist: ruff>=0.8; extra == "dev"
33
+ Requires-Dist: pyinstaller>=6.10; extra == "dev"
34
+ Requires-Dist: trove-classifiers; extra == "dev"
35
+ Provides-Extra: mcp
36
+ Requires-Dist: mcp<2,>=1.0; extra == "mcp"
37
+ Dynamic: license-file
38
+
39
+ <p align="center">
40
+ <a href="https://medinstech.com">
41
+ <picture>
42
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/medinstech/perfboard-studio/main/docs/images/wordmark-white.png">
43
+ <img alt="Medinstech" src="https://raw.githubusercontent.com/medinstech/perfboard-studio/main/docs/images/wordmark-blue.png" height="96">
44
+ </picture>
45
+ </a>
46
+ </p>
47
+
48
+ <h1 align="center">Perfboard Studio</h1>
49
+
50
+ <p align="center"><b>Perfboard circuit design and soldering guides</b></p>
51
+
52
+ <p align="center">
53
+ A desktop app that takes a schematic netlist, lays it out on pad-per-hole<br>
54
+ perfboard, lets the router work out the connections, proves the board matches<br>
55
+ the schematic, and writes a step-by-step build guide with measurement<br>
56
+ checkpoints.
57
+ </p>
58
+
59
+ <p align="center">
60
+ <a href="https://github.com/medinstech/perfboard-studio/actions/workflows/ci.yml"><img alt="tests" src="https://img.shields.io/github/actions/workflow/status/medinstech/perfboard-studio/ci.yml?branch=main&style=flat-square&label=tests"></a>
61
+ <a href="https://github.com/medinstech/perfboard-studio/releases/latest"><img alt="latest release" src="https://img.shields.io/github/v/release/medinstech/perfboard-studio?style=flat-square&color=0d00ff&label=release"></a>
62
+ <a href="https://github.com/medinstech/perfboard-studio/blob/main/pyproject.toml"><img alt="Python 3.12+" src="https://img.shields.io/badge/python-3.12%2B-0d00ff?style=flat-square"></a>
63
+ <a href="https://github.com/medinstech/perfboard-studio/blob/main/LICENSE"><img alt="Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-0d00ff?style=flat-square"></a>
64
+ </p>
65
+
66
+ <p align="center">
67
+ <a href="https://github.com/medinstech/perfboard-studio/releases/latest"><b>Download</b></a>
68
+ &nbsp;·&nbsp; <a href="#running-it"><b>uv tool install perfboard-studio</b></a>
69
+ &nbsp;·&nbsp; <a href="https://github.com/medinstech/perfboard-studio/blob/main/docs/MCP.md">MCP server</a>
70
+ &nbsp;·&nbsp; <a href="#or-open-one-that-is-already-built">Example boards</a>
71
+ &nbsp;·&nbsp; <a href="https://github.com/medinstech/perfboard-studio/blob/main/CHANGELOG.md">Changelog</a>
72
+ &nbsp;·&nbsp; <a href="https://github.com/medinstech/perfboard-studio/blob/main/README.tr.md">Türkçe</a>
73
+ </p>
74
+
75
+ ![the 2D editor, with an NE555 astable placed and routed](https://raw.githubusercontent.com/medinstech/perfboard-studio/main/docs/images/editor-component-side.png)
76
+
77
+ <p align="center">
78
+ The status bar is the whole claim: fourteen connections across seven nets,<br>
79
+ three of which needed a wire, DRC clean and LVS agreeing with the schematic.
80
+ </p>
81
+
82
+ ---
83
+
84
+ - **A soldering guide with verification steps.** Not just "solder R1 here", but
85
+ *"block 2 complete → U1 pin 4 to C3(−) must show continuity"* and *"before
86
+ power-on: GND to V+ must read above 10 kΩ"*. Derived from the netlist, so it is
87
+ exact rather than generic advice.
88
+ - **Perfboard LVS.** The board's real connectivity is extracted and compared
89
+ against the schematic. Opens, shorts and floating conductors are reported
90
+ before you pick up the iron.
91
+ - **Six kinds of connection, not one.** A lead bend, a solder trace, a wired
92
+ solder trace, bare wire, insulated wire and a top jumper have different costs,
93
+ limits and failure modes, and the router prices all six — which is what makes
94
+ a layout that is pleasant to actually solder.
95
+ - **Three rules only the third dimension can see.** A part too tall for the case,
96
+ a jumper trapped under a body that gets soldered down on top of it, and a
97
+ heat-sensitive part sitting too close to a hot one. The 3D view is a checking
98
+ tool, not a picture.
99
+ - **The sheet is derived, never stored.** No symbol positions live in the file,
100
+ so there is no second copy of the circuit to keep in step with the netlist and
101
+ nothing to lay out by hand.
102
+ - **Agent-native.** An MCP server, a headless CLI and a git-diffable project
103
+ file, all driving the same command bus as the GUI — so undo works across a
104
+ session where a human and a model both edit the board.
105
+
106
+ > **Status: pre-alpha, and end to end.** A netlist goes in and a soldering guide
107
+ > comes out. What is missing is the dogfood test — nobody has yet built a real
108
+ > board by following a generated guide, and [PLAN.md](https://github.com/medinstech/perfboard-studio/blob/main/PLAN.md) §11
109
+ > says M5 does not close until somebody has. Everything else runs: **v0.10.0**
110
+ > ships an installer for each of the three desktop platforms, none code-signed.
111
+
112
+ **Jump to** — [Running it](#running-it) ·
113
+ [Connections](#connections-are-not-all-the-same-thing) ·
114
+ [Both faces](#both-faces-and-the-third-dimension) ·
115
+ [The schematic](#draw-the-circuit-first) ·
116
+ [The guide](#the-guide-has-an-order-and-you-can-watch-it) ·
117
+ [From an agent](#from-an-agent) · [How it is built](#how-it-is-built) ·
118
+ [Documentation](#where-everything-else-is-written-down) ·
119
+ [Contributing](#contributing)
120
+
121
+ ## Connections are not all the same thing
122
+
123
+ Most tools model a perfboard connection as "a wire". Perfboard has six physically
124
+ distinct ways to join two points, each with its own cost, limits and failure modes — and
125
+ modelling that difference is what lets the router produce a layout that is pleasant to
126
+ actually solder:
127
+
128
+ | | what it is | notes |
129
+ |---|---|---|
130
+ | lead bend | a component leg bent to a nearby hole | effectively free, 3–4 holes |
131
+ | **solder trace** | adjacent pads joined with solder alone | orthogonal only; ~0.6 mm to the next pad |
132
+ | **solder trace, wired** | the same, over a tinned-wire spine | ~10× lower resistance, no length limit |
133
+ | bare wire | tinned wire on the solder side | cannot cross another bare conductor |
134
+ | insulated wire | may cross freely | costs preparation time |
135
+ | top jumper | insulated jumper over the component side | visible, occupies body space |
136
+
137
+ The 0.6 mm gap to the neighbouring pad is why solder traces are both so useful and so
138
+ easy to get wrong. Perfboard Studio scores that risk into the router's cost function, and turns
139
+ every flagged spot into a measurement step in the build guide.
140
+
141
+ ## Both faces, and the third dimension
142
+
143
+ The solder side is where the copper is, so it is a first-class view rather than a mirror
144
+ mode — and copper on the face you are *not* looking at is hatched, because a board is
145
+ opaque and a trace drawn solid says *this is in front of you*.
146
+
147
+ ![The solder side, with far-side copper hatched](https://raw.githubusercontent.com/medinstech/perfboard-studio/main/docs/images/editor-solder-side.png)
148
+
149
+ The 3D view is a checking tool, not a picture. Three rules exist that a top-down view
150
+ cannot see at all: a part too tall for the case, a jumper trapped under a body that will
151
+ be soldered down on top of it, and a heat-sensitive part sitting too close to a hot one.
152
+
153
+ ![The same board in 3D](https://raw.githubusercontent.com/medinstech/perfboard-studio/main/docs/images/board-3d.png)
154
+
155
+ ## Draw the circuit first
156
+
157
+ The board says where everything goes. The schematic panel (`Ctrl+5`) says *what you are
158
+ building* — and it is where you say it: **Add Part**, **Wire** two pins, **Place on the
159
+ Board**. The circuit comes first and the layout second, which is how every other EDA tool
160
+ works and is the order this one could not do until now.
161
+
162
+ ![The NE555 astable, drawn from its netlist](https://raw.githubusercontent.com/medinstech/perfboard-studio/main/docs/images/schematic.png)
163
+
164
+ **The sheet is derived, never stored.** No symbol positions live in the file, so there is
165
+ no second copy of the circuit to keep in step with the netlist and nothing to lay out by
166
+ hand. Ground and power become rail symbols instead of wires, which is the difference
167
+ between a sheet you can read and eleven lines crossing everything. Polarity comes from the
168
+ parts library's own pin names, so an LED's cathode and a diode's cathode both end up on the
169
+ barred end — they are opposite pins, and a rule that guessed from pin 1 would draw one of
170
+ them backwards. A part whose pinout the library does not record, like a TO-92, is a
171
+ labelled box: drawing a transistor there would be asserting which lead is the base.
172
+
173
+ It also cross-probes: click a symbol and that part is selected on the board, click a wire
174
+ and its net lights up in both places. LVS saying *net VOUT is open* is a great deal more
175
+ useful when you can look at VOUT.
176
+
177
+ **And it leaves the window.** *File ▸ Export Schematic…* writes the sheet beside the
178
+ document three ways: SVG to embed or edit, PDF to print and keep next to the board, PNG to
179
+ paste into the message that asks somebody why the circuit does not work. All three come out
180
+ of the same SVG, so they cannot disagree about what the circuit is — and the exported sheet
181
+ is black on white rather than the panel's light-on-dark, because the rail symbols already
182
+ say which rail sinks and which sources, and a photocopier keeps shapes rather than colours.
183
+
184
+ ## The guide has an order, and you can watch it
185
+
186
+ ![The NE555 board assembling itself: parts first, then the board turns over and the copper goes on](https://raw.githubusercontent.com/medinstech/perfboard-studio/main/docs/images/assembly.gif)
187
+
188
+ Parts go in **shortest first** — a tall part fitted early stops the board lying flat on
189
+ the bench while the short ones are soldered. Then the board is turned over and the copper
190
+ goes on, and ICs are last for heat and ESD. A jumper that would end up trapped under a
191
+ part body is moved to the *first* phase, because by the time that part is down it is too
192
+ late.
193
+
194
+ The animation turns the board over halfway through for the same reason you would: a
195
+ perfboard is opaque, and fourteen of this build's twenty-two steps happen on the face you
196
+ cannot see from above. It is generated by playing the guide back through the same function
197
+ the 3D panel's assembly slider calls, so it cannot show an order the guide does not
198
+ actually give you.
199
+
200
+ ## Running it
201
+
202
+ It is a desktop application, so the ordinary way to get it is to install one. No Python
203
+ required.
204
+
205
+ **[⬇ Download the latest release](https://github.com/medinstech/perfboard-studio/releases/latest)**
206
+
207
+ | | |
208
+ |---|---|
209
+ | **Windows** | an `.exe` installer |
210
+ | **macOS** | a `.dmg`, Apple silicon |
211
+ | **Linux** | an `.AppImage`, x86_64 |
212
+
213
+ Each is built and smoke-tested by the tag that produced it. **None
214
+ of them is code-signed**, so each warns on first run and the release notes say how to get
215
+ past it — a Windows EV certificate is ~$300/year and Apple notarization $99/year, and
216
+ neither is bought yet. See [docs/RELEASING.md](https://github.com/medinstech/perfboard-studio/blob/main/docs/RELEASING.md).
217
+
218
+ The interface speaks **English and Turkish** (`--lang tr`, or follow the system locale).
219
+
220
+ ### From PyPI
221
+
222
+ For the two platforms with no build — an Intel Mac, Linux on ARM — and for anyone who
223
+ would rather not click past a signing warning. Needs **Python 3.12+**:
224
+
225
+ ```sh
226
+ uv tool install perfboard-studio # or: pipx install perfboard-studio
227
+
228
+ perfboard-studio # launch on a blank board
229
+ perfboard-studio some/board.perf # ...or open a document
230
+ perfboard-studio --version
231
+ ```
232
+
233
+ **`uv tool` or `pipx`, not a bare `pip install`**, because this is an application and not
234
+ a library. Both put it in an environment of its own and `perfboard-studio` on your PATH, where
235
+ `pip install` would either put 400 MB of Qt and VTK into a shared `site-packages` or, on
236
+ Debian, Ubuntu and Fedora, be refused outright by the system Python (PEP 668). From a
237
+ clone, `pip install -e .` inside a virtualenv.
238
+
239
+ Qt and VTK are most of that 400 MB. There is no smaller build, because the 3D view is a
240
+ checking tool the application depends on rather than an optional extra.
241
+
242
+ ### A board from nothing
243
+
244
+ Open the schematic panel (`Ctrl+5`) and draw the circuit: **Add Part** for each part,
245
+ **Wire** to click two pins together, then **Place on the Board**. From there
246
+ **Place → Auto-place Board** (`Ctrl+Shift+A`), **`Ctrl+R`** to route, and
247
+ **File → Export Build Guide** (`Ctrl+B`). No KiCad anywhere in that.
248
+
249
+ With a circuit that already exists, start at **File → Import KiCad Netlist** on
250
+ `examples/ne555-astable.net` and accept the offered placement instead. That is the exact
251
+ sequence the screenshots above come out of — see
252
+ [`tools/screenshots.py`](https://github.com/medinstech/perfboard_studio/blob/main/tools/screenshots.py).
253
+
254
+ ### Or open one that is already built
255
+
256
+ [Four examples](https://github.com/medinstech/perfboard-studio/blob/main/examples/README.md) ship as both the netlist and the finished board:
257
+
258
+ ```sh
259
+ perfboard-studio examples/lm317-supply.perf
260
+ ```
261
+
262
+ | | what it is there to show |
263
+ |---|---|
264
+ | `ne555-astable` | the starting point — a 555 flashing an LED |
265
+ | `lm317-supply` | a TO-220 regulator, so the heat rule has something to measure |
266
+ | `lpb1-booster` | built on **FR-2**, the phenolic board whose pads lift |
267
+ | `arduino-io-shield` | two headers, which is what a shield mostly is |
268
+
269
+ All four route to completion, match their schematics under LVS and carry no DRC error —
270
+ `tests/test_examples.py` asserts it on every commit.
271
+
272
+ ### From an agent
273
+
274
+ The MCP server drives the identical command bus, so undo works across both:
275
+
276
+ ```sh
277
+ claude mcp add perfboard-studio -- uvx --from "perfboard-studio[mcp]" perfboard-studio-mcp
278
+ ```
279
+
280
+ Nothing has to be installed first — `uvx` fetches the package into its own cache. From a
281
+ clone it is `pip install -e ".[mcp]"` and then `claude mcp add perfboard-studio -- perfboard-studio-mcp`.
282
+
283
+ Fifty-one tools, every hole addressed the way people talk about perfboard (`A1`, `C7`,
284
+ `AC12`) and never as raw coordinates. See [docs/MCP.md](https://github.com/medinstech/perfboard-studio/blob/main/docs/MCP.md) for the tool list,
285
+ the JSON config other clients want, and the rest of the setup.
286
+
287
+ ### Headless
288
+
289
+ Renders 2D/3D/PDF to files, runs DRC and LVS and prints timings, with no display. It is
290
+ how the visual output is exercised in CI, and the fastest way to check that a rendering
291
+ change did not crash:
292
+
293
+ ```sh
294
+ python -m perfboard_studio.ui.main --headless tools/diffcheck/golden/dense.perf
295
+ ```
296
+
297
+ ## How it is built
298
+
299
+ The document is **immutable** and every mutation is a command dispatched through one
300
+ bus — which is what makes undo work across a mixed human/agent session. The engine is
301
+ **pure**: no clock, no RNG, no filesystem, no Qt or VTK below `ui/`. The placer's
302
+ annealing is seeded, so the same document and the same seed give the same board.
303
+
304
+ That purity is load-bearing rather than decorative. This Python engine is a port of the
305
+ TypeScript one still in `packages/`, and its acceptance criterion was never "the tests
306
+ pass" but "it produces byte-identical results to the implementation it replaces" —
307
+ golden fixtures in `tools/diffcheck/`, down to the last IEEE-754 double.
308
+
309
+ ```
310
+ src/perfboard_studio/ the engine: document model, command bus, connectivity,
311
+ router, autorouter, placer, DRC, LVS, persistence
312
+ src/perfboard_studio/guide.py the soldering guide, and guide_export.py for HTML/CSV/JSON
313
+ src/perfboard_studio/stripboard.py the board whose copper arrives joined, and striproute.py
314
+ for the cuts-and-links planner that designs on one
315
+ src/perfboard_studio/parsers/ KiCad netlist importer
316
+ src/perfboard_studio/ui/ Qt application: 2D editor, VTK 3D view, 1:1 PDF export,
317
+ and headless.py, the no-display run CI checks the output with
318
+ src/perfboard_studio/mcp/ the MCP server (docs/MCP.md)
319
+ examples/ a netlist to import
320
+ tests/ ~2080 tests; the engine is mypy --strict clean
321
+ packages/ the original TypeScript engine, kept as the reference the
322
+ Python port is proved against
323
+ ```
324
+
325
+ The 61 THT footprints are **generated from numeric parameters**, not shipped as assets —
326
+ no mesh library, no share-alike licence to inherit. The same spec that draws a part in 2D
327
+ extrudes its body in 3D, so the two cannot disagree.
328
+
329
+ **A part that is not among the 61 is described, not installed.** *Custom Part…* asks for a
330
+ pin grid and three dimensions and hands back an identifier that carries them:
331
+ `box-4x2-p1-r3-15x10x8` is a four-by-two pin grid, three holes between the rows, in a
332
+ 15 × 10 × 8 mm body. Nothing is stored — the identifier *is* the definition — so a board
333
+ using a part nobody else has still opens as that part on their machine, with no library to
334
+ install and nothing to go missing.
335
+
336
+ ## Where it is going
337
+
338
+ Done: the editor, the library, connectivity and LVS, DRC, the router and the placement
339
+ optimiser, the build guide with rendered step images and assembly playback, the 1:1 PDF
340
+ export, the schematic panel and the sheet export beside it, parts described by their own
341
+ measurements when the library does not have them, crash recovery, the MCP server, TR/EN
342
+ localisation, the three-platform packaging that a `v*` tag
343
+ runs, and the update check that tells you a release exists and fetches it (**Help ▸ Check
344
+ for Updates**; it verifies the download against the release's `SHA256SUMS` and then hands
345
+ it to you — running it stays your click).
346
+
347
+ Next, in the order [PLAN.md](https://github.com/medinstech/perfboard-studio/blob/main/PLAN.md) §11 puts them:
348
+
349
+ - **The dogfood build (M5).** Somebody has to solder a real board from a generated guide.
350
+ Until that has happened, every claim on this page is a claim about software rather than
351
+ about a working circuit. It is also the one thing on this list that a stranger can do
352
+ for the project — there is [an issue template for it](https://github.com/medinstech/perfboard-studio/blob/main/.github/ISSUE_TEMPLATE/board_i_could_not_build.yml).
353
+ - **Code signing.** A Windows EV certificate is ~$300/year and Apple notarization
354
+ $99/year, so until then the installers warn on first run and the release notes say how
355
+ to get past it.
356
+
357
+ ## Where everything else is written down
358
+
359
+ | | |
360
+ |---|---|
361
+ | [docs/MCP.md](https://github.com/medinstech/perfboard-studio/blob/main/docs/MCP.md) | the 51 MCP tools, grouped with the reason each one exists, and the client config for Claude Code, Claude Desktop, Cursor and Antigravity |
362
+ | [examples/README.md](https://github.com/medinstech/perfboard-studio/blob/main/examples/README.md) | what each of the four example boards is there to demonstrate |
363
+ | [CHANGELOG.md](https://github.com/medinstech/perfboard-studio/blob/main/CHANGELOG.md) | every release, and what an unreleased build is accumulating towards the next one |
364
+ | [docs/RELEASING.md](https://github.com/medinstech/perfboard-studio/blob/main/docs/RELEASING.md) | the tag ritual, and what `release.yml` builds out of it on three platforms |
365
+ | [docs/prior-art.md](https://github.com/medinstech/perfboard-studio/blob/main/docs/prior-art.md) | the tools that already exist in this space, and the licence boundary this project keeps from them |
366
+ | [CONTRIBUTING.md](https://github.com/medinstech/perfboard-studio/blob/main/CONTRIBUTING.md) | running the suite, which checks are gates and which are reports |
367
+ | [SECURITY.md](https://github.com/medinstech/perfboard-studio/blob/main/SECURITY.md) · [CODE_OF_CONDUCT.md](https://github.com/medinstech/perfboard-studio/blob/main/CODE_OF_CONDUCT.md) | reporting a vulnerability, and how people are expected to behave here |
368
+ | [PLAN.md](https://github.com/medinstech/perfboard-studio/blob/main/PLAN.md) | the original project plan, **written in Turkish** and kept as written, so what was predicted can be read beside what came out |
369
+ | [CLAUDE.md](https://github.com/medinstech/perfboard-studio/blob/main/CLAUDE.md) | why the code is shaped the way it is. Written for agents working in the repository, and the most useful thing here for a person about to change something |
370
+
371
+ ## Contributing
372
+
373
+ Issues and pull requests are welcome. Please read [CONTRIBUTING.md](https://github.com/medinstech/perfboard-studio/blob/main/CONTRIBUTING.md)
374
+ first — it covers how to run the suite, which checks are gates and which are not, and one
375
+ licence boundary that matters more here than in most projects: **do not read or port code
376
+ from the GPL-licensed tools in this space.** Perfboard Studio is clean-room with respect to
377
+ them, and that has to stay true. The record is in [docs/prior-art.md](https://github.com/medinstech/perfboard-studio/blob/main/docs/prior-art.md).
378
+
379
+ ## Licence
380
+
381
+ Apache-2.0. See [LICENSE](https://github.com/medinstech/perfboard-studio/blob/main/LICENSE) and [NOTICE](https://github.com/medinstech/perfboard-studio/blob/main/NOTICE).