Skip to main content

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

  1. Auto-capture — The SDK hooks into Python's built-in logging module. Every logger.info(), logger.error(), logger.exception() call is automatically captured.

  2. Non-blocking — Logs are queued in memory and sent by a background thread. Your application is never slowed down.

  3. Compressed — Logs are gzip-compressed before sending, reducing bandwidth by ~80%.

  4. Safe — The SDK never crashes your application. All internal errors are silently handled.

Get Your API Key

  1. Log in to vibemonitor.ai
  2. Go to SettingsServices → select your service
  3. 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

vibemonitor-0.1.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

vibemonitor-0.1.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

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

Hashes for vibemonitor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d6cf8ebc9c24042ebfe04420a9638f8dc10d6cea684d82adb4cc200418cef7f8
MD5 1091ec8bd47e147ccb79e27184528c39
BLAKE2b-256 5df4bc348bbda685d667d05b67d340d16e5920af5ee0a8c3ba85256807453930

See more details on using hashes here.

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

Hashes for vibemonitor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd0ed58f8f5c0d43e145882061775864ea150514455905ab402ad24640978cd7
MD5 6ed5e761ea8c46fc1a1960d1c4be5be9
BLAKE2b-256 fc53514d57e077b4c2519fca3c3d18fa6ee41909a2a29f3a286f7650ec6beb03

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