Skip to main content

"Easy as Pie" CAD (Piecad)

For many years I used OpenSCAD, but the functional language it uses was often a hinderance and its speed was poor. Piecad is my opinionted view of what a good, simple CAD API should look like. It is written in Python. Its primary focus is the creation of models for 3D printing.

To install using pip (virtual environment recommended):

Python 3.12 or later is required; Python 3.14.1 is not supported.

pip install piecad

To run tests from a checkout, install the test dependencies and run pytest:

pip install -e '.[test]'
pytest

To generate the printable cheat sheet from a checkout, install the documentation extra:

pip install -e '.[docs]'

For the full development tools used by setup, install .[test,docs,dev].

QuickHelp

Documentation

Examples

Printable CheatSheet

Piecad has a view function which works like a 3d print (also does 2D). Matplotlib provides the window that displays the model/image from each view call. You can use arrow keys to swtich between the models/images.

The viewer is automatically started when you use a view call inside Piecad. If you are running your program inside PyCharm or Microsoft Visual Studio, add a call to view_all_now() as the last line of your program. Type 'h' in the view window for a list of commands.

CREDITS

Piecad is based on Manifold, a 3D CAD package written in C++. Manifold incorporates Clipper2 for 2D objects. It also uses quickhull for 3d convex hulls. You can see Manifold's web site for other packages that are used.

Piecad uses the trimesh package for mesh loading/saving and for Piecad-Viewer.

Piecad uses Matplotlib for visualizations.

We include two fonts: Hack-Regular.tts and Roboto-Regular.tts, see piecad/fonts for the licenses.

See the file for more packages that are used in Piecad.

Metadata

Release files for piecad 2.1.2

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

Source distribution (sdist)

Source distribution for piecad 2.1.2
File Size Uploaded Provenance Actions
piecad-2.1.2.tar.gz 328.6 kB Without provenance Details for piecad-2.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for piecad 2.1.2
File Interpreter ABI Platform Actions
piecad-2.1.2-py3-none-any.whl Python 3 none any Details for piecad-2.1.2-py3-none-any.whl

Total release size: 663.0 kB

Release files / piecad-2.1.2.tar.gz

Download URL piecad-2.1.2.tar.gz
Size 328.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b5900bbd223d1c5edf9443fc4e7505d6b3f56c3c76e696dffaf223580dcffd32
BLAKE2b-256 checksum
How to use checksums
60e247abe18e097dafd4801f9d27d410d3ed0623af246e994bd1d1ea7cfe9f9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / piecad-2.1.2-py3-none-any.whl

Download URL piecad-2.1.2-py3-none-any.whl
Size 334.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a4c443e894f5ece5ea8ff7f2ec89ff5730f45a120c21b7ec64c7a7705757fff
BLAKE2b-256 checksum
How to use checksums
64bdab52e0c0ec2f1cdd21421904982e05f4ba3693cd9217ef9bf64f5a558f0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Security for piecad 2.1.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.

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.

Release history Release notifications | RSS feed

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