Metadata-Version: 2.4
Name: kredit
Version: 0.7.0
Summary: Financial risk management SDK for AI agents
License-Expression: MIT
Requires-Python: >=3.10
Requires-Dist: httpx>=0.24.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: respx>=0.20; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

# Kredit

Risk management SDK for AI agents. Wallets, credit scoring, and spend authorization.

## Install

```bash
pip install kredit
```

## Quick Start

```python
from kredit import Kredit

kredit = Kredit(api_key="kr_live_...")

# Risk check before an API call
result = kredit.check(agent_id="bot-01", action="serp_api.search", estimated_cost=1)

if result.allow:
    # do the API call...
    kredit.report(agent_id="bot-01", txn_id=result.transaction_id, outcome="success", actual_cost=1)
```

## Docs

https://kredit.sh/docs
