$npx skillfedfor your agent

numpy-stl

Library to make reading, writing and modifying both binary and ascii STL files easy.

Worth itPyPI Python ModulesReleased Jun 2026605.1K downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — numpy_stl-4.0.0-py3-none-any.whl
v4.0.0 · released 2026-06-17 · Python >=3.10 · 3 runtime deps: numpy, python-utils, typing-extensions

Yes. The package is mature, actively maintained, has no known vulnerabilities, installs with low friction, and solves a specific problem (STL mesh I/O and manipulation) with a clean NumPy-backed API. Use it if you need to read, write, or transform STL files in Python; skip it only if you have no mesh-processing requirements.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; numpy 1.24+ is installed automatically.
  • Low friction: pure Python wheel with three lightweight runtime dependencies (numpy, python-utils, typing-extensions).
  • Actively maintained as of 2026-06-17 with recent activity.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use, modify, and distribute this package with minimal legal constraints, provided you retain the license notice.

last release 2026-06-17 (58 days) · last repo commit 2026-07-06 · 684 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 605,073 downloads/mo, #5,799 on PyPI

Verify before relying

pip install numpy-stl

from stl import mesh

# Load an STL file
your_mesh = mesh.Mesh.from_file('model.stl')

# Inspect
print(f'{len(your_mesh)} triangles')

# Save
your_mesh.save('output.stl')
  • Whether PLY write support is stable or still experimental like 3MF read support
  • Performance characteristics of mesh operations on very large files beyond the 871,414-triangle benchmark shown
Same gist for agents: .md · .json

What it is and what it does

numpy-stl is a Python library for loading, saving, and manipulating 3D mesh files in STL format (and experimentally, PLY and 3MF). It wraps mesh geometry in NumPy arrays, enabling fast vectorized operations like rotation, translation, matrix transforms, and mass property calculations (volume, center of gravity, inertia tensor). The library auto-detects binary vs. ASCII STL on load and provides CLI tools for format conversion.

Typical workflows include loading a mesh file, inspecting or modifying its geometry, computing physical properties, combining multiple meshes, and saving the result. All core operations use NumPy's array math for speed; optional Cython speedups (via the `speedups` package) can accelerate ASCII parsing by ~5x. It requires Python 3.10+ and numpy 1.24+.

Use it for

  • Load and inspect 3D CAD models (STL files) to extract geometry, bounding box, or triangle count for validation.
  • Transform mesh geometry by rotating, translating, or applying 4x4 matrix transforms before export.
  • Calculate mass properties (volume, center of gravity, inertia tensor) for closed mesh models in engineering workflows.
  • Combine multiple STL parts into a single mesh by concatenating their data arrays.
  • Convert between STL binary and ASCII formats, or read PLY files for interoperability with other 3D tools.
  • Visualize 3D meshes using matplotlib by extracting vectors and rendering as 3D polygon collections.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is mature, actively maintained, has no known vulnerabilities, installs with low friction, and solves a specific problem (STL mesh I/O and manipulation) with a clean NumPy-backed API. Use it if you need to read, write, or transform STL files in Python; skip it only if you have no mesh-processing requirements.

Install

numpy-stl on PyPI

Before you install

Low friction: pure Python wheel with three lightweight runtime dependencies (numpy, python-utils, typing-extensions). Actively maintained as of 2026-06-17 with recent activity.

Requires Python 3.10 or later; numpy 1.24+ is installed automatically.

License in practice

BSD-3-Clause is permissive; you can use, modify, and distribute this package with minimal legal constraints, provided you retain the license notice.

Quickstart

pip install numpy-stl

from stl import mesh

# Load an STL file
your_mesh = mesh.Mesh.from_file('model.stl')

# Inspect
print(f'{len(your_mesh)} triangles')

# Save
your_mesh.save('output.stl')

Verify before relying

  • Whether PLY write support is stable or still experimental like 3MF read support
  • Performance characteristics of mesh operations on very large files beyond the 871,414-triangle benchmark shown

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
numpypython-utilstyping-extensions
MaintenanceActively maintained 58 days since the last release
Last repo commit
First released
Downloads605,073 / month, #5,799 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 6 - MatureIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: numpy_stl-4.0.0-py3-none-any.whl

Tags

Capabilities
STL file reader writer3D mesh manipulationSTL binary ASCII conversionNumPy mesh operations3D geometry processingCAD file handlingmesh rotation translation
Topics
3d-geometrymesh-processingcad-formats

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “STL file reader writer”

  • numpy-stlReads, writes, and modifies STL mesh files (binary and ASCII formats)…
  • meshioplusplusmeshioplusplus reads and writes mesh files in dozens of formats (STL,…
  • meshioReads and writes mesh files in dozens of formats (STL, VTK, Gmsh,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also plyfile · trimesh · meshioplusplus · meshio · fast-simplification · lib3mf · pytetwild · PyGEL3D · DracoPy · py-lib3mf