Skip to main content Switch to mobile version Pre-release This release is a pre-release and may not be stable for production use.
The official Python client for ryucad, CAD built for AI agents to drive
pip install ryucad==0.11.0rc1 Copy PIP instructions
The package finds an installed ryucad; it ships none. Install ryucad first:
curl -fsSL https://github.com/Seiraiyu/ryucad/releases/latest/download/install.sh | sh or on Windows (PowerShell):
irm https://github.com/Seiraiyu/ryucad/releases/latest/download/install.ps1 | iex then the package:
pip install ryucad It looks for ryucad in connect(exe=...), then RYUCAD_EXE, then ryucad on PATH, then the installers' ~/.ryucad/bin (RYUCAD_HOME's bin when that is set), and raises ryucad.NotInstalled with the two commands above when there is none. It needs ryucad's protocol 3 or newer (the one with batch) and warns when ryucad is older than the package.
import ryucad def plate(name, width): return ryucad.op( "part.ensure", part=name, params={"w": f"{width} mm"}, features=[{"id": "base", "type": "box", "params": {"x": "w", "y": 30, "z": 6}}], ) with ryucad.connect("~/work/fixture") as cad: answer = cad.batch([plate("left", 40), plate("right", 60)], prune=True) print(answer["parts"]) # {"left": {"status": "created", ...}, ...} again = cad.batch([plate("left", 40), plate("right", 60)], prune=True) assert again["written"] == 0 # nothing changed, nothing written cad.call("export", part="left", out="left.step") # relative to the project stl = cad.call("export", part="left", format="stl") print(len(stl.data), "bytes of STL") cad.call(method, params=None, **params) sends any request by name and returns its result as a dict; an answer that carries bytes has them in .data. A param named like a Python keyword (from) goes in the dict.
cad.batch(ops, expect=None, dry_run=False, rebuild=None, prune=False) runs many edits as one checked, logged, undoable change; ryucad.op builds each op. cad.ensure(part, features, ...) is part.ensure alone, and cad.undo() takes back this participant's latest change.
connect(folder, as_=..., no_daemon=..., exe=..., env=..., on_progress=...): as_ names the participant in the activity log; on_progress receives each progress line of a request sent with progress=True; after the script's own subscribe, notifications collect in cad.notifications.
One request at a time per session (threads take turns); open two sessions for two at once. Ctrl+C cancels a long request and waits for its cancelled answer before KeyboardInterrupt reaches the script.
A refusal raises ryucad.RyucadError with ryucad's stable code, a message, its details, and pointer, path, op and method when it names them (a batch's failing op). It is one of FixableError (the agent can fix it), UsageError, ProjectError (no usable project) or ExternalError (not the agent's fault), with named classes for the codes scripts branch on: Conflict, NotFound, RebuildFailed, HasDependents, AssemblyOverconstrained, Cancelled, DaemonError. Every other code is matched by e.code == ryucad.Code.SOME_CODE. The client's own errors are NotInstalled, Incompatible, SessionClosed and ProtocolError; all derive from ryucad.Error.
try: cad.batch(ops) except ryucad.FixableError as e: print(e.code, e.op, e.pointer, e.message) The protocol
Methods, params and answers are ryucad's own: ryucad
The package is released with ryucad, from the same tag: ryucad vX.Y.Z publishes ryucad X.Y.Z here, and a pre-release vX.Y.Z-pre.N publishes X.Y.ZrcN (install it with pip install --pre). Keep the package and ryucad at the same version.
Released: Dec 5, 2026
Both files in this release have provenance metadata.
View provenance details
Apache-2.0 View SPDX License List
Operating System OS Independent
Programming Language Python :: 3
Topic Multimedia :: Graphics :: 3D Modeling
Scientific/Engineering
Release files for ryucad 0.11.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 62.4 kB
Release files / ryucad-0.11.0rc1.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Release files / ryucad-0.11.0rc1-py3-none-any.whl
Security for ryucad 0.11.0rc1
Both files in this release have been uploaded with provenance metadata.
With provenance ryucad-0.11.0rc1.tar.gz Dec 5, 2026
With provenance ryucad-0.11.0rc1-py3-none-any.whl Dec 5, 2026
Attestation for ryucad-0.11.0rc1.tar.gz
Attestation for ryucad-0.11.0rc1-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 6, 2026 2 release files Full provenance
0.11.0rc1 This release
Dec 5, 2026 2 release files Full provenance
Dec 1, 2026 2 release files Full provenance
Nov 30, 2026 2 release files Full provenance
Nov 23, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 4d99e05











