skillfed

logtail-python

Better Stack client library

logtail-python v0.4.0 975.5K downloads/30d#4,594 on PyPI44
Permissive license ISC Active released

What it is and what it does

logtail-python is a client library that integrates Python applications with Better Stack's log management service. It handles the mechanics of serializing structured logs and shipping them to Better Stack's ClickHouse backend, where they can be queried using SQL. The package depends on requests for HTTP transport and msgpack for efficient serialization.

The library is designed for developers who want centralized, queryable logging without managing their own log infrastructure. It's actively maintained, supports modern Python versions (3.10 through 3.14), and carries no known security vulnerabilities. Installation is straightforward with minimal dependencies.

Use it for:

  • Send application logs from a Python service to Better Stack for centralized monitoring and debugging.
  • Aggregate structured logs from multiple Python processes or services into a single queryable repository.
  • Replace local file-based logging with cloud-hosted log storage that supports SQL queries.
  • Integrate logging into a Python web application or API to track requests and errors in production.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client library for sending structured logs to Better Stack (formerly Logtail), a ClickHouse-based log management platform with SQL-compatible querying.

Yes, if you are already using or planning to adopt Better Stack for log management. The package is actively maintained, has low install friction, carries a permissive license, and integrates cleanly with modern Python. No security vulnerabilities are known. Install only if you have a Better Stack account or plan to set one up.

Install

logtail-python on PyPI

pip

pip install logtail-python

uv

uv add logtail-python

poetry

poetry add logtail-python

Installing logtail-python

Before you install

Low friction to install; the package is actively maintained with a recent release (44 days old) and depends only on requests and msgpack, both widely available.

License in practice

ISC license is permissive and imposes minimal restrictions; you can use this package in commercial and proprietary projects without significant legal concern.

Quickstart

pip install logtail-python

import logtail
# Configure and send logs to Better Stack via the client

Requires Python 3.10 or later.

Verify before relying

  • Exact API surface and configuration options for the Better Stack client
  • Whether the package supports async logging or only synchronous sends
  • Rate limiting or batching behavior when shipping logs to the service

Package facts

License ISC (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — requests, msgpack
Maintenance actively maintained — 44 days since the last release
Last repo commit
First released
Downloads 975,504/month — #4,594 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: logtail_python-0.4.0-py2.py3-none-any.whl

Keywords: api, logtail, logging, client

Intended Audience :: DevelopersLicense :: OSI Approved :: ISC License (ISCL)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Tags

better stack logging clientlogtail python sdkstructured log shippingclickhouse log managementremote log aggregation pythonlog forwarding servicecentralized logging client
loggingobservabilitycloud-service-client

More Python Modules packages