solidcraft (Python)
Drive SolidCraft from Python. Every engine command and every MCP tool is a typed method, generated from the build, and NumPy, SciPy or pandas values can be passed straight in.
import numpy as np
import solidcraft as sc
with sc.session() as d:
d.cmd.solid.box(length=60, width=40, height=8, body_name="Plate")
a = np.linspace(0, 2 * np.pi, 6, endpoint=False)
for p in np.column_stack([30 + 15 * np.cos(a), 20 + 15 * np.sin(a), np.full(6, 8.0)]):
d.cmd.solid.hole(position=p, diameter=4)
print(d.changes())
sc.session() uses a running session daemon (solidcraft-session serve) when there is one, so
several scripts work on one design, and otherwise starts its own headless SolidCraft. It talks to
solidcraft-cli mcp --structured, the same MCP server agents use. Design notes: docs/python-api.md.
pip install solidcraft
uvx solidcraft mcp # the MCP server over stdio: command "uvx", args ["solidcraft", "mcp"]
The solidcraft command runs solidcraft-cli with the same arguments and exit code
(uvx solidcraft --version).
The package is pure Python and carries no binary. The first run downloads this version's
solidcraft-cli for your platform (100 to 250 MB, once) from the GitHub release, checks
it against the release's SHA256SUMS.txt, and keeps it in your user cache. A solidcraft-cli on
PATH of the same minor version or newer (an installed SolidCraft) is used instead, and
SOLIDCRAFT_CLI overrides both. Offline: solidcraft install-cli --from <archive> puts a
downloaded archive in the cache; SOLIDCRAFT_NO_DOWNLOAD=1 turns the download off.
solidcraft install-cli also copies the CLI to ~/.local/bin (it never edits PATH).
The generated bindings come from cargo xtask python and are not committed.
Metadata
Release files for solidcraft 0.51.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| solidcraft-0.51.2-py3-none-any.whl | Python 3 | none | any | Details for solidcraft-0.51.2-py3-none-any.whl |
Release files / solidcraft-0.51.2-py3-none-any.whl
| Download URL | solidcraft-0.51.2-py3-none-any.whl |
|---|---|
| Size | 485.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca27d32446eddfa9e8eafe24d5804a88c0ce316a4bd9fa19be99568f1a34e796
|
|
BLAKE2b-256 checksum How to use checksums |
067bb6f24715be6ecdf2208f3a49e4c334c03d27053bf60c8b734ce990746354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Nov 28, 2026.
Transparency logSecurity for solidcraft 0.51.2
Provenance
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for solidcraft-0.51.2-py3-none-any.whl
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 Nov 28, 2026.
Transparency logA 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.