semvec/pypi-packages huggingface dataset:
lectes 0.2.0
Add your description here
Requires Python: >=3.13

# lectes

`lectes` is a simple Python scanner generator. It can be used to easily define
scanners with Python code.

**Documentation:** <https://maxcode123.github.io/lectes/>

**Example**

```python
from lectes import Rule, Configuration, Regex, Scanner


config = Configuration(
    [
        Rule(name="FOR", regex=Regex("for")),
        Rule(name="INT", regex=Regex("[0-9]+")),
        Rule(name="ID", regex=Regex("[a-zA-Z][a-zA-Z0-9]*")),
        Rule(name="WHITESPACE", regex=Regex("( )")),
    ]
)

scanner = Scanner(config)

program = "somevar in othervar for 9 let"

for token in scanner.scan(program):
    print(token)
```

## Installation

```sh
pip install lectes
```
materialx-conversion-app 1.39.4
A Flask-based application for MaterialX conversion utilities.
Requires Python: >=3.8

## Python Materialx Conversion Application

This sample package shows the basic components required to connect MaterialX running in Python to a Web client running Javascript in order to run conversion or rendering applications.

<table>
<tr>
<td><img src="https://github.com/kwokcb/materialxWeb/blob/main/flask/converters/images/converter_render.png?raw=true" width=100%>
Server-side rendering using <b>MaterialXView</b></td>
<td><img src="https://github.com/kwokcb/materialxWeb/blob/main/flask/converters/images/converter_usd_gltf_.png?raw=true" width=100%>
Server-side conversion from MaterialX to USD and glTF (top and
bottom respectively) 
</td>
</tr>
</table>

### Dependents

The following packages are installed by default as part of the `pip` installation. 

- `flask` and `flask-socketio`: Python packages for Flask support
- `socket-io`: For Javascript WebSocket support
- `usd-core`: for OpenUSD conversion. Different versions can be downloaded 
explicitly from <a href="https://pypi.org/project/usd-core/" target="_blank">PyPi</a>. The assumed minimum version is 24.11.
- `MaterialX` : Different versions can be downloaded explicitly from <a href="https://pypi.org/project/MaterialX/" target="_blank">PyPi</a>. The assumed minimum version is 1.38.10.

- `gltf_materialx_converter`: `MaterialX glTF Convertor` Python library. Note that this is not available on `PyPi` currently so the <a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter" target="_blank">Github repository</a> must be cloned and the package locally installed.

Rendering depends on the environment variable: `MATERIALX_DEFAULT_VIEWER` being set to the location of the MaterialXView binary. This is part of the MaterialX release distribution as found <a href="https://github.com/AcademySoftwareFoundation/MaterialX/releases" target="_blank">here</a>

### Installation

Either install the package from `PyPi`:

```
pip install materialx_conversion_app
```

or clone the <a href="https://github.com/kwokcb/materialxWeb">materialXWeb</a> repository and install from the root folder:

```
pip install .
```

or 

```
pip install -e .
```
if planning to perform edits on the repository.

### Execution

Run the main package using:
```
materialx_conversion_app
```
or directly with Python:
```
python MaterialXConversionApp.py
```

By default the application is running a local server. To access the client page open the following in a Web browser:
```
http://127.0.0.1:8080
```

### Deployment

This application is not currently deployed on any platform, though it should
run properly with the exception of rendering in a `Render` container.
materialx-gpuopen-app 1.39.4
A Flask-based application for accessing GPUOpen MaterialX materials.
Requires Python: >=3.8

## Python GPUOpen Material Inspector 

This sample package shows the basic components required to connect MaterialX running in Python to a Web client running Javascript in order to access materials on the <a href="https://matlib.gpuopen.com/main/materials/all">AMD GPUOpen material site</a>.

<img src="https://raw.githubusercontent.com/kwokcb/materialxWeb/refs/heads/main/flask/gpuopen/images/extract_material_1.png" alt="Sample extracted material" width="100%">

### Dependents
- Usage of the `materialxMaterials` Python package
- `flask` and `flask-socketio` Python packages
- `socket-io` Javascript library

### Installation

Either install the package from `PyPi`:

```
pip install materialx_gpuopen_app
```

or clone the <a href="https://github.com/kwokcb/materialxWeb">materialXWeb</a>  
repository and install from the root folder:

```
pip install .
```

or 

```
pip install -e .
```
if planning to perform edits on the repository.

### Execution

Run the main package using:
```
materialx-gpuopen-app
```
or directly with Python:
```
python MaterialXGPUOpenApp.py
```

By default the application is running a local server. To access the client page open the following in a Web browser:
```
http://127.0.0.1:8080
```