Skip to main content

Convert LDraw files to glTF (.glb/.gltf).

Project description

ldraw2mesh

A utility for converting LEGO (LDraw) files to glTF (.glb/.gltf).

Built on ldr_tools_blender, but designed to be a standalone tool without Blender dependencies.

Installation

uv add ldraw2mesh       # with uv
pip install ldraw2mesh  # with pip

LDraw Parts Library

An LDraw parts library is required to process LDraw files. Download it from https://www.ldraw.org/.

Set the LDRAW_LIBRARY_PATH environment variable to the path of your LDraw library:

export LDRAW_LIBRARY_PATH=/path/to/ldraw

Usage

Python API

from ldraw2mesh import convert

# Convert an LDraw file to glTF
convert("model.ldr", "model.glb")

Command-line

ldraw2mesh model.ldr -o model.glb

Contributing

To build from source, you need:

  • Rust ≥ 1.85
  • uv

Clone the repository and run:

uv run maturin develop --uv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ldraw2mesh-0.1.0.tar.gz (62.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ldraw2mesh-0.1.0-cp314-cp314-win_amd64.whl (864.1 kB view details)

Uploaded CPython 3.14Windows x86-64

ldraw2mesh-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

ldraw2mesh-0.1.0-cp314-cp314-macosx_11_0_arm64.whl (896.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

ldraw2mesh-0.1.0-cp313-cp313-win_amd64.whl (863.8 kB view details)

Uploaded CPython 3.13Windows x86-64

ldraw2mesh-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

ldraw2mesh-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (896.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

ldraw2mesh-0.1.0-cp312-cp312-win_amd64.whl (864.6 kB view details)

Uploaded CPython 3.12Windows x86-64

ldraw2mesh-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

ldraw2mesh-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (896.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

ldraw2mesh-0.1.0-cp311-cp311-win_amd64.whl (866.0 kB view details)

Uploaded CPython 3.11Windows x86-64

ldraw2mesh-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ldraw2mesh-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (899.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

ldraw2mesh-0.1.0-cp310-cp310-win_amd64.whl (866.0 kB view details)

Uploaded CPython 3.10Windows x86-64

ldraw2mesh-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ldraw2mesh-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (899.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file ldraw2mesh-0.1.0.tar.gz.

File metadata

  • Download URL: ldraw2mesh-0.1.0.tar.gz
  • Upload date:
  • Size: 62.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ldraw2mesh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b8058bcc66a8216666e8248f4436643cc53432133ed371f1587b89480f72a647
MD5 c4ae3e370a6ab9622128e4112f65d9db
BLAKE2b-256 654dbc3914cede5e9c295d997125ea753dbbad067f5a46475cb46120e1ff2601

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0.tar.gz:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: ldraw2mesh-0.1.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 864.1 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ldraw2mesh-0.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d3548631627389c4c018750a4a1d87090f02c0c49838f73fad4c5a5bc3ba4561
MD5 fc2d4a193a870947e6692bb1f2a2febb
BLAKE2b-256 894b4318794dbed08478c377973c02c49e7b2de04da51da06dac0d147efd3c72

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp314-cp314-win_amd64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2eb451f8e56a5b661ec7bf6a7ad5f9147aa26876164f4382d61f838a5f7767bf
MD5 b01196e2dd7c4b89fba5a0b2e3e3d7c4
BLAKE2b-256 c507dc59f5499c24b136dd3281dec270a0efe3ae1be9087531f3f5a88921de3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ae178c17663decb0d0e2766cca577c9f41046599f2b243a58d84aeefc7cf658
MD5 dc87c279a144d84dd4fcd1b80a6981e1
BLAKE2b-256 f36169aacbfae0ab5b83b4b8859dea43ef3f4b8c8c286b5047ebbdd3703b1bee

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: ldraw2mesh-0.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 863.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ldraw2mesh-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f4e5dcdd382532e77e96787d8ab6c2b4101891b4289c61ad3cd265bc0309f82e
MD5 7ca7869651d4316524161ce14f8f25dd
BLAKE2b-256 08dc5ad4af1bead65e68cdc76963054b454b396e61cd034dea6ca2a2af1f2ae3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp313-cp313-win_amd64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 701fafd9f2dc4281476970dfaa26f5d4368538efb85289240462a7b0aa165ec8
MD5 0f04234567426ba6385e772bfb06a0eb
BLAKE2b-256 7edcaddf88c22e4b4a5e287dfb4b0be1b96b2b61bef818c6240eefef83ab340c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f2577ae3dcbe94ade93b138d87875c16ee2ff3a146d19aa7f24cf5707615fcc
MD5 d9783e484f9b3c8c38700cb85fc8a507
BLAKE2b-256 ea4217d8f2a6fc8955d609209879ab922b24708cd719c0e6bc8250e826172eba

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: ldraw2mesh-0.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 864.6 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ldraw2mesh-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 15534cd752e4a61a6b08c6d6f554d0e62ab4ca893fa5a7f1ca886acee2017cdd
MD5 c0078de17e947cf6e785254970ed3bc4
BLAKE2b-256 9c9cdd07c915315aef39220f8de4d9d1f3ab40b791d2c7e2dd3c0b11f5a84b10

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 600f1237ee556c68bdb7d8de1191d26b9bca60f549ab9743a5b5cbf1e032a68d
MD5 5afaf7249fae2de9cd3f43219e96d43b
BLAKE2b-256 d2f508442527f76660cc83b613e5478dc9d04db2535a554fd74df1a2d6e1beea

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cdddf6ee9afb9f182927cfbb1c708c078919c06ee3967745a868ade97e2435f9
MD5 412cd19b217b4090fe8ed301e2385544
BLAKE2b-256 49ce40c6e1095524a3233fb718bb9f64950bd79331f50c0805a64d7ab91decf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: ldraw2mesh-0.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 866.0 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ldraw2mesh-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b308867c0f8a4453a49657582202f2bee933d1b3144acf5eedbb487ccc020bdf
MD5 ae59d9b54f79f1216a925e1452863280
BLAKE2b-256 b22fb51e9a93295269e0842b54c50d563183c3f39c7003c2fec642c0a2850759

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65439a620f888dc3fdd78d69696c07b8e3eca0395fc776af512e13aaa8302626
MD5 f4d2ed2409db96756f636446267ac933
BLAKE2b-256 b9384fe46be1ae488699e22becd131631686e0297b9882e011dbb18943ca8a7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c43062ab0b6e20cbdc31627e70ef21d6c6e52a8d984d6ae800069b6f595c076
MD5 187b369440579346dffc02a2eab81f1a
BLAKE2b-256 b5f89e35e9c6c88c13f8e8a4284c18f44b15816d93b17f45223a4fdd30c5af05

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: ldraw2mesh-0.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 866.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ldraw2mesh-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4e93a30090c64f5d489477301c858c75642a1f4be769c42ea0f4c850ceaa5630
MD5 41e40f3f8d3f4f0ba85fe61006e1efad
BLAKE2b-256 dc1b5733bd677b420b8f4f360e9a8d2b215739001595d29e4dad5c9f526e1b49

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp310-cp310-win_amd64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 89edef898087068a66bf097bf69564f8d32db4249acff10830ca2685e7a7c6cb
MD5 f0d89191fb0b43aa708e694f2bb427f3
BLAKE2b-256 c24e694f9167152f9e3fc6b0d917c4b8161c7f856e795310f9fb2bdd9bd1eb44

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ldraw2mesh-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ldraw2mesh-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2046885115ff4b6a0d4b4b2552711ed9f43b8e9438fc3f8d64e2ea323c9b5a0
MD5 41352bdac8097abce4f7806cf0bdd683
BLAKE2b-256 c867993629fb24302304ab3ddd82b27c9e7635cd8d324be9af10eae412e69465

See more details on using hashes here.

Provenance

The following attestation bundles were made for ldraw2mesh-0.1.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on AvaLovelace1/ldraw2mesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page