Skip to main content

CAD to shapely

convert a CAD file to shapely geometry for downstream processing. Currently supports, to varying degrees:

  • DXF using exdxf
  • (IGES to follow)
  • (SVG to follow)

Utils

Also some utils in utils.py

Example

To run example in example.py you need to install matplotlib pip install matplotlib.

Development

  1. right click on project root folder > select open in terminal
  2. python -m venv .venv to setup python virtual environment for this project. TIP: copy from here and right click in terminal to paste-and-execute.
  3. Dialog should come up asking you want this env as interpreter for project: answer yes.
  4. If no to (3) on blue ribbon at bottom of VSCODE, on left click on interpreter, chose the venv one you just created.
  5. Might get some bits and both e.g. 'install pylint' etc. click install for them.
  6. pip install -e .[dev] to install the package (editable) with dev dependencies

Releasing

Note: releasing is only actionable by the repository owner.

Versioning is handled by setuptools-scm: the package version is derived from the git tag, so there is no version number in the source to bump. Publishing to PyPI happens automatically via GitHub Actions (.github/workflows/python-publish.yml) using PyPI Trusted Publishing when a GitHub release is published.

To cut a release:

$env:Path += ";C:\Program Files\GitHub CLI"
gh release create v0.3.3 --generate-notes

That's it. Tag format is vX.Y.Z (or X.Y.Z - both parse). The workflow builds the package with the version taken from the tag and uploads it to PyPI.

Download files

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

Source Distribution

cad_to_shapely-0.3.3.tar.gz (302.3 kB view details)

Uploaded Source

Built Distribution

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

cad_to_shapely-0.3.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file cad_to_shapely-0.3.3.tar.gz.

File metadata

  • Download URL: cad_to_shapely-0.3.3.tar.gz
  • Upload date:
  • Size: 302.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cad_to_shapely-0.3.3.tar.gz
Algorithm Hash digest
SHA256 3db045717636e8e255ac436c7edf03bf376f39ae3d59855398bd97fbf49367c1
MD5 b386cd266f9cbea29230faa3d78687fe
BLAKE2b-256 71c59544c1016b75789c5b74e298d1278a7a78c5295270a3c0707f1d65e1e0a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cad_to_shapely-0.3.3.tar.gz:

Publisher: python-publish.yml on aegis1980/cad-to-shapely

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cad_to_shapely-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: cad_to_shapely-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cad_to_shapely-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 38ab5b7ce328c86c3271ba3071968c2a7bd3ef2075ddfc807f6ffa4d9cfc17db
MD5 8bcbbf858a5e338c96c6c6665e7c5d4c
BLAKE2b-256 2197e525f46257a3dc1be9b658582daef59b622761f916fbd0392d4bae389eda

See more details on using hashes here.

Provenance

The following attestation bundles were made for cad_to_shapely-0.3.3-py3-none-any.whl:

Publisher: python-publish.yml on aegis1980/cad-to-shapely

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page