Metadata-Version: 2.4
Name: pyplines
Version: 2026.8.1a11
Summary: core pyplines library and sdk
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: packaging>=25.0
Requires-Dist: pydantic>=2.12.5
Provides-Extra: dataframe
Requires-Dist: polars<2,>=1.38; extra == "dataframe"

# Pyplines Python Library

The Pyplines Python library provides the Function author SDK, invocation shim,
and Function Package tooling used by Pyplines runtime and development images.

```python
from pyplines import Context, Input, Output


class GreetingInput(Input):
    name: str


class GreetingOutput(Output):
    message: str


def handler(i: GreetingInput, ctx: Context) -> GreetingOutput:
    ctx.log.info("Building greeting", name=i.name)
    return GreetingOutput(message=f"Hello, {i.name}!")
```

Function projects use `pyplines.pkg.function.build_backend` and declare exactly
one handler under `[tool.pyplines.function]`. The Function development container
calls `python -m pyplines.pkg.function` to check projects and build hermetic
Function Package archives.

The public author API is:

```python
from pyplines import ArtifactRef, Context, Error, Input, Output
```
