Repository navigation
Releases
v4.1.4
Fixed
remove_duplicate_polygons=1and=2, andRemoveDuplicates.map()with
those integers, work on Python 3.10 and 3.11, contributed by @xixihaha-ha
in #250. 4.1.3 raisedTypeErrorthere, because enum containment only
accepts raw values from Python 3.12 on. On 3.10 and 3.11 a value that
matches no strategy, such as'SINGLE'or3, now maps to
RemoveDuplicates.NONEinstead of raisingTypeError, as it already did
on 3.12 and later.
Changed
is_closed(exact=True), and with itcheck(exact=True)and the mass
properties, builds its edge set in one NumPy pass, contributed by
@dexhunter in #249. The results and warnings are unchanged. The PR
measured it 19% to 64% faster, depending on the mesh size.
Signed on 2026-11-13 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
PyPI versions without a matching tag
PyPI versions for which no matching commit could be found. Their files are the exact PyPI uploads.
- 1.0.0
- 1.0.1
- 1.0.2
- 1.1.0
- 1.1.2
- 1.2.0
- 1.3.0
- 1.3.1
- 1.3.2
- 1.3.3
- 1.3.4
- 1.3.5
- 1.3.6
- 1.3.7
- 1.6.2
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads of the versions listed in these notes, each verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
v4.1.3
Changed
import datetimeis spelledimport datetime as dtinstl.stland the
docs configuration, the alias ruff 0.17 expects (ICN001). The lint job in
the release workflow resolves ruff fresh, so the v4.1.2 tag stopped there
and never reached PyPI. 4.1.3 is the published release of the 4.1.2 change
below. No runtime change.
Changed (from the unpublished 4.1.2 tag)
- The build backend requirement now allows every
uv_buildrelease below
1.0 instead of stopping at 0.12, so distributions and build frontends
that ship a newer uv can build the sdist without waiting for a release.
Nothing changes forpip install numpy-stl, which installs the wheel.
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
v4.1.1
numpy-stl 4.1.1
Fixed
rotate()androtate_using_matrix()with apointother than the
origin moved the normals around that point as well as the vertices, so
a mesh rotated around a pivot carried normals that were no longer
perpendicular to its faces until you calledupdate_normals(). Files
written withupdate_normals=Falsekept those wrong normals. Normals
are now rotated in place and keep their magnitude, and a pivot taken
from the mesh itself, such asmesh.normals[0], is copied before the
rotation changes it. A pivot that cannot be broadcast against the
mesh now raises before anything is written. The vertices come out
exactly as before.
Thanks to @antonsoo (#248)
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
v4.1.0
numpy-stl 4.1.0
Fixed
Mesh.from_3mf_file()built each mesh from zeros and filled in the
triangles afterwards, so the normals of a loaded 3MF mesh were all zero
andcalculate_normals,name,remove_empty_areasand the other
constructor options were ignored. An empty 3MF mesh also failed to load.
The loader now constructs each mesh from the parsed triangles with the
options you pass. Thanks to @schlagskill for the report (#247)get_mass_properties()andget_mass_properties_with_density()could
still lose accuracy on a closed mesh whose connected component holds a
long thin appendage, on a nearly coplanar solid, or on parts whose
signed volumes cancel. Each component is now integrated around an
estimate of its own mass centroid, and poorly conditioned components
fall back to exact integer arithmetic. That exact path is a plain
Python loop, so a mesh that needs it, including one whose centre of
gravity has a coordinate close to zero, takes roughly 1.6 times as
long as before. Thanks to @antonsoo (#246)get_mass_properties()andget_mass_properties_with_density()returned
a wrong centre of gravity and inertia tensor, often with negative diagonal
entries, for closed meshes away from the origin or built from distant
parts. Both now integrate each connected component in float64 around a
local reference point and combine the parts with the parallel-axis
theorem. Thanks to @antonsoo (#245)- The
save()andsave_ply()docstring examples wrote to a fixed path
under/tmp, which does not exist on Windows and left files behind after
every test run. The doctests now run in a temporary directory with a copy
of the example data, so the examples read and write plain relative paths.
Thanks to @schlagskill (#244)
Changed
- Pull requests now receive automatic Ruff fixes from autofix.ci, and the
README badges report CI and coverage for master.
Full changelog: v4.0.1...v4.1.0
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
v4.0.1
numpy-stl 4.0.1
Fixed
- Resolved all mypy and basedpyright findings; malformed
# type: ignore[ty:...]suppressions replaced bytyping.castor restructured code. - Replaced
argparse.FileType(deprecated since Python 3.14) in the CLI with path arguments opened after parsing; stdin/stdout-semantics unchanged. This also fixes a latent bug where the output file was truncated at argument-parsing time, before the input was validated. - The optional speedups were silently disabled with
speedups>=2.1.0, which movedascii_read/ascii_writeto thespeedups.stlsubmodule. The import now targets that submodule and thefastextra requiresspeedups>=2.1.0.
Changed
- CI now enforces all four type checkers (pyrefly, mypy, basedpyright, ty).
Removed
- Legacy
build.cmdMSVC build script (the speedups extension it built was removed in 4.0.0).
Full changelog: v4.0.0...v4.0.1
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
v4.0.0
numpy-stl 4.0.0
Breaking: Python 3.9 and earlier are no longer supported (minimum is now Python 3.10), and the bundled
stl._speedupsCython extension has been removed. Install the optionalnumpy-stl[fast]extra to keep the C-accelerated ASCII reader/writer.
Fixed
- Binary STL triangle count is now read and written as the unsigned 32-bit integer the spec requires; counts with the high bit set no longer slip past the size check and silently read the whole file
- The
stl,stl2asciiandstl2bincommands work with piped stdin/stdout again: the std stream defaults now use the underlying binary buffers, and non-seekable streams are buffered so format auto-detection can rewind - ASCII STL output uses
{:.9g}formatting: float32 values round-trip exactly instead of values below 5e-7 being flattened to0.000000 save()no longer swallowsOSErrors; write failures (disk full, broken pipe) propagate instead of silently producing truncated outputtransform()now rotates the stored normals along with the verticestranslate(),transform()androtate_using_matrix()invalidate the cachedmin_/max_bounding boxremove_duplicate_polygonscompares full triangles instead of per-axis vertex sums; distinct triangles with equal sums are no longer dropped- PLY reader: elements declared before
vertexare skipped instead of being consumed as vertex data; scalar and extra list face properties around the vertex index list are consumed correctly; out-of-range and negative face indices raiseValueErrorinstead of crashing or wrapping around silently - PLY reader: vertex elements with list properties raise a descriptive
ValueErrorinstead ofKeyError: 'list' - 3MF loader raises descriptive
ValueErrors for missing vertex/triangle attributes and out-of-range vertex indices - The pure-Python ASCII reader no longer hits
RecursionErroron files with long runs of blank lines Mesh.from_file()on an empty file raises a descriptiveValueErrorinstead ofTypeErrorsave()/load()accept plain ints formodeand validate them asModevalues- Speedups are disabled automatically on non-seekable streams for both reading and writing (the C extension requires seekable files)
Changed
get_mass_properties()docs no longer claim aRuntimeErroris raised for open meshes; the actual behavior (warning + unreliable values) is documented- Publishing to PyPI is gated on the full CI test suite
- numpy dependency declares the tested lower bound (
numpy>=1.24) - The ASCII speedups are no longer bundled as a compiled Cython extension. Install the optional
numpy-stl[fast]extra (the externalspeedups>=2.0.0package) to enable them. Without it,speedups=Truetransparently falls back to the pure-Python reader/writer, so existing code keeps working — only the C-accelerated path now needs the extra.
Removed
- Support for Python 3.9 and earlier. The minimum supported version is now Python 3.10 (
requires-python = ">=3.10"); installing on older interpreters resolves to the previous release. - The bundled
stl._speedupsCython extension and its_speedups.pyxsource.import stl._speedupsno longer works; the acceleratedascii_read/ascii_writenow come from the externalspeedupspackage (see thenumpy-stl[fast]extra under Changed above).
Full changelog: v3.2.0...v4.0.0
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
v3.2.0
Added numpy 2 support thanks in large part to JeffreyOI. With helps from @tbaudier and @JBil8
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
v3.1.2
fixed #222, removed deprecated unused import
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md
v3.1.1
adding exact parameter to get_mass_properties check call. Thanks to @JasperBoogers
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md