Metadata-Version: 2.4
Name: orchestracto-client
Version: 0.11.1
Summary: CLI and client library for Orchestracto, YT workflow orchestration service
Author: YT team
Project-URL: Documentation, https://docs.nebius.dev/en/yt/orchestracto/deeper_dive/cli
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: pydantic~=2.10
Requires-Dist: PyYAML~=6.0.2
Requires-Dist: requests~=2.32.3

# orchestracto-client

Command-line interface and client library for **Orchestracto** — the workflow
orchestration service of the [YT](https://ytsaurus.tech/docs/en/) platform.

## Installation

```bash
pip install orchestracto-client
```

## CLI

The package installs the `orc` command. Point it at your cluster:

```bash
export YT_PROXY=https://<your-cluster>   # or ORC_URL=https://orc.<your-cluster>
export YT_TOKEN=<your-token>
```

Manage workflows and runs:

```bash
orc workflow update --wf-path //path/to/workflow --from-file workflow.yaml
orc workflow validate --from-file workflow.yaml          # server-side validation
orc run create --wf-path //path/to/workflow
orc run get --wf-path //path/to/workflow --run-id <id>
```

Validate a workflow spec statically — locally, without a server or a token
(YAML and JSON are supported):

```bash
orc workflow validate --static --from-file workflow.yaml
orc workflow validate --static --from-file workflow.json --input-format json
```

Static validation checks the spec shape (required fields, types, allowed values)
and its consistency (step dependency graph, output references, timeouts, secret
reference formats). Errors are printed with paths to the offending fields; the
exit code is non-zero if the spec is invalid, which makes the command convenient
for CI pipelines.

## Library

```python
from orc_client.client import OrcClient
from orc_client.validation import validate_workflow_dict

errors = validate_workflow_dict(spec_dict)   # static validation, no network

client = OrcClient(orc_url="https://orc.<your-cluster>", yt_token="<your-token>")
client.update_workflow(workflow_path="//path/to/workflow", workflow=spec_dict)
```
