logtail-python
Better Stack client library
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-pythonuv
uv add logtail-pythonpoetry
poetry add logtail-pythonInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
python3-logstashA Python logging handler that forwards log…
permissive · top 15,000 on PyPI
fluent-loggerSends structured event logs from Python…
unclear · top 5,000 on PyPI
clickhouse-poolProvides a thread-safe connection pool for…
copyleft · top 5,000 on PyPI
django-clickhouse-backendA Django database backend that lets you use…
permissive · top 15,000 on PyPI
graypyProvides Python logging handlers that format…
permissive · top 15,000 on PyPI
mcp-clickhouseAn MCP server that exposes ClickHouse database…
permissive · top 15,000 on PyPI
python-logstashSends Python log records to Logstash over UDP…
permissive · top 15,000 on PyPI
pygtailPygtail reads only the new lines from a log…
copyleft · top 15,000 on PyPI
clickhouse-migrationsApplies versioned SQL migrations to ClickHouse…
permissive · top 15,000 on PyPI
clickhouse-driverA native TCP driver for ClickHouse that…
permissive · top 5,000 on PyPI