Vibemonitor Python SDK — capture and send logs to Vibemonitor
Project description
Vibemonitor Python SDK
Capture and send application logs to Vibemonitor with one line of code.
Installation
pip install vibemonitor
Quick Start
import vibemonitor
vibemonitor.init(api_key="your-api-key")
That's it. All your existing Python logging is now auto-captured and sent to Vibemonitor.
import logging
logger = logging.getLogger("auth-service")
logger.info("User 46 logged in") # → sent to Vibemonitor
logger.error("OTP expired for user 45") # → sent to Vibemonitor
logger.exception("Payment failed") # → sent with full traceback
How It Works
-
Auto-capture — The SDK hooks into Python's built-in
loggingmodule. Everylogger.info(),logger.error(),logger.exception()call is automatically captured. -
Non-blocking — Logs are queued in memory and sent by a background thread. Your application is never slowed down.
-
Compressed — Logs are gzip-compressed before sending, reducing bandwidth by ~80%.
-
Safe — The SDK never crashes your application. All internal errors are silently handled.
Get Your API Key
- Log in to vibemonitor.ai
- Go to Settings → Services → select your service
- Copy the API key from the SDK Setup section
Manual Logging
For logs outside the standard logging module:
vibemonitor.log(
severity="ERROR",
message="Custom event occurred",
attributes={"user_id": "45", "order_id": "991"}
)
Configuration
vibemonitor.init(
api_key="your-api-key",
environment="production", # optional: from VIBEMONITOR_ENV env var
version="2.3.1", # optional: from VIBEMONITOR_VERSION env var
)
All settings can also be configured via environment variables in your .env file:
VIBEMONITOR_ENDPOINT=https://api.vibemonitor.ai/api/v1/ingest/logs
VIBEMONITOR_ENV=production
VIBEMONITOR_VERSION=2.3.1
VIBEMONITOR_SCRUB_PATTERNS=email,ip,credit_card,password,jwt,aws_key
Requirements
- Python 3.8+
httpx(installed automatically)
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 vibemonitor-0.1.1.tar.gz.
File metadata
- Download URL: vibemonitor-0.1.1.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6cf8ebc9c24042ebfe04420a9638f8dc10d6cea684d82adb4cc200418cef7f8
|
|
| MD5 |
1091ec8bd47e147ccb79e27184528c39
|
|
| BLAKE2b-256 |
5df4bc348bbda685d667d05b67d340d16e5920af5ee0a8c3ba85256807453930
|
File details
Details for the file vibemonitor-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vibemonitor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd0ed58f8f5c0d43e145882061775864ea150514455905ab402ad24640978cd7
|
|
| MD5 |
6ed5e761ea8c46fc1a1960d1c4be5be9
|
|
| BLAKE2b-256 |
fc53514d57e077b4c2519fca3c3d18fa6ee41909a2a29f3a286f7650ec6beb03
|