Metadata-Version: 2.4
Name: iris-litellm
Version: 0.1.0
Summary: IRIS compliance intelligence from LiteLLM config and proxy — keep your router, add governance
Author-email: IRIS Platform <sdk@iris.ai>
License: Apache-2.0
Project-URL: Homepage, https://iris-security.github.io/iris-sdk/
Project-URL: Repository, https://github.com/IRIS-Security/iris-sdk
Project-URL: Documentation, https://iris-security.github.io/iris-sdk/getting-started.html
Project-URL: Issues, https://github.com/IRIS-Security/iris-sdk/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: iris-security-sdk>=0.2.16
Requires-Dist: httpx>=0.27
Requires-Dist: pyyaml>=6.0
Provides-Extra: live
Requires-Dist: litellm<2,>=1.40; extra == "live"
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"

# iris-litellm

Derive an IRIS **WorkloadProfile** from your [LiteLLM](https://github.com/BerriAI/litellm) deployment — static config or live proxy.

**Keep your LiteLLM router. IRIS reads what you're running and tells you which regulations apply — with tamper-evident proof.**

## Install

```bash
pip install "iris-litellm[live]"
```

## Quickstart — static config

```python
from iris_litellm import profile_from_litellm_config

profile = profile_from_litellm_config("./litellm.config.yaml")
```

## Quickstart — live proxy

```python
from iris_litellm import profile_from_litellm_proxy

profile = profile_from_litellm_proxy("https://litellm.internal", api_key="...")
```

## IRIS Cloud bridge

```bash
export IRIS_API_KEY=your-token
python examples/governed_litellm.py --config ./litellm.config.yaml --push
```

Optional POST to `/intelligence/profile/scan` when `IRIS_API_KEY` is set.

## See also

- [Integrations docs](https://iris-security.github.io/iris-sdk/integrations.html)
- [Compliance Intelligence](https://iris-security.github.io/iris-sdk/compliance-intelligence.html)
