A command line tool for generating project dependencies table
Project description
leafhopper
Do you get asked for a list of open source projects you used in the project for legal review?
leafhopper
is a command line tool used for generating a table of dependencies for a project, so that you don't have to manually maintain such a list.
how it works
The tool parses the project descriptor, based on different project type (vcpkg
and poetry
are supported currently), and generates a table of dependencies. When some critical information, such as license, is not available in the project descriptor, leafhopper
will test if this is a github project and try loading it from github.com.
installation
pip install leafhopper
usage
leafhopper /path/to/project/descriptor
arguments
--format
: the format of the output. Possible values aremarkdown
/html
/json
/latex
/csv
. Default ismarkdown
.--output
: the output file path. If not specified, the output will be printed to stdout.--logging-level
: the logging level. Possible values aredebug
/info
/warning
/error
/critical
. Default isinfo
. Set the logging level to aboveinfo
(e.g.error
) to supress non critical messages so that only table is printed to stdout (if no output file is specified).
example
-
extract
pyproject.toml
dependencies with markdown format and save it intodependencies.md
fileleafhopper /path/to/pyproject.toml --format=markdown --output=dependencies.md
-
suppress logging and output to stdout and use CLI tool
glow
to display it
leafhopper /path/to/vcpkg.json --format md --logging-level error | glow -
supported formats
- markdown
- LaTex
- html
- json
- csv
supported project types
- poetry project described by
pyproject.toml
- vcpkg project described by
vcpkg.json
- more project types such as maven will be supported in the future
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for leafhopper-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99b0e4a571acf343b4f75d74246e0bc2d18fb2bb087885818c4463af89a3eec8 |
|
MD5 | 45c363e2264e09708cfab4bb7a0bf1c8 |
|
BLAKE2b-256 | dadd4b87d97db7d49ef4a21e156164890aee89e14ef42e235777a76840846ca1 |