lib3mf
lib3mf is an implementation of the 3D Manufacturing Format file standard
What it is and what it does
lib3mf is a Python binding to a C++ implementation of the 3D Manufacturing Format standard, enabling developers to read, write, and validate 3MF files used in 3D printing and modeling workflows. The package provides a clean API for creating and manipulating 3D mesh objects, defining vertices and triangles, applying transformations, and serializing models to 3MF format.
The library runs on Windows, Linux, and macOS with precompiled wheels, eliminating the need for compilation. It has no runtime dependencies and is designed to lower adoption barriers for 3MF by offering straightforward integration into existing applications. The package is actively maintained and released under a permissive BSD license.
Use it for:
- Create and export 3D models to 3MF format for 3D printing workflows
- Parse and validate existing 3MF files in 3D design or manufacturing software
- Convert 3D mesh data (vertices and triangles) into standardized 3MF files
- Build 3D printing middleware or service tools that need 3MF support
- Integrate 3MF file handling into CAD or modeling applications
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
lib3mf reads, writes, and validates 3D Manufacturing Format (3MF) files, providing a Python interface to a C++ implementation of the 3MF standard for 3D printing and modeling.
Yes. lib3mf is production-stable, actively maintained, permissively licensed, and has zero known vulnerabilities. Install friction is moderate due to binary wheels but manageable. Choose it if you need to work with 3MF files in Python; it is the standard binding for the 3MF Consortium's reference implementation.
Install
lib3mf on PyPI
pip
pip install lib3mfuv
uv add lib3mfpoetry
poetry add lib3mfInstalling lib3mf
Before you install
Medium install friction due to precompiled binary wheels for macOS, Linux, and Windows; no runtime dependencies. Active maintenance with a release 172 days ago.
License in practice
Permissive BSD license allows commercial and private use with minimal restrictions; third-party components (libzip, zlib, cpp-base64, fast-float) are also permissively licensed.
Quickstart
import lib3mf
from lib3mf import get_wrapper
wrapper = get_wrapper()
model = wrapper.CreateModel()
mesh_object = model.AddMeshObject()
mesh_object.SetName("Box")
writer = model.QueryWriter("3mf")
writer.WriteToFile("output.3mf")
Verify before relying
- Minimum Python version requirement (requires_python field is unspecified in metadata)
- Whether the package supports Python 2 or only Python 3 (classifiers indicate Python 3 but version range unclear)
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 172 days since the last release |
| First released | |
| Downloads | 343,044/month — #7,388 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: lib3mf-2.5.0-py3-none-macosx_10_9_universal2.whl; lib3mf-2.5.0-py3-none-manylinux2014_x86_64.whl; lib3mf-2.5.0-py3-none-win_amd64.whl
Tags
More Graphics packages
Pillow adds image processing capabilities to…
permissive · top 100 on PyPI
fonttoolsfonttools manipulates font files in multiple…
permissive · top 1,000 on PyPI
matplotlib-inlineEnables matplotlib figures to display inline…
permissive · top 1,000 on PyPI
pymupdfPyMuPDF extracts, renders, converts, and…
agpl · top 1,000 on PyPI
pypdfium2pypdfium2 is a Python binding to PDFium that…
permissive · top 1,000 on PyPI
altairAltair is a declarative Python library for…
permissive · top 1,000 on PyPI
py-lib3mfProvides Python bindings to Lib3MF, enabling…
permissive · top 15,000 on PyPI
numpy-stlReads, writes, and modifies STL mesh files…
permissive · top 15,000 on PyPI
plyfileplyfile reads and writes ASCII and binary PLY…
copyleft · top 5,000 on PyPI
cmeel-assimpProvides a Python-packaged distribution of…
permissive · top 5,000 on PyPI
manifold3dManifold3d creates and operates on manifold…
permissive · top 5,000 on PyPI
pygltflibReads, writes, and manipulates GLTF and GLB 3D…
permissive · top 5,000 on PyPI
PyGEL3DPyGEL3D provides Python bindings for a C++…
permissive · top 15,000 on PyPI
meshioplusplusmeshioplusplus reads and writes mesh files in…
permissive · top 15,000 on PyPI
open3dOpen3D provides data structures and algorithms…
permissive · top 5,000 on PyPI
fast-simplificationSimplifies 3D meshes by reducing the number of…
permissive · top 15,000 on PyPI