Metadata-Version: 2.4
Name: pie-client
Version: 0.5.3
Summary: Pie Client
Author-email: In Gim <in.gim@yale.edu>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/pie-project/pie
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: websockets>=15.0
Requires-Dist: msgpack>=0.5.6
Requires-Dist: blake3>=1.0.4
Requires-Dist: typer>=0.9.0
Requires-Dist: toml>=0.10.0

# pie-client

The Python client for pie: `PieClient` speaks to a `pie serve` (or an embedded
`pie-server`) over its WebSocket, and `pie-client` is the command line on top.

```bash
pip install pie-client
pie-client submit text-completion -- --prompt "The capital of France is"
pie-client ping
```

```python
from pie_client import PieClient

client = PieClient("ws://127.0.0.1:8080")
await client.connect()
await client.authenticate("me")
process = await client.launch_process("text-completion", {"prompt": "The capital of France is"})
event, value = await process.recv()
```

`pie-client config init` writes `~/.pie/cli_config.toml` (host, port,
username); `--host`, `--port` and `--username` on any command override it.
