Metadata-Version: 2.3
Name: pctx0
Version: 0.1.0
Summary: Python client of pctx0
Author: Adam
Author-email: Adam <hello@pctx0.com>
Requires-Dist: httpx>=0.28.1
Requires-Python: >=3.11
Description-Content-Type: text/markdown

### Pctx0 Client

Python client for the pctx0 API.

#### Install

```bash
uv add pctx0
```

#### Usage

```python
from pctx0 import knowledge

with knowledge(api_key="your-api-key") as client:
    client.list()
```

Or use the full client when you need multiple API areas:

```python
from pctx0 import Pctx0Client

with Pctx0Client(api_key="your-api-key") as client:
    client.health()
    client.knowledge.list()
```

#### Development

```bash
uv sync
uv format --check --preview-features format
uv run pytest
```

Tests start a local mock API server automatically. To run against your own local pctx0 server:

```bash
PCTX0_BASE_URL=http://127.0.0.1:8000 PCTX0_API_KEY=your-api-key uv run pytest
```

#### Publish

```bash
uv build
uv publish --token "$UV_PUBLISH_TOKEN"
```
