Metadata-Version: 2.1
Name: dynos-ddl
Version: 0.3.0
Summary: The DYNOS Domain Language: parser, evaluator, and REPL for DYNOS
Author: Chris Thierauf
License: Apache-2.0
Project-URL: Homepage, https://dynosplan.com
Project-URL: Source, https://git.whoi.edu/cthierauf/dynos_public
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dynos-core <0.4,>=0.3.0
Requires-Dist: lark
Provides-Extra: dev
Requires-Dist: pytest ; extra == 'dev'
Provides-Extra: repl
Requires-Dist: prompt-toolkit ; extra == 'repl'
Requires-Dist: requests ; extra == 'repl'
Requires-Dist: rich ; extra == 'repl'

# dynos-ddl

The DYNOS Domain Language (DDL): an operator surface for the DYNOS
architecture. Parser, evaluator, type-checker, source renderer, and
(via the `[repl]` extra) an interactive REPL plus protocol client.

## Install

From PyPI. Minimal install (parser, evaluator, render; REPL and networking
come with the extra below):

```
pip install dynos-ddl
```

With the operator console + protocol-mode REPL:

```
pip install 'dynos-ddl[repl]'
```

The `[repl]` extra pulls in `prompt_toolkit`, `requests`, and `rich`.

## Public surface

```python
from dynos_ddl import parse, evaluate, Environment, Result, MockEvalBackend
from dynos_ddl.errors import DDLError
from dynos_ddl.ast import Program  # AST node types
```

## CLI

When installed alongside `dynos-client`, this package contributes the
`dynos repl` and `dynos ddl` subcommands via the `dynos.cli` entry-point
group. With no flags, `dynos repl` uses your `dynos login`: it talks to your
default session on the hosted backend (create one with `dynos session create`).
`dynos repl --connect <url>` talks to a backend at a URL you were given, with
no login; `dynos repl --mock` runs offline against an in-memory mock for
exploring the language. `dynos ddl` takes the same options.

Current limits: reaching a hosted session needs `dynos-ddl` 0.3.0 or later;
earlier versions only reach direct backends.
