Metadata-Version: 2.1
Name: mxslcxx
Version: 0.1.3
Summary: Python bindings for mxslc++
Author-Email: Jacob Thorn <jakethorn1.1@gmail.com>
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Project-URL: Homepage, https://github.com/jakethorn/ShadingLanguageX
Project-URL: Repository, https://github.com/jakethorn/ShadingLanguageX
Project-URL: Issues, https://github.com/jakethorn/ShadingLanguageX/issues
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# mxslc++

This package contains the Python bindings for the ShadingLanguageX C++ compiler. See the
[User Guide](https://github.com/jakethorn/ShadingLanguageX/blob/main/docs/mxslc++/UserGuide.md) for information on how to get started and the
[Language Specification](https://github.com/jakethorn/ShadingLanguageX/blob/main/docs/mxslc++/LanguageSpecification.md)
for documentation on what language features the compiler supports.

```
pip install mxslcxx
```

OS: Linux and Windows.  
Python version: 3.9+.

```python
import mxslc
mtlx = mxslc.compile_string_to_string("float f = randomfloat() + 1.0;")
print(mtlx)
```
```xml
<?xml version="1.0"?>
<materialx version="1.39">
  <randomfloat name="node1" type="float" />
  <add name="node2" type="float">
    <input name="in1" type="float" nodename="node1" />
    <input name="in2" type="float" value="1" />
  </add>
</materialx>
```

Note that the package name is mxslcxx, but the module is called mxslc to be consistent with the old compiler. See below for the API documentation for the Python bindings.