🐍 Python

Error tracking for Error tracking for Python

Automatic exception capture for Django, Flask, FastAPI, and any Python application. Zero dependencies, full stacktraces, instant alerts.

One middleware, full coverage

Add the Wevitos middleware to your Django settings and every unhandled exception is captured automatically — with request data, user info, and full stacktrace context.

  • Automatic capture of all unhandled exceptions
  • Request method, URL, headers, and body included
  • User context when authenticated
  • Environment and release tagging
settings.py
import wevitos

wevitos.init(
    api_key='wvt_...',
    environment='production',
)

MIDDLEWARE = [
    'wevitos.django.WevitosMiddleware',
    'django.middleware.security...',
    # ...
]

Wrap your Flask app

Initialize Wevitos before your Flask app starts and errors are captured from all routes and blueprints.

  • Captures exceptions from all routes
  • Works with blueprints and extensions
  • Request context included automatically
app.py
import wevitos
from flask import Flask

wevitos.init(api_key='wvt_...')

app = Flask(__name__)

@app.errorhandler(Exception)
def handle_error(e):
    wevitos.capture_exception(e)
    return "Error", 500

Async-ready error capture

Wevitos works with FastAPI's async handlers and ASGI middleware. Capture errors from async endpoints without blocking.

  • ASGI middleware support
  • Async exception capture
  • Pydantic validation errors included
main.py
import wevitos
from fastapi import FastAPI

wevitos.init(api_key='wvt_...')

app = FastAPI()
app.add_middleware(
    wevitos.fastapi.WevitosMiddleware
)

Start tracking Python errors

pip install wevitos — that's all it takes.