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)
-
Get your API key from wevitos.com/dashboard — create a project and copy the token.
-
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
- Go to wevitos.com and log in
- Create a project (or select an existing one)
- Copy the API key from the project setup page
- Paste it in your
wevitos.init()call
Links
- Dashboard: wevitos.com
- PyPI: pypi.org/project/wevitos
- Source: github.com/xzitlou/wevitos
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
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 wevitos-0.4.0.tar.gz.
File metadata
- Download URL: wevitos-0.4.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b47e01ff467f6239bb90745a64034015cba3b48f9b0129cab604fa8b1f1c779f
|
|
| MD5 |
eab3c99b1e337f3a931ed4a4b1ecb142
|
|
| BLAKE2b-256 |
0966bb499ca96b1bcd50b7cc620db2ff4f6d238ec534dc8767591add547edfad
|
File details
Details for the file wevitos-0.4.0-py3-none-any.whl.
File metadata
- Download URL: wevitos-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e628dc054bbfc01f6e9f1ac84b5f1ebef4ade944e53a276b718439ea88dede3
|
|
| MD5 |
e93cd967095580ba14f2276526b8cac0
|
|
| BLAKE2b-256 |
77e0dea26834bf199362d3dd61955eb962a5725d1e30420ee6bfc495a498aebf
|