Skip to main content

redraven (Python SDK)

The official Python SDK for Redraven — the LLM red-teaming and policy-evaluation platform from fireraven.ai.

Redraven generates adversarial prompts, evaluates your LLM's responses against your safety policies and certifications, and surfaces failures so you can harden your AI products.

This SDK lets you drive the full Redraven flow from your own Python code:

  1. Generate (or pick) a test dataset on Redraven.
  2. Run each test case locally through your own LLM — your model API key never leaves your process.
  3. Submit responses back to Redraven for scoring; receive a summary you can act on.

The SDK talks only to public endpoints on the Redraven backend, authenticated with your organization API key (issued from the Redraven app).

Platforms

Installation

Install from PyPI:

uv add redraven
# or
pip install redraven

uv is preferred for reproducible installs.

Quick start

import asyncio
import redraven

async def my_llm(prompt: str) -> str:
    # Call your own LLM here. Your key stays in your process.
    return f"echo: {prompt}"

async def main():
    async with redraven.Client() as client:  # reads REDRAVEN_API_KEY + REDRAVEN_BASE_URL
        handshake = await client.call_agent(
            test_id="<your-existing-test-id>",
            llm=my_llm,
            concurrency=4,
        )
        await client.wait_for_evaluation_ready(test_id="<your-existing-test-id>")
        result = await client.get_eval_summary(
            test_id="<your-existing-test-id>",
            expected_cases=handshake.expected_cases,
        )
        print(result.model_dump())

asyncio.run(main())

Core methods

Sequence: dataset ready (generate_test / wait_for_dataset_ready) → call_agent (must finish; submits all case responses) → wait for eval (wait_for_evaluation_ready and/or get_eval_summary(..., wait_for_completion=True)) → get_eval_summary to read the summary if you waited separately. See the user guide for the full table.

Documentation

For private contributor documentation, use the repository internal docs.

License

Proprietary — © fireraven.ai. Contact us if you'd like to integrate Redraven into your product.

Metadata

Release files for redraven 0.1.5

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

Source distribution (sdist)

Source distribution for redraven 0.1.5
File Size Uploaded Provenance Actions
redraven-0.1.5.tar.gz 48.6 kB Without provenance Details for redraven-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for redraven 0.1.5
File Interpreter ABI Platform Actions
redraven-0.1.5-py3-none-any.whl Python 3 none any Details for redraven-0.1.5-py3-none-any.whl

Total release size: 65.5 kB

Release files / redraven-0.1.5.tar.gz

Download URL redraven-0.1.5.tar.gz
Size 48.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c7b1a40ee440e0d530e1f5fbef4f298b65c3401b152fb705673b9a545af5b299
BLAKE2b-256 checksum
How to use checksums
cf853e3aa293b66fd34d5756f786b0a255cb851cf23521966d10878f47d694f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / redraven-0.1.5-py3-none-any.whl

Download URL redraven-0.1.5-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9813f334d1f8cfe66b406e48895d8a2bb6740621161a2830a21272f0d7287a6d
BLAKE2b-256 checksum
How to use checksums
6cd70ef084d875e5d415042853da73f9d4eeab9dfc1644dbfe9570262317e271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for redraven 0.1.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files No provenance

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