Metadata-Version: 2.1
Name: gldf_rs_python
Version: 0.2.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Summary: Python 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
Home-Page: https://github.com/holg/gldf-rs-python
Author: Holger Trahe <trahe@mac.com>
Author-email: Holger Trahe <trahe@mac.com>
License: GPL-3.0-or-later
Requires-Python: >=3.6
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Source Code, https://github.com/holg/gldf-rs-python

[![CI](https://github.com/holg/gldf-rs-python/actions/workflows/CI.yml/badge.svg)](https://github.com/holg/gldf-rs-python/actions/workflows/CI.yml)
# gldf-rs-python
Some more descriptive info in the Cargo.toml file
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

