Metadata-Version: 2.4
Name: opengpl-sdk
Version: 0.1.1
Summary: The SDK for OpenGPL policy files — enforcement, authoring, and testing
License: Apache-2.0
Requires-Python: >=3.11
Requires-Dist: click>=8.1
Requires-Dist: fastapi>=0.110
Requires-Dist: jsonschema>=4.20
Requires-Dist: presidio-analyzer>=2.2
Requires-Dist: pyyaml>=6.0
Requires-Dist: spacy>=3.7
Requires-Dist: uvicorn>=0.27
Provides-Extra: dev
Requires-Dist: httpx; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Description-Content-Type: text/markdown

# opengpl-sdk

The Python SDK for [OpenGPL](https://opengpl.org) policy enforcement.

## Install

```bash
pip install opengpl-sdk
```

## Quick start

```python
from opengpl import PolicyEngine

engine = PolicyEngine("policy.gpl")
result = engine.check_input("Hello, what is my balance?")
print(result.passed)  # True or False
```

## CLI

```bash
opengpl validate policy.gpl
opengpl eval policy.gpl --prompt "what is my balance?"
opengpl audit policy.gpl --framework FedRAMP-Moderate
```
