raven
Raven is a client for Sentry (https://getsentry.com)
What it is and what it does
Raven is the official legacy Python client for Sentry, a remote error tracking and monitoring service. It automatically captures unhandled exceptions and errors during application execution and sends them to a Sentry server with detailed diagnostic information for debugging and prioritization. The package provides out-of-the-box integration with popular frameworks like Django and Flask, as well as any WSGI-compatible web application, and can be used in non-web Python applications as well.
The package is now in maintenance mode only and has been superseded by sentry-sdk. Feature development and most bugfixes occur exclusively in the newer SDK. Raven officially supported Python 2.6–2.7 and 3.3–3.7, and also ran on PyPy and Google App Engine, though the codebase has not been actively maintained since early 2022.
Use it for:
- Monitor and capture exceptions in legacy Django or Flask applications still running on older Python versions.
- Track application errors in non-web Python scripts or background jobs with minimal setup.
- Send diagnostic data and sanitized error context to a self-hosted or legacy Sentry instance.
- Integrate error reporting into WSGI-compatible web applications without framework-specific adapters.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Raven is a legacy Python client for Sentry that captures and reports unhandled exceptions and errors from your application to a remote Sentry server for monitoring and analysis.
No. Raven is abandoned and explicitly deprecated in favor of sentry-sdk. Do not install for new projects. Only consider it if you are maintaining legacy code already using Raven and cannot migrate to sentry-sdk; even then, plan a migration path. The repository is archived and no updates are forthcoming.
Install
raven on PyPI
pip
pip install ravenuv
uv add ravenpoetry
poetry add ravenInstalling raven
Before you install
Installation is straightforward with low friction, but the package is abandoned as of 2022-01-27 and explicitly deprecated in favor of sentry-sdk. No active maintenance or bugfixes are expected beyond what already exists.
License in practice
BSD license is permissive and poses no significant restrictions on use or redistribution.
Quickstart
pip install raven
from raven import Client
client = Client('your-sentry-dsn')
try:
1 / 0
except ZeroDivisionError:
client.captureException()
Requires a Sentry server instance and a valid DSN (Data Source Name) to send error data to.
Verify before relying
- Whether contextlib2 is actually used at runtime or is a legacy dependency artifact.
- Current compatibility with modern Python versions beyond 3.7, given the package is abandoned.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — contextlib2 |
| Maintenance | abandoned — 2,795 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 1,345,799/month — #4,021 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: raven-6.10.0-py2.py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
sentry-sdkSentry SDK captures and reports Python…
permissive · top 1,000 on PyPI
sentry-cliA command-line tool for interacting with…
permissive · top 15,000 on PyPI
pytest-sentryA pytest plugin that sends test failure and…
permissive · top 15,000 on PyPI
bugsnagBugsnag is an error monitoring notifier that…
permissive · top 15,000 on PyPI
structlog-sentryBridges structlog and Sentry to automatically…
permissive · top 5,000 on PyPI
safe-initSafe Init wraps AWS Lambda handlers to provide…
permissive · top 15,000 on PyPI
sentry-kafka-schemasProvides Kafka topic definitions and JSON…
unclear · top 15,000 on PyPI
trycourierA typed Python client for the Courier REST API…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-exceptionsAutomatically captures uncaught exceptions in…
permissive · top 15,000 on PyPI