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.0.tar.gz (13.2 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.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file vibemonitor-0.1.0.tar.gz.

File metadata

  • Download URL: vibemonitor-0.1.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for vibemonitor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b087da07994e7a7d5e6e3cf933a94eb14e80ba99a559c853ca662a62a2370cff
MD5 c7dfc3675128a350e646428ff5e952b4
BLAKE2b-256 3a7181b6044d2c8dbd714e37f0942304bd4a1383f638c08c12d4e1e883a2b27a

See more details on using hashes here.

File details

Details for the file vibemonitor-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vibemonitor-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for vibemonitor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79de60fa0e92014ea9e9ea6092ca02fc83d8aec3b9d7b88957603354d57ed7e4
MD5 0c2e84f6236fb1778476d89bdfafe598
BLAKE2b-256 692c6ba68ca2034c09595571e687502b97c630ae1a964a6f0ec29407b2e6f548

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