Skip to main content

Python SDK for shipping logs to Taillight

Project description

taillight-sdk

Python SDK for shipping logs to Taillight — a real-time log viewer.

  • Zero external dependencies (stdlib only)
  • Background-thread batching with configurable batch size and flush interval
  • Drop-on-overflow — never blocks or crashes your application
  • Exponential backoff on send failures
  • Bearer token authentication

Install

pip install taillight-sdk

Quick start

import logging
from taillight_sdk import TaillightHandler

handler = TaillightHandler(
    endpoint="https://taillight.example.com/api/v1/applog/ingest",
    api_key="your-api-key",
    service="my-python-app",
)

logger = logging.getLogger("myapp")
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)

logger.info("server started", extra={"port": 8080})

# Flush remaining logs on shutdown
handler.shutdown()

Documentation

See the full Python logshipper guide for configuration reference, structured logging, Django/Flask integration, and API details.

License

GPL-3.0 — see LICENSE.

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

taillight_sdk-0.1.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

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

taillight_sdk-0.1.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: taillight_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for taillight_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9866ccef6970e00c5a351890582666131e418926c9c234d1d00dde2cda37d14c
MD5 591fa09f59a323708ee6480b12e21d26
BLAKE2b-256 c285d4676b2fd88a3634eaf84a62c617f2d8c5f2fabc9559c68d7bd060884740

See more details on using hashes here.

Provenance

The following attestation bundles were made for taillight_sdk-0.1.0.tar.gz:

Publisher: python-publish.yml on lasseh/taillight

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: taillight_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for taillight_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9263e049114be0c2e2d6c4f22e42973027dae74623f76cb9663a85ee5834694
MD5 fb5946884853a6a856390af3f86c76f4
BLAKE2b-256 bbb59c48b9d288465efcfb202229f56be4342afe8d24b2ff6cccce7e41368008

See more details on using hashes here.

Provenance

The following attestation bundles were made for taillight_sdk-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on lasseh/taillight

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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