Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

solidfunc

An experimental, typed, functional Python API for SolidCore. Build 3D solids from primitives and planar profiles, transform and combine them, and export STEP. This small academic project explores ideas from CadQuery, build123d, and CAD as Code.

Quickstart

To build from source, install uv and Rust, then run these commands from the cloned repository. solidfunc supports Python 3.11 and later.

uv sync --locked --config-setting build-args=--profile=dev
uv run --no-sync python examples/hello_world.py

To make your own part, save and run a Python script like this in that environment.

import solidfunc as sf

block = sf.box(size_x=10, size_y=20, size_z=30)
moved = sf.translate(block, x=100)
sf.export_step(moved, "block.step")

Lengths are in millimetres. Operations preserve their inputs, and the exported STEP AP242 file opens in CAD tools.

See the API reference for signatures, units, and geometry conventions.

Viewing parts

Install PyVista separately with pip install pyvista in the same environment, then call show() with a solidfunc shape.

from solidfunc.view import show

show(moved)

Pass screenshot="part.png" to save a PNG. In Jupyter, show() displays a static preview by default. For an interactive view, install pyvista[jupyter] and pass jupyter_backend="client".

Bearing pillow block with a through-hole and four counterbored mounts

Source for the bearing pillow block

License

solidfunc is MIT licensed. SolidCore and its SMLib-derived code are Apache-2.0 licensed. The distribution includes the corresponding upstream notices.

Metadata

Release files for solidfunc 0.1.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solidfunc 0.1.0a3
File Size Uploaded Provenance Actions
solidfunc-0.1.0a3.tar.gz 130.2 kB Without provenance Details for solidfunc-0.1.0a3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for solidfunc 0.1.0a3
File Actions
solidfunc-0.1.0a3-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for solidfunc-0.1.0a3-cp311-abi3-win_amd64.whl
solidfunc-0.1.0a3-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for solidfunc-0.1.0a3-cp311-abi3-manylinux_2_28_x86_64.whl
solidfunc-0.1.0a3-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for solidfunc-0.1.0a3-cp311-abi3-manylinux_2_28_aarch64.whl
solidfunc-0.1.0a3-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for solidfunc-0.1.0a3-cp311-abi3-macosx_11_0_arm64.whl
solidfunc-0.1.0a3-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for solidfunc-0.1.0a3-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 83.7 MB

Release files / solidfunc-0.1.0a3.tar.gz

Download URL solidfunc-0.1.0a3.tar.gz
Size 130.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5f0c0046e99aa121e4a37e3d22c6912111ce68788c1e592e9def4f4024e16859
BLAKE2b-256 checksum
How to use checksums
3cfad5b36e3aea6d84f7d1b58a2f4997f07c49610827268627d63b572cbc1ae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / solidfunc-0.1.0a3-cp311-abi3-win_amd64.whl

Download URL solidfunc-0.1.0a3-cp311-abi3-win_amd64.whl
Size 16.7 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3e2ca36d1448b1b682eaa91eb4ace0fb55789d99b74a01a33770a64328dd2ed9
BLAKE2b-256 checksum
How to use checksums
2e88f6dc8a1b40230849b91f1ab877de7ea74981f3b4e0bd609a39c69ada4a56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / solidfunc-0.1.0a3-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL solidfunc-0.1.0a3-cp311-abi3-manylinux_2_28_x86_64.whl
Size 17.7 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
0ef5ef5d7dfc914f86d92dc5481af5b0f1607923481f922609b4ce2dfdeda2de
BLAKE2b-256 checksum
How to use checksums
16c9c12468e3553308c380e32535e0da60d86f4219e0573af5bf74059e6e5d63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / solidfunc-0.1.0a3-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL solidfunc-0.1.0a3-cp311-abi3-manylinux_2_28_aarch64.whl
Size 16.2 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
f1b617cc2ce4fbbc265aa986ccdd53f752e8146b29c0e1e382e9e9cd3329b994
BLAKE2b-256 checksum
How to use checksums
90dfeff27b1c32fe68683a901f57efd0c0e7681daa0f05f298e274e0d7ca2b69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / solidfunc-0.1.0a3-cp311-abi3-macosx_11_0_arm64.whl

Download URL solidfunc-0.1.0a3-cp311-abi3-macosx_11_0_arm64.whl
Size 15.5 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
38756e402a2d0dcc7422b311d420759a26c56065b567554d79bf846e5a5a5d97
BLAKE2b-256 checksum
How to use checksums
c2e9959e2a7d150fbc14ab4c9a3097d2d7a1e8c0f0826c14349b4b5551c4baf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / solidfunc-0.1.0a3-cp311-abi3-macosx_10_12_x86_64.whl

Download URL solidfunc-0.1.0a3-cp311-abi3-macosx_10_12_x86_64.whl
Size 17.5 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6160c54ae954b8647324e9c4cae2d5112f0e73fa0b36f88a5a51ffee0bc0fecb
BLAKE2b-256 checksum
How to use checksums
35e3f9bea6230d3cf0916896025b66959132f3f8b7fe949211875bd6db6c03b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for solidfunc 0.1.0a3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page