Metadata-Version: 2.5
Name: raven-core
Version: 1.0.1
Summary: RAVEN FastAPI control plane
Project-URL: Homepage, https://github.com/evinbrijesh/RAVEN
Project-URL: Documentation, https://github.com/evinbrijesh/RAVEN/blob/main/apps/api/README.md
Project-URL: Repository, https://github.com/evinbrijesh/RAVEN.git
Project-URL: Issues, https://github.com/evinbrijesh/RAVEN/issues
Author-email: RAVEN Security Team <security@raven-ai.dev>
License-Expression: MIT
License-File: LICENSE
Keywords: ai-agent,fastapi,llm-security,owasp-llm,red-teaming,sarif
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security
Requires-Python: >=3.12
Requires-Dist: fastapi>=0.115
Requires-Dist: httpx>=0.27
Requires-Dist: pydantic-settings>=2.5
Requires-Dist: pydantic>=2.9
Requires-Dist: uvicorn[standard]>=0.30
Description-Content-Type: text/markdown

# raven-core

Shared domain models, persistence layer, and FastAPI control plane for
[RAVEN](https://github.com/evinbrijesh/RAVEN), the security regression
system for LLM applications.

Most users do not install this package directly. It is published as a
dependency of [`raven-test`](https://pypi.org/project/raven-test/), the
developer CLI, and it also powers the RAVEN API server and web dashboard
when self-hosting the full platform.

## What it contains

- `raven_core.domain`: typed Pydantic models for scans, findings,
  verdicts, hardening proposals, and the canonical report document
- `raven_core.api`: FastAPI routers for scans, findings, policies,
  regressions, and reports, plus Server-Sent Events streaming
- `raven_core.application`: scan orchestration, hardening approval flow,
  and the report pipeline (collector, assembler, redaction, JSON /
  Markdown / SARIF 2.1.0 renderers)
- `raven_core.infrastructure`: SQLite repositories and queue, local
  artifact storage, event bus
- `raven_core.security`: token-derived project authorization, SSRF
  filtering for external targets, secret/PII redaction

## Install

```bash
pip install raven-core
```

Or let `raven-test` pull it in automatically:

```bash
pip install raven-test
```

## Run the API server

```bash
uvicorn raven_core.main:app --host 0.0.0.0 --port 8000
```

Configuration is via `RAVEN_*` environment variables; see
[`raven_core/config.py`](https://github.com/evinbrijesh/RAVEN/blob/main/apps/api/raven_core/config.py)
for the full settings schema.

## Requirements

Python 3.12+, FastAPI, Pydantic v2, SQLite (no external services required
for local operation).

## License

MIT
