Metadata-Version: 2.4
Name: mizara
Version: 0.1.1
Summary: Mizara — programmable authorization layer for AI actions
License-Expression: Apache-2.0
Project-URL: Repository, https://github.com/getmizara/mizara-core-python
Keywords: ai-agents,authorization,policy-engine,access-control,llm,agent-security
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# mizara

Authorization layer for AI agents. Evaluates whether an agent action should
proceed — before it executes — against a policy you define. Returns a signed
decision receipt for every call.

```bash
pip install mizara
```

```python
from mizara import create_mizara_client

mizara = create_mizara_client(policy_path="./policy.json")

result = mizara.authorize(
    actor={"id": "agent_support_v4", "type": "autonomous_agent", "framework": "langgraph"},
    action={"name": "execute_refund", "risk_profile": "high_irreversible"},
    resource={"type": "monetary_transaction", "id": "tx_99210", "attributes": {"amount": 75, "currency": "USD"}},
    context={"client_id": "acme_corp", "target_jurisdiction": "EU"},
)

# result.status  -> "ALLOW" | "DENY" | "REDACT" | "RE_ROUTE"
# result.cryptographic_receipt -> CryptographicReceipt(id, hash, signature)
```

Policies are plain JSON — no Rego, no Cedar syntax. See the
[TypeScript SDK](https://github.com/getmizara/mizara-core) for policy format docs.

## License

Apache-2.0
