Skip to main content

man-like tool to get online help on Python modules, classes and functions

Project description

Command-line help on Python modules, classes and functions

This package procures the command-line tool pyh. It works somewhat like UNIX's man, but for Python's docstring-based help system. In a nutshell:

$ pyh print
print(...)
    print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)

    Prints the values to a stream, or to sys.stdout by default.
    Optional keyword arguments:
    file:  a file-like object (stream); defaults to the current sys.stdout.
    sep:   string inserted between values, default a space.
    end:   string appended after the last value, default a newline.
    flush: whether to forcibly flush the stream.

A more complex example:

$ pyh pathlib Path.is_file
Help on function is_file in module pathlib:

is_file(self)
    Whether this path is a regular file (also True for symlinks pointing
    to regular files).

To shorten the command lines a bit, one can configure a set of their favorite aliases for modules names in file $XDG_CONFIG_HOME/pyh/aliases (which typically resolves to $HOME/.config/pyh/aliases). The alias file is written in the NestedText format, which looks similar to YAML. One simply encodes an alias-to-module name dictionary, one line per entry. Example:

pd: pandas
pl: pathlib
ap: argparse

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

helphelp-2.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

helphelp-2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file helphelp-2.0.tar.gz.

File metadata

  • Download URL: helphelp-2.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for helphelp-2.0.tar.gz
Algorithm Hash digest
SHA256 c7bffbddd03df0d7d5f4de41f16dd1e51b2a271ee21d77a0e07183824f0b3843
MD5 66dbb79b512ebc02ee7edc1834e0b5a4
BLAKE2b-256 2f7c52bc5d65c6cbaf0f888c904c787871c4bde3c660086f24355e6015df249c

See more details on using hashes here.

File details

Details for the file helphelp-2.0-py3-none-any.whl.

File metadata

  • Download URL: helphelp-2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for helphelp-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9bfbd21b5c24652c9b8b10deaadf39978cff7f71caa8e90ded926b0cafee623f
MD5 64c759696800306fc4a1bc68aa4ff35d
BLAKE2b-256 3f9a5f270d80620fd88a8dafd0e9cf40a9dcb0132c9ead6688c5caf8c497d680

See more details on using hashes here.

Supported by

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