Metadata-Version: 2.4
Name: blekline-client
Version: 0.4.1
Summary: Python SDK for Blekline ingress control plane
Project-URL: Repository, https://github.com/Blekline/blekline-oss
Project-URL: Documentation, https://app.blekline.com/docs/sdk/python
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Provides-Extra: dev
Requires-Dist: httpx>=0.27.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# @blekline/client (Python)

Enterprise Python SDK for the Blekline ingress control plane.

## Install

```bash
pip install -e packages/client-python
```

## Usage

```python
from blekline_client import BleklineClient

client = BleklineClient(
    workspace_token="ws_...",
    base_url="https://app.blekline.com",
    client_surface="sdk",
)

result = client.mask(text="Contact me at alice@corp.com", platform="Python")
print(result["maskedText"])

decision = client.enforce_tool_call(
    tool_name="run_command",
    arguments={"cmd": "curl https://api.example.com"},
)
print(decision["action"])
```

See OpenAPI spec: `packages/contracts/openapi.yaml`.

## Tests

Requires **Python 3.10+**.

```bash
python -m pip install --upgrade pip
pip install -e ".[dev]"
pytest tests -q
```

From repo root: `pnpm test:python`
