Skip to main content

library for handling man(1) and manpath(1) configuration files

Project description

Installation

pip install pnu-libmanconf

LIBMANCONF(3)

NAME

libmanconf — library for handling man(1) and manpath(1) configuration files

SYNOPSIS

import libmanconf

String, String, List libmanconf.read_man_conf_files(Integer debug_level = 0)

DESCRIPTION

The read_man_conf_files() function reads the configuration files located at "/etc/man.conf" and "/usr/local/etc/man.d/*.conf" to configure the manual search path, locales and utility set used by man(1) and related utilities.

The function takes an optional argument debug_level with an integer value from 0 (default) to 3, to print increasingly detailed information on standard error output.

It returns a triplet consisting of:

  • a string containing colon separated existing MANPATH directories
  • a string containing colon separated locales (for example, "fr_FR.UTF-8:ja_JP.eucJP")
  • a list containing processors (for example, ["TBL_JA=/usr/local/bin/gtbl", "NROFF_JA=/usr/local/bin/groff -man -dlang=ja_JP.eucJP"])

SEE ALSO

apropos(1), man(1), man.conf(5), manpath(1), whatis(1)

STANDARDS

The libmanconf library is not a standard UNIX one.

It tries to follow the PEP 8 style guide for Python code.

PORTABILITY

To be tested under Windows.

HISTORY

This library was made for the PNU project to factor code for the man(1) and manpath(1) commands.

LICENSE

It is available under the 3-clause BSD license.

AUTHORS

Hubert Tournier

The man.conf(5) manual page is largely based on the one written for FreeBSD by Gordon Tetlow.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pnu_libmanconf-1.0.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

pnu_libmanconf-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file pnu_libmanconf-1.0.0.tar.gz.

File metadata

  • Download URL: pnu_libmanconf-1.0.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for pnu_libmanconf-1.0.0.tar.gz
Algorithm Hash digest
SHA256 62317a2a4451307cb39737df8c1fc74ca7b27c8b2c7f4dc19c6f3595aa809fae
MD5 1526dfc88bbe1a38852b675eeb353efc
BLAKE2b-256 aefbf97f506b0885c82b1dea88da9f0d5cb77ede4336c11cf6c240ab941f7a26

See more details on using hashes here.

File details

Details for the file pnu_libmanconf-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pnu_libmanconf-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for pnu_libmanconf-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86c9adad6c14ef8b3b32d4f7c413dadc7b4bbf462799f408ddde314212296393
MD5 69e470848279031a5a110cda40cfa84e
BLAKE2b-256 a98408d9b37d3f33a1762c0ab2a19c41e945c4793bc24f1d26edd29a67536b58

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page