收集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)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用prepared语句在oracle中插入日期   对点具有双重值的java   使用多个通配符的java请求映射   java Springboot为什么要设置springbootstartertomcat   除了对JavaBean的请求之外,还使用servletContext的servlet   java如何清除OCSID。返回到池的连接时的CLIENTID JDBC客户端信息属性   将整型数组转换为光栅Java   java使用对象引用作为互斥锁   java为什么在编程语言中使用sin函数返回奇怪的sin值不像计算器   java如何将JButton链接到对象并调用相关方法   php用Java发送POST数据   导航属性的java模拟加载   java多个活动错误Android试图对空对象引用调用虚拟方法“”   java Android更改ActionBar文本颜色   如何使用带有java反射且不带开关的parant引用创建子类