Skip to main content

meshopt

An independent Python binding for meshoptimizer's encoder and decoder, modelled on its JavaScript module. Not affiliated with the meshoptimizer project.

Use

import meshopt

indices, remap, unique = meshopt.reorder_mesh(indices, triangles=True, optsize=False)
vertices = vertices[np.argsort(remap)[:unique]]                  # each vertex moved to its new place

data = meshopt.encode_gltf_buffer(vertices, "ATTRIBUTES")        # bytes for an EXT_meshopt_compression bufferView
rows = meshopt.decode_gltf_buffer(data, len(vertices), vertices.itemsize * vertices.shape[1], "ATTRIBUTES")

The functions are the JavaScript module's (MeshoptEncoder and MeshoptDecoder), in snake case, with counts and sizes taken from the arrays where they can be. Encoders give bytes; filters give rows of bytes as an array; decoders give rows of bytes, or indices for an index buffer. The tests are the JavaScript module's tests, one for one.

Every call releases Python's lock, and the module runs on free-threaded Python with the lock off.

Build

A short C++ binding made with nanobind over meshoptimizer's own sources, vendored from release 1.3 in vendor/meshoptimizer. uv sync builds it and uv run pytest tests it. Releases are a wheel for each system, so installing needs no compiler.

Licence

MIT, as meshoptimizer is. meshoptimizer is Arseny Kapoulkine's; its licence is in vendor/meshoptimizer/LICENSE.md.

Metadata

Release files for meshopt 0.1.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 meshopt 0.1.1
File Size Uploaded Provenance Actions
meshopt-0.1.1.tar.gz 73.3 kB With provenance Details for meshopt-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for meshopt 0.1.1
File Actions
meshopt-0.1.1-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for meshopt-0.1.1-cp314-cp314t-win_amd64.whl
meshopt-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for meshopt-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
meshopt-0.1.1-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for meshopt-0.1.1-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
meshopt-0.1.1-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for meshopt-0.1.1-cp314-cp314t-macosx_11_0_arm64.whl
meshopt-0.1.1-cp314-cp314t-macosx_10_15_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.15+ x86-64 Details for meshopt-0.1.1-cp314-cp314t-macosx_10_15_x86_64.whl
meshopt-0.1.1-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for meshopt-0.1.1-cp312-abi3-win_amd64.whl
meshopt-0.1.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for meshopt-0.1.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
meshopt-0.1.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for meshopt-0.1.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
meshopt-0.1.1-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for meshopt-0.1.1-cp312-abi3-macosx_11_0_arm64.whl
meshopt-0.1.1-cp312-abi3-macosx_10_14_x86_64.whl CPython 3.12 abi3 macOS 10.14+ x86-64 Details for meshopt-0.1.1-cp312-abi3-macosx_10_14_x86_64.whl

Total release size: 912.8 kB

Release files / meshopt-0.1.1.tar.gz

Download URL meshopt-0.1.1.tar.gz
Size 73.3 kB
Tags Source
SHA-256 checksum
How to use checksums
03ce5ff65ef57a4182c0141063accfcc3cdde80f63474acc57bcfebd6dc9c602
BLAKE2b-256 checksum
How to use checksums
d29a14cfb2997c9e4a6c8d8f053313550ebef337a648266c51cb9c93d8817646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp314-cp314t-win_amd64.whl

Download URL meshopt-0.1.1-cp314-cp314t-win_amd64.whl
Size 111.8 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
603d65e4e2fe971336352ea71a4d389d979038d7fc74f1ac5a63bc3ae3a46109
BLAKE2b-256 checksum
How to use checksums
70d981d66205dd69cb2a1dd39eccbff132e9c6ea03aa94c550abbf1ccfb4fd17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL meshopt-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 83.9 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f21891a13f2017aa4ed2270cef8289dadc7be65a0a631b007eac831a398b57e3
BLAKE2b-256 checksum
How to use checksums
96c73fd2a6c0429c3708bca1010f8953f8f39c177d6cb34d239d57f9cfade085
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL meshopt-0.1.1-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 79.1 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
8879e7d38e990f7f3429d13d15129ebc8e74312e848ae5b697bc9e162ddf3e83
BLAKE2b-256 checksum
How to use checksums
4fc7f99aa4dbde5fb9bcaa56532fb3b370367f5dc6550c1a734f8aaf51002135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp314-cp314t-macosx_11_0_arm64.whl

Download URL meshopt-0.1.1-cp314-cp314t-macosx_11_0_arm64.whl
Size 74.0 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0d2d76f252cbff020d820b0e454f1dc6e8e3c3e5c0965d98b65b8065c57d1cc5
BLAKE2b-256 checksum
How to use checksums
f6c6bcaf6ff3666555de2589ae05043aa3698d311a206e1edb257e40d6323f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp314-cp314t-macosx_10_15_x86_64.whl

Download URL meshopt-0.1.1-cp314-cp314t-macosx_10_15_x86_64.whl
Size 78.3 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
bc8e731ca52229f7516b3dafb73a52cbaba194792677db2768f8de92ac64b9df
BLAKE2b-256 checksum
How to use checksums
aada4c719eaef4a3a781e6dd240c8bc8b3ed8864112653f77080766076303f54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp312-abi3-win_amd64.whl

Download URL meshopt-0.1.1-cp312-abi3-win_amd64.whl
Size 105.9 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b8f93eb5ec3c0b809a727bdbd2879f1e0cd14137c7b55dc3cf227599cbd8f07b
BLAKE2b-256 checksum
How to use checksums
049d5a549c057d7d2cb5b2ec388904b19e6bbcd726d3ec5d58e4a8fe71e37be0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL meshopt-0.1.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 81.8 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
6cab8aebc6db49f0992048f20e27f6b2b7c658fc021cea4f6f505e0f1d33c095
BLAKE2b-256 checksum
How to use checksums
8adbe147eca62cb5971fbf8f3b9603726a185c0f49016db69206fa29adb36ed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL meshopt-0.1.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 76.8 kB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
d4438249cb267dc3e13f7bab3dbc44c199c8c8b99a26e3cf4cb6d12acc679cc0
BLAKE2b-256 checksum
How to use checksums
866529d79d1cab1c5034ef54b8c39fd6bbd5e72f9e9a100edfc99b471fad2b94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp312-abi3-macosx_11_0_arm64.whl

Download URL meshopt-0.1.1-cp312-abi3-macosx_11_0_arm64.whl
Size 72.0 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5d281e2589444c67be75b32501bf56ee22c2171762c2695325d3246ba62d2ecd
BLAKE2b-256 checksum
How to use checksums
c1d83cef2e72fdb15b7f27c10f2368f80c308d635e28885694c87980f4be9daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / meshopt-0.1.1-cp312-abi3-macosx_10_14_x86_64.whl

Download URL meshopt-0.1.1-cp312-abi3-macosx_10_14_x86_64.whl
Size 75.9 kB
Tags CPython 3.12 abi3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
8b807dc9e97d099db05d685a06881510150e32654ea9c11a628a3b10170c538f
BLAKE2b-256 checksum
How to use checksums
fc4e1f6535ed13a01453b95ef3836f877d2579e49f504cb86dd27ccc46e75c80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Security for meshopt 0.1.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.

Full provenance

All 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestation for meshopt-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

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

0.1.1 This release

11 release files Full 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