{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/4"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"},{"label":"Terminals","url":"https://skillfed.io/packages/category/terminals"}],"enrichment":{"capability":"Automatically pipes terminal output to a pager like `less` when needed, preserving colors and respecting redirects, with just one line of code.","skillfed_tags":["cli-output","terminal-ui"],"use_cases":["Automatically page help output from CLI tools built with argparse without modifying the help formatter.","Stream log or status data to the terminal with line buffering so users see updates in real time before paging kicks in.","Build a CLI tool that behaves like `git` or `man`, paging output only when it fills the screen.","Preserve ANSI color codes in paged output while respecting shell redirects and pipes.","Let end users override the pager command via `PAGER` environment variable in your Python application."],"what_it_does":"Autopage is a Python library that wraps your program's output stream to automatically invoke a pager (typically `less`) when the output exceeds one screen, and skip the pager entirely when it doesn't. It mimics the behavior of tools like `git` and `man`, which intelligently decide whether paging is needed. The library respects ANSI color codes, handles file redirects correctly, and lets the end user override the pager command via the `PAGER` environment variable.\n\nYou integrate it by wrapping your output in an `AutoPager` context manager, or by importing `autopage.argparse` to automatically page `argparse` help output. It supports line buffering for streaming data, terminal reset on exit, and custom error handling. The library works with Python 3.6 through 3.15 and has no external dependencies.","worth_installing":"Yes, if you are building CLI tools in Python and want professional paging behavior without boilerplate. The library is simple, dependency-free, and well-tested. Maintenance is aging but the code is stable and no vulnerabilities are known. The only caveat is that POSIX support is explicit in classifiers; verify Windows compatibility if that is a target platform."},"id":"autopage","links":{"html":"https://skillfed.io/packages/autopage","md":"https://skillfed.io/packages/autopage.md","pypi":"https://pypi.org/project/autopage/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2026-01-30","license_spdx":null,"license_treatment":"permissive","name":"autopage","python_support":"supports_current","summary":"A library to provide automatic paging for console output"},"popularity":{"monthly_downloads":1451162,"position":3885,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.0"}
