Skip to main content

Lightweight error tracking client for Wevitos

Project description

Wevitos

Lightweight error tracking for Python/Django apps. Captures unhandled exceptions with full stacktraces, request data, and user info — then sends them to wevitos.com.

Zero external dependencies. Uses only Python stdlib.

Installation

pip install wevitos

Quick Setup (Django)

  1. Get your API key from wevitos.com/dashboard — create a project and copy the token.

  2. Add to your settings.py:

import wevitos

wevitos.init(
    api_key='YOUR_API_KEY',
    environment='production',  # or 'staging', 'development', etc.
)

MIDDLEWARE += ['wevitos.middleware.WevitosMiddleware']

That's it. Unhandled exceptions in your views will be captured automatically.

Manual Error Reporting

You can also report errors manually anywhere in your code:

import wevitos

try:
    risky_operation()
except Exception as e:
    wevitos.notify(e, extra={'user_id': 123, 'action': 'checkout'})

What Gets Captured

  • Exception class, message, and full stacktrace with source context (5 lines before/after)
  • Request data: method, URL, headers (cookies and auth headers are excluded)
  • User info: user ID and email (if authenticated)
  • Server name, environment, and release version
  • Any extra metadata you pass via wevitos.notify()

Configuration Options

wevitos.init(
    api_key='YOUR_API_KEY',       # Required — from wevitos.com
    environment='production',      # Optional — tags errors by environment
    release='1.2.3',               # Optional — your app version
    app_root='/app',               # Optional — filters stacktrace to your code
)

How It Works

  • Errors are sent asynchronously in a background daemon thread — zero impact on your app's response time.
  • If the Wevitos server is unreachable, errors are silently dropped (your app is never affected).
  • Errors are grouped by a fingerprint based on exception class + file + function + line number.
  • Duplicate errors increment the count instead of creating noise.

Get Your API Key

  1. Go to wevitos.com and log in
  2. Create a project (or select an existing one)
  3. Copy the API key from the project setup page
  4. Paste it in your wevitos.init() call

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wevitos-0.3.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wevitos-0.3.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file wevitos-0.3.0.tar.gz.

File metadata

  • Download URL: wevitos-0.3.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for wevitos-0.3.0.tar.gz
Algorithm Hash digest
SHA256 aceab5a8030bc34f60333880245506257721a31644da29703148ecf651a804b6
MD5 875985faadd5f3be5fe0fdc08ce0e7e0
BLAKE2b-256 9a6f52d84577a1781d7332bc956cf788e336fd9f28ddbf4d5aa5a41891a2d1ce

See more details on using hashes here.

File details

Details for the file wevitos-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: wevitos-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for wevitos-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f27c3a8f1aba078502f3229eec4444dca0fc2d2b55a44d08a19eb30ec7da966
MD5 018d59eb6a64b6798c17eacfd5dfd97b
BLAKE2b-256 e9a1b67b38f1b670d50ba9c579c596c7ff902e5fe7f3766b1165b81da7de3a7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page