BSD Ports

devel/py-autopage 0.5.2 DragonFly

Provide automatic paging for console output

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
61.1 KiB, 451.7 KiB installed

Description

Autopage is a Python library to automatically display terminal output from a program in a pager (like less) whenever you need it, and never when you don't. And it only takes one line of code.

You know how some CLI programs like git (and a handful of others, including man and systemctl) automatically pipe their output to less? Except not if there's less than one screen's worth of data. And if you redirect the output to a file or a pipe, it does the right thing instead. Colours are preserved. Don't you wish all programs worked like that? Now at least all of your Python programs can.

In the other systems

SystemPortVersion
DragonFlydevel/py-autopage0.5.2
FreeBSDdevel/py-autopage0.6.0
HardenedBSDdevel/py-autopage0.6.0
GhostBSDdevel/py-autopage0.6.0

Install

Binary package:

pkg install py311-autopage

From DPorts:

cd /usr/dports/devel/py-autopage && make install clean

Dependencies

Run dependencies 1
Required by 1