Metadata-Version: 2.5
Name: dryv-compiler
Version: 0.1.0
Summary: Runnable Python authoring compiler/provider for Dryv
License: Apache-2.0
Requires-Python: >=3.11
Requires-Dist: dryv-author<0.2,>=0.1.0
Requires-Dist: packaging<26,>=24
Description-Content-Type: text/markdown

# dryv-compiler

Compiles your `dryv-author` definitions into Dryv's canonical Runtime IR. You normally never call it yourself: the `dryv` CLI and the VS Code extension run it for you.

## Install

```bash
uv add --dev dryv-author dryv-compiler      # or: pip install dryv-author dryv-compiler
npm install -g @dryvcode/cli
```

Requires Python 3.11+.

## Use

1. Write definitions with [`dryv-author`](https://pypi.org/project/dryv-author/) and expose a `dryv.app(...)` in `dryv.py`.
2. Point `dryv.yaml` at it (`type: python`) and run `dryv build`, or `dryv validate` to also check against the engine.

To check the setup by hand:

```bash
dryv-py doctor ./dryv.py
```

This release works with `dryv-author` `>=0.1.0,<0.2`.

## Troubleshooting

| Symptom | Fix |
| --- | --- |
| Author missing or incompatible | `uv add --dev -U dryv-author dryv-compiler` |
| `DRYV_TRUST_REQUIRED` | Run `dryv trust` once in the project |
| Compile error | `dryv-py compile ./dryv.py` shows it with source locations |

Docs: https://dryv.alidantech.org/docs · Built-in guides: `dryv docs authoring`
