BSD Ports

textproc/py-humanfriendly 10.0nb2 NetBSD

Human friendly output for text interfaces using Python

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
textproc, python
Package size
145.4 KiB, 974.3 KiB installed

Description

The functions and classes in the humanfriendly package can be used to make text interfaces more user friendly. Some example features:

  • Parsing and formatting numbers, file sizes, pathnames and timespans in simple, human friendly formats.
  • Easy to use timers for long running operations, with human friendly formatting of the resulting timespans.
  • Prompting the user to select a choice from a list of options by typing the option's number or a unique substring of the option.
  • Terminal interaction including text styling (ANSI escape sequences), user friendly rendering of usage messages and querying the terminal for its size

In the other systems

SystemPortVersion
NetBSDtextproc/py-humanfriendly10.0nb2
FreeBSDtextproc/py-humanfriendly10.0_1
OpenBSDtextproc/py-humanfriendly10.0p3
DragonFlytextproc/py-humanfriendly10.0_1
HardenedBSDtextproc/py-humanfriendly10.0_1
GhostBSDtextproc/py-humanfriendly10.0_1

Install

Binary package:

pkgin install py311-humanfriendly

From pkgsrc:

cd /usr/pkgsrc/textproc/py-humanfriendly && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_6410.0nb2
NetBSD 10.1 aarch6410.0nb2
SmartOS / illumos x86_6410.0nb2
macOS 15 arm6410.0nb2

Dependencies

Run dependencies 2

Configuration

No options to configure.

Service scripts
none
Flavors
py312-humanfriendly-10.0nb2, py313-humanfriendly-10.0nb2, py314-humanfriendly-10.0nb2