Skip to main content

Python bindings for GLDF (General Lighting Data Format) parsing library

Project description

CI PyPI

gldf-rs-python

Python bindings for the gldf-rs GLDF parsing library.

Overview

gldf-rs-python provides Python access to GLDF (General Lighting Data Format) file parsing and manipulation. It wraps the high-performance Rust gldf-rs library using PyO3/maturin.

GLDF files are ZIP containers containing product.xml definitions along with embedded images, photometry files (Eulumdat/IES), and L3D 3D models.

Learn more at: https://gldf.io

Installation

pip install gldf-rs-python

Quick Start

import gldf_rs_python

# Load GLDF and convert to XML
xml = gldf_rs_python.gldf_to_xml('path/to/file.gldf')

# Load GLDF and convert to JSON
json = gldf_rs_python.gldf_to_json('path/to/file.gldf')

# Round-trip: JSON back to XML
xml2 = gldf_rs_python.xml_from_json(json)

assert xml == xml2  # True

Development

# Create virtual environment
python -m venv .venv
source .venv/bin/activate

# Install maturin
pip install maturin

# Build and install in development mode
maturin develop

# Build release wheel
maturin build --release

Live Demo

Try the WASM-based GLDF viewer at: https://gldf.icu

Related Crates

Crate Description
gldf-rs Core Rust library
gldf-rs-wasm WebAssembly viewer application
l3d-rs L3D 3D model format parsing
eulumdat Eulumdat/LDT photometry parsing

Release Notes

0.3.1

  • Updated to gldf-rs 0.3.1 with quick-xml parser
  • Part of gldf-rs monorepo restructure

0.2.0

  • Support for URL file types
  • Support for BOM-encoded UTF8 product.xml

License

MIT License

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

gldf_rs_python-0.3.1.tar.gz (54.9 kB view details)

Uploaded Source

Built Distributions

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

gldf_rs_python-0.3.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

gldf_rs_python-0.3.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

gldf_rs_python-0.3.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

gldf_rs_python-0.3.1-cp37-abi3-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.7+Windows x86-64

gldf_rs_python-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ x86-64

gldf_rs_python-0.3.1-cp37-abi3-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

gldf_rs_python-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

gldf_rs_python-0.3.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

gldf_rs_python-0.3.1-cp37-abi3-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

gldf_rs_python-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file gldf_rs_python-0.3.1.tar.gz.

File metadata

  • Download URL: gldf_rs_python-0.3.1.tar.gz
  • Upload date:
  • Size: 54.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gldf_rs_python-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4ff88d0aec0966a69925cb970e7f6111fcdccbb1b040d49df02b68e4edb2205e
MD5 fc9e05e255dbfb44ec0c574e8792e917
BLAKE2b-256 b343f16a3af0d35d532c518e1c290eebb5d22c1ecc94e356447e1139f8e3e274

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1.tar.gz:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7ac9e5627e4cb146ca20d0b5eaba0d0db4c7e943143459ba47fd9ca04cc1b596
MD5 5f6a9a5c459f0530c5590409d4fd1507
BLAKE2b-256 e865d0afdc6cb5dc3639c683e706a7efc67bdb540c12abbc1a1d28f347eedbb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2c5277dd3732ce7b9a474772ab2a4ba143881dea74409380046108ae60420146
MD5 a5a41e31cf6d9e0e3a4b98c916262a6f
BLAKE2b-256 f420dbd3f23710e803113a5d3cb5bf8cec82fa7538108537069c8071f8c6163b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7df219e5b8d3f8814ecd57ea025f40b77a74e1b16db422270f4f2d645f408e85
MD5 d9e960c27c5c1da46b5e8d0697d4264a
BLAKE2b-256 9aef34352c1901d2059c2f8481a09b1aeb17626225300bacb5cbfd8e9cac0be0

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fb3643a69515c31493eea62b56e158158ebe001e04003508411ae6eb9edb02cc
MD5 283c7dccf7b048ab66b00bdff1ac61ad
BLAKE2b-256 744c5c9be00f244c08561764e6f6c710c6f2db3c29c25f25c2437d1106f018d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dcbd6dde2e3f0de314136b37b2e87e926fcb0e3f276dd5c5f91006ddc6d2d12b
MD5 913dd5b2eb6b116149d3b353ce80e1ed
BLAKE2b-256 5d8d596ae78fe1bdc6f7204b6fb8e44345514fe192d2757dee3a6175576bcae4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-cp37-abi3-win_amd64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ab5cf6f4282edab0a95eda03ef4ed6df76c3c03a3227ec1ad7b547c211bb2e83
MD5 49ed10cc4f2b809d5939f8f9e3d44543
BLAKE2b-256 dfd07e7d732cd04fc0316ba54b6c14ece56474404dd49ac019a1df3a671f3993

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-cp37-abi3-musllinux_1_2_x86_64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 653fdb5e854c137655214004c98ca4983c082ff5b7b6676d5491496636b925bb
MD5 b4d8df67190f1d6ed762a50fcdbba444
BLAKE2b-256 d0163c97a8095b69e43b3595b106bbbe33577181bd0a79e7a1fc1759b7a2814c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-cp37-abi3-musllinux_1_2_aarch64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7468fc0b184867b546cb2f8c76ae64d2a69a1fea5e64ee9602cb8ca1f46223a3
MD5 5f8664f5d9b1617552eb15eab07da401
BLAKE2b-256 c37c987f479a38d85ed22feeee54d79a6078f93757ce03e147686f05c00bd59b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 708865bd52c21c60971901dfdae2df3ce125e92f014728fc70c913089f58f42d
MD5 4dc53850f68f52fb3a7c3f08de9b47fb
BLAKE2b-256 f3a737a509f06448085c33638b4fad77ddc82692cd8133141b9ae1adbcde5efb

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a5e49e7fb1f608ded825426853e18979348bc134602e19b0fe97fa1b720c9bd
MD5 a6dad5bf86447c0fd50511c532781d27
BLAKE2b-256 54dbd63264d535f164ceb9a7b452cece68fe24077ef85c5197abb50276fa4b8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-cp37-abi3-macosx_11_0_arm64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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

File details

Details for the file gldf_rs_python-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for gldf_rs_python-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 445af33e39255079ec0ba7e5f0f65bd6009ae06a03a433fd3872d28c6ef0b4d3
MD5 f83a7acf13bbe24d61b7fbc3c4b61a2a
BLAKE2b-256 4e859b10294ce17a982506405e34a499b6bd05357b3004681be0b072c14a002e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gldf_rs_python-0.3.1-cp37-abi3-macosx_10_12_x86_64.whl:

Publisher: python-publish.yml on holg/gldf-rs

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