$npx skillfedfor your agent

pygtail

Reads log file lines that have not been read.

With conditionsPyPI Python ModulesReleased Nov 2022225.5K downloads / moGPL v2Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pygtail-0.14.0-py3-none-any.whl
v0.14.0 · released 2022-11-06

Yes, if you need incremental log reading with rotation support and can accept a copyleft license. The package is stable and has no known vulnerabilities, but maintenance is stalled since 2022; verify compatibility with your Python version and log rotation setup before relying on it for production use.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Maintenance is aging—last release was 2022-11-06 and the repository shows no recent activity, though it remains unarchived with a final commit in 2025-09-04.

License · maintenance · safety

GPL v2 (copyleft) — Licensed under GPL v2 (copyleft). Any code that imports and uses pygtail must also be distributed under a compatible copyleft license; proprietary or permissive-licensed projects may face licensing conflicts.

last release 2022-11-06 (1377 days) · last repo commit 2025-09-04 · 257 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 225,547 downloads/mo, #9,220 on PyPI

Verify before relying

from pygtail import Pygtail

for line in Pygtail("some.log"):
    print(line, end='')
  • Whether the package works reliably with modern Python versions beyond those listed in classifiers (2.6, 2.7, 3.x unspecified).
  • Current compatibility with contemporary log rotation schemes and whether the copytruncate and inode-based rotation modes remain effective.
Same gist for agents: .md · .json

What it is and what it does

Pygtail is a Python port of logcheck's logtail2 utility. It maintains an offset file to track which lines of a log file have already been read, then returns only the new lines on subsequent calls. It handles log rotation transparently, supporting both copytruncate-style rotation (where the file is copied then truncated) and inode-based rotation (where the file is moved and a new one created).

The package works both as a command-line tool and as a Python library. From the CLI, you point it at a log file and it prints unread lines; in code, you instantiate a Pygtail object and iterate over lines. It offers fine-grained control over when the offset is written back to disk, custom log rotation patterns, and options to read from the end of large files if the offset file is missing.

Use it for

  • Monitor application logs in real time by reading only new entries since the last check, avoiding re-processing old lines.
  • Build log aggregation pipelines that track which lines have been shipped to a central system, using the offset file as a checkpoint.
  • Process rotated logs without losing track of position across rotation boundaries, especially in high-volume logging scenarios.
  • Implement custom log watchers that need fine-grained control over when offset state is persisted to disk.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need incremental log reading with rotation support and can accept a copyleft license.

The package is stable and has no known vulnerabilities, but maintenance is stalled since 2022; verify compatibility with your Python version and log rotation setup before relying on it for production use.

Install

pygtail on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance is aging—last release was 2022-11-06 and the repository shows no recent activity, though it remains unarchived with a final commit in 2025-09-04.

License in practice

Licensed under GPL v2 (copyleft). Any code that imports and uses pygtail must also be distributed under a compatible copyleft license; proprietary or permissive-licensed projects may face licensing conflicts.

Quickstart

from pygtail import Pygtail

for line in Pygtail("some.log"):
    print(line, end='')

Verify before relying

  • Whether the package works reliably with modern Python versions beyond those listed in classifiers (2.6, 2.7, 3.x unspecified).
  • Current compatibility with contemporary log rotation schemes and whether the copytruncate and inode-based rotation modes remain effective.

Package facts

LicenseGPL v2 copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 1,377 days since the last release
Last repo commit
First released
Downloads225,547 / month, #9,220 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License (GPL)Operating System :: MacOS :: MacOS XOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Logging

Evidence: pygtail-0.14.0-py3-none-any.whl

Tags

Capabilities
tail log file new lineslog file offset trackinglog rotation handlingread unread log lineslogtail python portincremental log reading
Topics
log-tailingoffset-tracking
PyPI keywords
loggingtaillogtail2

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “tail log file new lines”

  • pygtailPygtail reads only the new lines from a log file since the last read,…
  • tailerTailer provides functions to read lines from the end, beginning, or…
  • file-read-backwardsReads files line-by-line from end to beginning in a memory-efficient…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also file-read-backwards · tailer · concurrent-log-handler · logzero · logtail-python · loguru · segyio · aiofile · pdfminer · mootdx