收集Elm项目依赖项的许可证信息。
elm-license-finder的Python项目详细描述
Elm许可证查找器
Python版本
使用Python CLI脚本
需要Python3
运行python3 -m pip install colorclass terminaltables semver
如果从elm.json
目录中运行python脚本:
python3 find_licenses.py
如果从其他目录运行python脚本:
python3 find_licenses.py relative/path/to/elm/project
使用Python包
需要Python3
使用python3 -m pip install elm_license_finder
安装包
导入所需的两个函数并使用它们:
import os
from elm_license_finder import get_project_dependencies, output_tables
dir = os.path.join("path", "to", "elm", "project")
# Parses elm.json and builds dependency and license data
deps = get_project_dependencies(dir)
# Outputs pretty tables with the information
output_tables(deps)
- 项目
标签: