Skip to main content

opencad

The OpenCAD core: geometry kernel, constraint solver, feature tree, and the fluent modelling API — with no web framework and no network dependency.

Install:

pip install opencad          # pydantic + numpy only
pip install "opencad[occt]"  # add the OCCT B-rep backend
pip install "opencad[full]"  # OCCT + scipy solver + networkx graph analysis

Use:

from opencad import Part, Sketch

profile = Sketch(name="Plate").rect(80, 30).circle(3, center=(8, 8), subtract=True)
plate = Part().extrude(profile, depth=4, name="Plate")
plate.fillet(edges="all", radius=1.0)

Every fluent call appends a node to a rebuildable feature DAG, which you can serialize, edit, and replay. See the repository ARCHITECTURE.md for the kernel/solver/tree design and TOPOLOGY.md for topological naming.

Packages

Module Responsibility
opencad Fluent Part/Sketch API, RuntimeContext, CLI, design artifacts
opencad.kernel B-rep operations, OCCT and analytic backends, KernelClient
opencad.solver 2-D constraint solving (NumPy/SciPy and SolveSpace backends)
opencad.tree Feature DAG, incremental rebuild, branching, expressions
  • opencad-agent — natural-language modelling on top of this package
  • opencad-backend — FastAPI HTTP service exposing all of the above

Tests

pytest

The suite runs against this package alone. A few integration tests exercise repository files (examples/, docs/schemas/) and skip automatically when the package is tested outside a monorepo checkout.

Metadata

Release files for opencad 0.2.4

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

Source distribution (sdist)

Source distribution for opencad 0.2.4
File Size Uploaded Provenance Actions
opencad-0.2.4.tar.gz 80.4 kB Without provenance Details for opencad-0.2.4.tar.gz

Built distribution (wheel)

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

Total release size: 174.3 kB

Release files / opencad-0.2.4.tar.gz

Download URL opencad-0.2.4.tar.gz
Size 80.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3d596a8ba98227810e25d981b091892ce032377602234cf1c394cb7f11644706
BLAKE2b-256 checksum
How to use checksums
8018e72233528d58e5b2e19a4f4ce6da4f11fffb19f9ddde23f3e70e06451f90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / opencad-0.2.4-py3-none-any.whl

Download URL opencad-0.2.4-py3-none-any.whl
Size 93.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c968c355fe34d3b6d3d8ee1f12a2fec9739b6c9952dc87544bf8c714ea2972e
BLAKE2b-256 checksum
How to use checksums
a6de1d2b78bf265ade41ad097a424fc62462c699dac112350713582b657fa82a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for opencad 0.2.4

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