Metadata-Version: 2.4
Name: plynx-sdk
Version: 2.0.0
Summary: PLynx SDK: op authoring API and process wire types. Standard library only.
Keywords: plynx,sdk,workflow,dag,pipeline
Author: Ivan Khomyakov
License-Expression: Apache-2.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.11
Project-URL: Homepage, https://github.com/plynx-team/plynx
Project-URL: Repository, https://github.com/plynx-team/plynx
Project-URL: Issues, https://github.com/plynx-team/plynx/issues
Project-URL: Changelog, https://github.com/plynx-team/plynx/blob/master/CHANGELOG.md
Project-URL: Documentation, https://github.com/plynx-team/plynx/blob/master/docs/guides/author_pack.md
Description-Content-Type: text/markdown

# plynx-sdk

Zero-dependency Python SDK for authoring [PLynx](https://pypi.org/project/plynx/) operations and Node Packs. Standard library only.

## Installation

Add `plynx-sdk` as a dependency of your Node Pack:

```bash
uv add plynx-sdk
```

Or install with pip:

```bash
pip install plynx-sdk
```

## Quick Example

```python
from typing import TypedDict
from plynx_sdk import Op, checkpoint, op


@op(title="Greet")
def greet(name: str) -> str:
    return f"Hello, {name}!"


class PickOption(Op):
    TITLE = "Pick Option"

    class Outputs(TypedDict):
        choice: str

    def run(self, question: str) -> Outputs:
        answer = checkpoint(question, options=["yes", "no"])
        return {"choice": answer}
```

## Documentation

- [Guide: Authoring a Node Pack](https://github.com/plynx-team/plynx/blob/master/docs/guides/author_pack.md)
- [PLynx Repository](https://github.com/plynx-team/plynx)
- [Changelog](https://github.com/plynx-team/plynx/blob/master/CHANGELOG.md)

## License

Apache-2.0
