Skip to main content

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 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

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for raven-core 1.0.1
File Size Uploaded Provenance Actions
raven_core-1.0.1.tar.gz 80.9 kB With provenance Details for raven_core-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for raven-core 1.0.1
File Interpreter ABI Platform Actions
raven_core-1.0.1-py3-none-any.whl Python 3 none any Details for raven_core-1.0.1-py3-none-any.whl

Total release size: 162.4 kB

Release files / raven_core-1.0.1.tar.gz

Download URL raven_core-1.0.1.tar.gz
Size 80.9 kB
Tags Source
SHA-256 checksum
How to use checksums
88a4c262761a57591271427b0ad729aa9a55a9831287189f35f24fb0f36f940c
BLAKE2b-256 checksum
How to use checksums
ff923d24e9a11a5281bacf52869cfb98d323a504d238b8b3fbe4f860fea28138
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 log

Release files / raven_core-1.0.1-py3-none-any.whl

Download URL raven_core-1.0.1-py3-none-any.whl
Size 81.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4b4d41de22555de061cf5c3af7842ef44ddcaa0c1a057c0a523e77f22c4d425
BLAKE2b-256 checksum
How to use checksums
0cdc160797140498a484afd2c3fac42bad7bf1427505abff8ffd5f7d573a542a
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 log

Security for raven-core 1.0.1

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.

Select from 2 files

Attestation for raven_core-1.0.1.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page