Roadmap 0.13, Python scripting

PY.1 Python add-on: a Python console in every app, on the tools the apps already have

  • Feature
  • Partly built
  • CadCraft
  • BimCraft
  • ModelCraft
  • MarkupCraft
  • TakeoffCraft
  • CivilCraft
  • DetailCraft
  • PartCraft

a Discord member Suggested. Partly built, in the lab (2026-12-03). Works: with Python scripting added from the Library, a Python panel appears in all eight apps: an editor with line numbers, a console, Run (F5), Run selection, Stop, Clear, a searchable Tools list, open and save .py files. `import cadcraft as cc` gives one function per tool the app offers (52 to 108 per app), keyword arguments checked against the tool's schema, plain Python data back, help from the tool's description, tool errors as cadcraft.ToolError. Sealed sandbox: no files, no network, standard library only; stops at 2 minutes or 5 million lines; never runs on open. In CadCraft, BimCraft and PartCraft one run is one undo step. Left: (1) keeping a script with the file is not built in any app (needs a document-level data call in the add-on API); (2) in ModelCraft, MarkupCraft, TakeoffCraft, DetailCraft and CivilCraft each tool call is its own undo step; (3) it needs a browser engine with stack switching for WebAssembly (current Chrome and Edge; not Firefox or Safari), so packed Studio on macOS and iPad must be checked before it is promised there; (4) the Library listing is written as files, not published. The runtime is about 7 MB over the network, once. Tests: node bin/test-pyhost.mjs 47/0 on the real runtime; lab browser run 48/0 (CadCraft, BimCraft, PartCraft end to end, the panel in the other five, 12 help examples). Log docs/0.12-sessions/py-console.md.

2026-12-03 (python-13, PY.1) 0.13 follow-up, status unchanged: the add-on (now 0.2.0) was checked with the add-on package checker and one thing would have refused it: lib/pyhost/client.js built its Blob stub as the text 'import ' + a quoted URL, which the checker reads as an import of a URL; written as a template literal now, the checker finds nothing else (the ../../host.js import is turned into host:host.js at packing, as for every add-on). Left 1 to 4 above are unchanged. The panel now also has Scripts (PY.3, PY.6), Keep Python on this device (PY.4) and Download cadcraft.py (PY.5); see those rows.

From: a Discord member

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.