Skip to main content

Enhanced Python Help Tool with Rich Library - Beautiful terminal output.

Project description

🚀 pyhelp (Helpman)

Enhanced Python Help Tool with Rich Library - Beautiful terminal output

pyhelp or helpman is a Python command-line tool that lets you quickly view the documentation (docstring) of Python functions, classes, or objects directly from your terminal. It helps you inspect documentation without opening source files or browsing online docs.

Example Usage

✨ Features

  • Displays docstrings for Python functions, classes, and objects.
  • Supports searching in standard Python modules and installed third-party packages.
  • Provides clean, readable output right in the terminal.

📦 Installation

  1. Clone this repository or download bn.py:
    git clone https://github.com/cumulus13/pyhelp.git
    cd pyhelp
    pip install .
    
    # or
    
    pip install helpman
    

Usage

After installation, use pyhelp in your terminal with the following syntax:

pyhelp <object_name>

Replace <object_name> with the name of the Python function, class, or object you want to view the documentation for.

Usage: pyhelp/helpman [-h] [-s] [-v] module

🐍 Enhanced Python Help Tool with Rich formatting

Positional Arguments:
  module         Module, function, or class to get help for (e.g., os.path, json.loads)

Options:
  -h, --help     show this help message and exit
  -s, --source   Show source code instead of help documentation
  -v, --version  show program's version number and exit

Examples:

  pyhelp os.path                    # Show help for os.path module
  pyhelp json.loads                 # Show help for json.loads function
  pyhelp -s requests.get            # Show source code for requests.get
  pyhelp --source collections.Counter  # Show source code for Counter class

Examples

  • View docstring for the print function:

    pyhelp print
    
  • View docstring for the list class:

    pyhelp list
    
  • View docstring for numpy.array function (if numpy is installed):

    pyhelp numpy.array
    

If the requested object is not found directly, pyhelp will attempt to locate it in standard Python modules and installed third-party packages.

Contribution

Contributions to improve pyhelp are welcome! Please fork the repository, create a new branch (git checkout -b new-feature), make your changes, and submit a pull request. Make sure to add tests and update documentation as needed.

License

pyhelp is licensed under the MIT License.


If you have any questions or need help, feel free to open an issue on the GitHub repository.

author

Hadi Cahyadi

Buy Me a Coffee

Donate via Ko-fi

Support me on Patreon

medium.com

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

helpman-2.25.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

helpman-2.25-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file helpman-2.25.tar.gz.

File metadata

  • Download URL: helpman-2.25.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for helpman-2.25.tar.gz
Algorithm Hash digest
SHA256 e7d148c0d0d523e0fb0c320304c6a4cdf2b1dde5a21967b2f78421ef09536643
MD5 ffb2759822c287bbf613ddeb9fe0e34e
BLAKE2b-256 870d6461b4b0f14cf7e637ed9508b7ab0116b9679720fefc3f4ccdbc3bffa9c1

See more details on using hashes here.

File details

Details for the file helpman-2.25-py3-none-any.whl.

File metadata

  • Download URL: helpman-2.25-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for helpman-2.25-py3-none-any.whl
Algorithm Hash digest
SHA256 5bb07d2b527e3ddc1b94916a7ff348c21e70731299716927bd974ba65a9532fb
MD5 ca9e8f0e36e5e31b7b709377d08e48ef
BLAKE2b-256 ab7e346c5b073ded162df38dd999fab97e5cb5059e4e7013ea9446c61728c631

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