Skip to content

click-contrib/click-plugins

Repository files navigation

click-plugins

A method for registering plugins on command line interfaces built with click.

History

This project was originally distributed as the click-plugins package via the Python Package Index. That package still exists, but will not be updated. Instead, users should vendor files from this repository in order to use click-plugins. See click_plugins.rst for more information.

This project is no longer actively maintained, but has been structured for maximum longevity. It has no dependencies aside from click, and does not offer any mechanism for building a package. Users are free to vendor, and modify as needed in accordance with the license. Users are also free to build their own package.

Users may want to treat this project as a reference for their own implementation.

Vendoring

Users interested in vendoring click-plugins should consider adding the files listed below to their project.

Users are responsible for any adjustments required to satisfy their project's typing, linting, and code style requirements.

Testing

Tests are built and executed using Python's builtin unittest library.

$ python -m unittest click_plugins_tests.py

tox (see tox.ini) can be used to test multiple versions of Python and click. The goal is to support as many versions of Python and click as reasonably possible, including versions that are potentially no longer officially supported by Python Software Foundation or the click maintainers. Versions that have reached end of life and and are difficult to support may be dropped.

Documentation

This project uses reStructuredText, but users who do not support this markup language will not be able to process click_plugins.rst when building documentation. Most users can probably support a HTML file, which can be rendered with:

$ docutils \
    click_plugins.rst \
    click_plugins.html \
    --date \
    --leave-comments \
    --no-generator \
    --no-source-link \
    --stylesheet-path "" \
    --root-prefix ./

Release

About

Register CLI commands via setuptools entry-points.

Resources

License

Stars

Watchers

Forks

Packages

No packages published