raven-core
Shared domain models, persistence layer, and FastAPI control plane for 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, 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 documentraven_core.api: FastAPI routers for scans, findings, policies, regressions, and reports, plus Server-Sent Events streamingraven_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 busraven_core.security: token-derived project authorization, SSRF filtering for external targets, secret/PII redaction
Install
pip install raven-core
Or let raven-test pull it in automatically:
pip install raven-test
Run the API server
uvicorn raven_core.main:app --host 0.0.0.0 --port 8000
Configuration is via RAVEN_* environment variables; see
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
Metadata
Release files for raven-core 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| raven_core-1.0.2.tar.gz | 80.9 kB | With provenance | Details for raven_core-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| raven_core-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for raven_core-1.0.2-py3-none-any.whl |
Total release size: 162.4 kB
Release files / raven_core-1.0.2.tar.gz
| Download URL | raven_core-1.0.2.tar.gz |
|---|---|
| Size | 80.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a954dd4167bc018676d96e3c5fb9077a25ae7fa8bfbc609a208b67a34151761
|
|
BLAKE2b-256 checksum How to use checksums |
6f3357797fc51ed75189a4c6c4274f27e3de535a9d2343338889c0bf833447d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / raven_core-1.0.2-py3-none-any.whl
| Download URL | raven_core-1.0.2-py3-none-any.whl |
|---|---|
| Size | 81.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9785f26817a1c61577e3699a082246369f37035e89a35d3a6be556e774becff
|
|
BLAKE2b-256 checksum How to use checksums |
83ee61a5d084ad288743c3fd84ae3ebbc81a52be44810ff9d55afcfeea0ecb3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for raven-core 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for raven_core-1.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.