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

Related distributions

  • 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opencad-0.2.4.tar.gz (80.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencad-0.2.4-py3-none-any.whl (93.9 kB view details)

Uploaded Python 3

File details

Details for the file opencad-0.2.4.tar.gz.

File metadata

  • Download URL: opencad-0.2.4.tar.gz
  • Upload date:
  • Size: 80.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for opencad-0.2.4.tar.gz
Algorithm Hash digest
SHA256 3d596a8ba98227810e25d981b091892ce032377602234cf1c394cb7f11644706
MD5 e7d6855bbf8df80e0779a4e50584ec7c
BLAKE2b-256 8018e72233528d58e5b2e19a4f4ce6da4f11fffb19f9ddde23f3e70e06451f90

See more details on using hashes here.

File details

Details for the file opencad-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: opencad-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 93.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for opencad-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8c968c355fe34d3b6d3d8ee1f12a2fec9739b6c9952dc87544bf8c714ea2972e
MD5 5e4e6b7ba81d7e137f82dee28bebe9cf
BLAKE2b-256 a6de1d2b78bf265ade41ad097a424fc62462c699dac112350713582b657fa82a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 files

0.2.3

2 files

0.2.1

2 files

0.2.0

2 files

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