Skip to main content

Py3DConvert

Py3DConvert is a Python library and CLI for converting, inspecting, validating and performing conservative cleanup on static 3D mesh assets. The desktop GUI is optional. It uses the Python trimesh ecosystem and does not require Blender, Assimp executables or a REST service.

Install

python -m pip install py3dconvert
python -m pip install "py3dconvert[gui]"  # optional desktop UI
python -m pip install "py3dconvert[dev]"  # build, tests, lint and PyPI checks

Python API

from py3dconvert import Converter, Inspector, Validator, Optimizer

result = Converter().convert("model.obj", "model.glb")
print(result.output, result.output_size)

info = Inspector.inspect("model.glb")
print(info.geometry_count, info.vertex_count, info.face_count, info.bounds)

report = Validator.validate("model.glb")
if not report.valid:
    print(report.errors)

Optimizer.repair_basic("model.obj", "model-clean.obj")

Batch conversion

from pathlib import Path
from py3dconvert import Converter

report = Converter().convert_batch(
    Path("models").glob("*.obj"), "converted", "glb",
    continue_on_error=True,
)
print(len(report.results), report.errors)

CLI

py3dconvert formats
py3dconvert capabilities
py3dconvert convert input.obj output.glb
py3dconvert inspect model.glb
py3dconvert validate model.stl --watertight
py3dconvert batch ./models ./converted --to glb --continue-on-error
py3dconvert-gui  # requires [gui] extra

Format support and fidelity

The exact import/export capabilities depend on the installed trimesh version and optional Python dependencies. Run py3dconvert formats to see known extensions, py3dconvert capabilities to see the installed import/export registrations, or call format_capabilities() from Python. A listed extension is not a guarantee that every source/target pair works. Some formats need optional handlers; some exporters produce sidecar files. Always validate outputs in the application that will consume them.

This release targets static triangle-mesh assets. It does not claim full preservation or conversion of skeletal rigs, skinning, morph targets, animation timelines, CAD parametric history, physics, cameras, lights or every material/shader graph. Material and texture fidelity is format- and backend-dependent. It is not a universal replacement for Blender or specialist CAD tools.

Development

python -m pip install -e ".[dev]"
python -m pytest

Metadata

Release files for py3dconvert 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py3dconvert 1.0.1
File Size Uploaded Provenance Actions
py3dconvert-1.0.1.tar.gz 14.1 kB Without provenance Details for py3dconvert-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py3dconvert 1.0.1
File Interpreter ABI Platform Actions
py3dconvert-1.0.1-py3-none-any.whl Python 3 none any Details for py3dconvert-1.0.1-py3-none-any.whl

Total release size: 27.6 kB

Release files / py3dconvert-1.0.1.tar.gz

Download URL py3dconvert-1.0.1.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9ecaef5449b116213a53c9367578adfcf7a9fcf1794d87fc7ae04ff4256eea1d
BLAKE2b-256 checksum
How to use checksums
35ac7c37daaf096f605b2fefefea7dae47fc7e5a368648ad62dfd0fe5a449eb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / py3dconvert-1.0.1-py3-none-any.whl

Download URL py3dconvert-1.0.1-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d51059e4010f4646866b39f031312fa09aaa83947327745b452f6b3df4ea2e5
BLAKE2b-256 checksum
How to use checksums
76bd3fcf6db9cdfa4e2f75269296f335648a1732592b67dac465e63d6d8c07a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for py3dconvert 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page