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
- right click on project root folder > select open in terminal
python -m venv .venvto setup python virtual environment for this project. TIP: copy from here and right click in terminal to paste-and-execute.- Dialog should come up asking you want this env as interpreter for project: answer yes.
- If no to (3) on blue ribbon at bottom of VSCODE, on left click on interpreter, chose the venv one you just created.
- Might get some bits and both e.g. 'install pylint' etc. click install for them.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3db045717636e8e255ac436c7edf03bf376f39ae3d59855398bd97fbf49367c1
|
|
| MD5 |
b386cd266f9cbea29230faa3d78687fe
|
|
| BLAKE2b-256 |
71c59544c1016b75789c5b74e298d1278a7a78c5295270a3c0707f1d65e1e0a2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cad_to_shapely-0.3.3.tar.gz -
Subject digest:
3db045717636e8e255ac436c7edf03bf376f39ae3d59855398bd97fbf49367c1 - Sigstore transparency entry: 2164919798
- Sigstore integration time:
-
Permalink:
aegis1980/cad-to-shapely@c2aba1f0bf7063d0753fbd129d83ab9c82f61e86 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/aegis1980
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c2aba1f0bf7063d0753fbd129d83ab9c82f61e86 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38ab5b7ce328c86c3271ba3071968c2a7bd3ef2075ddfc807f6ffa4d9cfc17db
|
|
| MD5 |
8bcbbf858a5e338c96c6c6665e7c5d4c
|
|
| BLAKE2b-256 |
2197e525f46257a3dc1be9b658582daef59b622761f916fbd0392d4bae389eda
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cad_to_shapely-0.3.3-py3-none-any.whl -
Subject digest:
38ab5b7ce328c86c3271ba3071968c2a7bd3ef2075ddfc807f6ffa4d9cfc17db - Sigstore transparency entry: 2164919863
- Sigstore integration time:
-
Permalink:
aegis1980/cad-to-shapely@c2aba1f0bf7063d0753fbd129d83ab9c82f61e86 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/aegis1980
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c2aba1f0bf7063d0753fbd129d83ab9c82f61e86 -
Trigger Event:
release
-
Statement type: