gldf_rs_python

Crates.iogldf_rs_python
lib.rsgldf_rs_python
version0.2.0
sourcesrc
created_at2023-09-01 10:24:12.72814
updated_at2023-09-01 10:24:12.72814
descriptionPython Module of the GLDF (General Lighting Data Format) parser and writer for Rust, specifically for the Rust/WASM target as such designed for JSON format
homepagehttps://github.com/holg/gldf-rs-python
repositoryhttps://github.com/holg/gldf-rs-python
max_upload_size
id960808
size91,607
Holger Trahe (holg)

documentation

https://docs.rs/gldf-rs/

README

CI

gldf-rs-python

Added the build.rs mostly bcs of macOS v0.2.0 New: support for file types of url support for BOM encoded UTF8 product.xml

WIP python module and binding for the gldf-rs rust library
the github workflow shall make sure all the wheels are build
and published to pypi

install via pip:

pip install gldf-rs-python

create venv and maturin

maturin develop

import gldf_rs_python

xml = gldf_rs_python.gldf_to_xml('tests/data/test.gldf')

json = gldf_rs_python.gldf_to_json('tests/data/test.gldf')

xml2 = gldf_rs_python.xml_from_json(json)

xml == xml2

=> True

Commit count: 38

cargo fmt