Skip to main content

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 are markdown/html/json/latex/csv. Default is markdown.
  • --output: the output file path. If not specified, the output will be printed to stdout.
  • --logging-level: the logging level. Possible values are debug/info/warning/error/critical. Default is info. Set the logging level to above info (e.g. error) to supress non critical messages so that only table is printed to stdout (if no output file is specified).

example

  1. extract pyproject.toml dependencies with markdown format and save it into dependencies.md file leafhopper /path/to/pyproject.toml --format=markdown --output=dependencies.md

  2. 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

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

leafhopper-0.2.1.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

leafhopper-0.2.1-py3-none-any.whl (12.6 kB view hashes)

Uploaded Python 3

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