l3d-rs-python
Python bindings for l3d_rs - a Rust library for parsing L3D (Luminaire 3D) files.
Installation
pip install l3d-rs-python
Quick Start
import l3d
# Parse from file
data = l3d.from_file("luminaire.l3d")
# Or from bytes
with open("luminaire.l3d", "rb") as f:
data = l3d.from_bytes(f.read())
# Access the parsed data
print(f"Parts: {len(data['model']['parts'])}")
print(f"Assets: {len(data['file']['assets'])}")
# Each part has a path and transformation matrix
for part in data['model']['parts']:
print(f" {part['path']}: {len(part['mat'])} matrix values")
# Access raw asset data
for asset in data['file']['assets']:
print(f" {asset['name']}: {asset['size']} bytes")
API
l3d.from_file(path: str) -> dict
Parse an L3D file from a file path.
l3d.from_bytes(data: bytes) -> dict
Parse an L3D file from bytes.
Return Value
Both functions return a dictionary with the following structure:
{
"model": {
"parts": [
{
"path": "geometry/lamp.obj",
"mat": [1.0, 0.0, 0.0, 0.0, ...] # 16 floats (4x4 matrix)
},
...
]
},
"file": {
"assets": [
{
"name": "geometry/lamp.obj",
"size": 12345,
"content": b"..." # Raw bytes
},
...
]
}
}
What is L3D?
L3D is a ZIP-based file format for 3D luminaire geometry, used in the lighting industry alongside GLDF. It contains:
structure.xml- Geometry hierarchy with transformation matrices- OBJ files - 3D mesh data
- Optional textures and materials
License
GPL-3.0-or-later
Related
Metadata
Release files for l3d-rs-python 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| l3d_rs_python-0.2.3.tar.gz | 39.1 kB | Details |
Built distributions (wheels)
Total release size: 10.8 MB
Release files / l3d_rs_python-0.2.3.tar.gz
| Download URL | l3d_rs_python-0.2.3.tar.gz |
|---|---|
| Size | 39.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d6cf2afc63619742851bee77921b044598e6b7573c25a86bb0ee0af85c18874
|
|
BLAKE2b-256 checksum How to use checksums |
7c3ca15e0cc682d3c972941fb20e258603ce099f2944618eec2131f22cfd3bac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | l3d_rs_python-0.2.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Linux glibc 2.17+ ARM64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
75d3650084cc28157d8134f0079712b9e3930ed7bf93a7cbb5c1418266073154
|
|
BLAKE2b-256 checksum How to use checksums |
7331455e00533a7c9a603a27bcd637986e6f9fcf70729b0a79e692077ee39ce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | l3d_rs_python-0.2.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Linux glibc 2.17+ ARM64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
32f54ab88c94f1ccb81efd671a3e4c1a7c2beb2278c25048e3d50a3740ec8d79
|
|
BLAKE2b-256 checksum How to use checksums |
dc2788df645d320846746023e83b31569a08ba4f6b32c3e96f0be72f5f5997bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-cp39-abi3-win_amd64.whl
| Download URL | l3d_rs_python-0.2.3-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 958.6 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c89d9fb623fbb2ce37043fdb8c5306a2298048509cbf79ff8f6d0ed4ffe8d82b
|
|
BLAKE2b-256 checksum How to use checksums |
3c818f3b04516ed324d359f8d9a588d2c91b40451347aefab0aef530967cfcc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | l3d_rs_python-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
07c5e1f6056fb90791e284f4e19ec958f1327df5b78ce214d71904c3e4ab08a4
|
|
BLAKE2b-256 checksum How to use checksums |
be243c970497c19374eac38a2022380e7d913306d18f351abfd8b260649ad399
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | l3d_rs_python-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
b1c9d20201f0f951357a9a431268fd66218fd07f46313435ae2752c0b40fffac
|
|
BLAKE2b-256 checksum How to use checksums |
5782adbb8c673bd7d9df263ebd3fd334762fdbb80f727f6c1b5795e08ee07fed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | l3d_rs_python-0.2.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
cecc40d73c132ba36c87ad99b02b7bcc7b8ae59732cf2fcb49e2ba25fc057c0a
|
|
BLAKE2b-256 checksum How to use checksums |
e84f8ff305a7f00982524cd47a7e6920541ce14becd1b350f11eb00ec218f28e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | l3d_rs_python-0.2.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
176ae5ae78e70771b82a0bbe0b4a1e99eb96851542b1d7f6365b9cc995ddf5d0
|
|
BLAKE2b-256 checksum How to use checksums |
32802a2e2298122f50ef8506e77e55d940569141ace98aac6ceb86228ba36b04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | l3d_rs_python-0.2.3-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d6aa28cc10e875640b1b99e26a8450cf49d07d43f6d666c0d89d251c0d5b3a5e
|
|
BLAKE2b-256 checksum How to use checksums |
228317c92a45466867e407bc66614379d9ba2c6d5b5e332864b00ea3b392dce3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency logRelease files / l3d_rs_python-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | l3d_rs_python-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
96ae1dcb4e8710dafae03c0491d764bfebc011b092c997e69a5409f353dacc05
|
|
BLAKE2b-256 checksum How to use checksums |
3b6166691870a0012186c5007717ac9648dff49a3d247f21b389e5b032ac6166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 16, 2025.
Transparency log