Metadata-Version: 2.5
Name: rowlab-python-sdk
Version: 0.1.0
Summary: Typed Python client for the rowlab API: label, compare and export tabular data from code
Project-URL: Homepage, https://rowlab.dev
Project-URL: Documentation, https://docs.rowlab.dev/agents/python/
Project-URL: Source, https://github.com/row-and-reason/rowlab
Author-email: Row & Reason <support@rowandreason.com>
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: httpx>=0.28
Requires-Dist: pydantic<3,>=2.12
Provides-Extra: notebook
Requires-Dist: marimo>=0.24; extra == 'notebook'
Requires-Dist: polars>=1; extra == 'notebook'
Provides-Extra: polars
Requires-Dist: polars>=1; extra == 'polars'
Description-Content-Type: text/markdown

# rowlab-python-sdk

A typed Python client for [rowlab](https://rowlab.dev): upload a dataset, label it with models or
by hand, then export and compare the answers, from a script or a notebook.

```sh
pip install 'rowlab-python-sdk[polars]'
```

```python
from rowlab_sdk import Client, Task

with Client() as rl:  # app.rowlab.dev with ROWLAB_API_KEY, or ROWLAB_API_URL=http://localhost:8000
    ds = rl.datasets.upload(df, name="reviews")
    task = Task(template="Is this review negative? {{review}}", type="yes_no")
    run = rl.runs.wait(rl.runs.create(ds.id, task).id)
    answers = rl.datasets.export(run.dataset_id)
```

Python 3.11 or newer. The guide is at
[docs.rowlab.dev/agents/python](https://docs.rowlab.dev/agents/python); the code is in
[row-and-reason/rowlab](https://github.com/row-and-reason/rowlab/tree/main/sdk), Apache-2.0.
