Error monitoring for Python without the Sentry tax — 100k events free, AI root cause analysis included
Project description
ravn-sdk
Error monitoring for Python — without the Sentry tax.
100,000 events/month free. AI-powered root cause analysis included. Setup in 30 seconds.
→ getravn.com · Dashboard · Docs
Install
pip install ravn-sdk
Setup
import ravn
ravn.init(api_key="your_api_key_here")
That's it. Every unhandled exception that crashes the process — scripts, Celery tasks, background workers — is now captured automatically.
Using Django, Flask, or FastAPI? These frameworks catch request-handling exceptions themselves to render an error response, so they never reach the point ravn.init() hooks into. Add one line for your framework:
# Django — in AppConfig.ready() or wsgi.py/asgi.py
from ravn.integrations.django import install
install()
# Flask
from ravn.integrations.flask import init_app
init_app(app)
# FastAPI / Starlette
from ravn.integrations.fastapi import RavnMiddleware
app.add_middleware(RavnMiddleware)
Get your API key at app.getravn.com/register — free, no credit card required.
Features
Automatic exception capture
After ravn.init(), all unhandled exceptions are captured automatically.
Manual capture
try:
risky_operation()
except Exception as e:
ravn.capture_exception(e, metadata={"user_id": 42})
Log messages
ravn.capture_message("Payment processed", level="info", metadata={"amount": 99.99})
Supported levels: info, warning, error.
Performance monitoring
@ravn.measure
def slow_database_query():
...
Functions decorated with @ravn.measure send a warning event if they exceed slow_threshold_ms (default: 1000ms).
Configuration
ravn.init(
api_key="your_api_key_here",
slow_threshold_ms=500, # warn if functions take longer than 500ms
)
Pricing
| Plan | Events/month | Price |
|---|---|---|
| Free | 100,000 | $0 — forever |
| Solo | 1,000,000 | $9.99/mo |
| Team | 10,000,000 | $19.99/mo |
| Business | 100,000,000 | $49.99/mo |
All paid plans include AI root cause analysis, Slack/Discord alerts, and performance monitoring.
Full pricing at getravn.com/pricing.
Requirements
- Python ≥ 3.8
requests ≥ 2.28
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 ravn_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ravn_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6794741dec7493c402f5218e356c3af654651d21451d3cdbcdf281399704997
|
|
| MD5 |
26b875fa6b9148dba091e7f655cd332e
|
|
| BLAKE2b-256 |
aa21537ac6dcb9cd18bb50051fe90d3b4889fb17407acff806142a1c68eaf0a7
|