Python SDK for Redraven (fireraven.ai) — generate, run-against-client-LLM, and evaluate red-team tests.
Reason this release was yanked:
READMEs needed to be updated.
Project description
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:
- Generate (or pick) a test dataset on Redraven.
- Run each test case locally through your own LLM — your model API key never leaves your process.
- 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
- Marketing site: fireraven.ai
- FireRaven app (production): app.fireraven.ai
- Redraven app (red-teaming console): app.redraven.fireraven.ai
Installation
The package is currently distributed via a private GitLab repo (PyPI release will follow).
uv add "redraven @ git+ssh://git@gitlab.com/<your-org>/redraven-sdk.git#subdirectory=packages/python"
# or
pip install "redraven @ git+ssh://git@gitlab.com/<your-org>/redraven-sdk.git#subdirectory=packages/python"
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
result = await client.run_test(
test_id="<your-existing-test-id>",
llm=my_llm,
concurrency=4,
)
print(result.model_dump())
asyncio.run(main())
See README.users.md for the full user guide.
The guide includes dataset-readiness semantics for generate_test(...) plus
the one-call generate_and_run_test(...) workflow.
Documentation
License
Proprietary — © fireraven.ai. Contact us if you'd like to integrate Redraven into your product.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redraven-0.1.0.tar.gz.
File metadata
- Download URL: redraven-0.1.0.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca2569ddaf47a65dd54e14f36b3162167852c4bccd07a4f458ee57f1535b8f7
|
|
| MD5 |
8fc2f944359b97745b56d46139beffd9
|
|
| BLAKE2b-256 |
6f6bc2a276e4516471f49432912719004bb08d2fb93a9a196ef716aa2cc9e1a3
|
File details
Details for the file redraven-0.1.0-py3-none-any.whl.
File metadata
- Download URL: redraven-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eee5dc7ca2313777c2ab65e23d633b87ca2fba2f65a05f8ab34be655aff8933
|
|
| MD5 |
a15c69661cc8c4efe83aa048ebfe217c
|
|
| BLAKE2b-256 |
d6f2a48677e65b777342655ebe8511aa6cc20fd5fb6f21796bd59683b3ef3bbd
|