Metadata-Version: 2.1
Name: python-compute-module
Version: 0.2.0
Summary: 
Author: Your Name
Author-email: you@example.com
Requires-Python: >=3.12,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: aiofiles (>=23.2.1,<24.0.0)
Requires-Dist: h2 (>=4.1.0,<5.0.0)
Requires-Dist: httpx (>=0.27.0,<0.28.0)
Requires-Dist: pydantic (>=2.7.2,<3.0.0)
Description-Content-Type: text/markdown

## Python Compute Module

Simple implementation of the Compute Module interface. Function definitions are automatically inferred using pydantic, allowing you to automatically register functions at runtime.

### Basic Usage

```python
from python_compute_module.app import ComputeModuleApp


app = ComputeModuleApp()


@app.function
def add(a: int, b: int) -> int:
    return a + b


@app.function
def multiply(a: int, b: int) -> int:
    return a * b


@app.function
def greet(a: str) -> int:
    return f"Greetings, {a}!"


if __name__ == '__main__':
    app.run()
```

