用于使用PurlDB及其API的工具包和库
项目描述
purldb-toolkit是一个用于使用PurlDB、其API以及各种相关库的命令行工具和库。
purlcli 命令充当PurlDB REST API端点客户端,以暴露PURL服务。它既是一个工具,也是一个库,同时也是如何以编程方式使用服务的示例。
安装
pip安装purldb-toolkit
用法
使用此命令获取基本帮助
$ purlcli --help Usage: purlcli [OPTIONS] COMMAND [ARGS]... Return information from a PURL. Options: --help Show this message and exit. Commands: metadata Given one or more PURLs, for each PURL, return a mapping of... urls Given one or more PURLs, for each PURL, return a list of all... validate Check the syntax of one or more PURLs. versions Given one or more PURLs, return a list of all known versions...
以及以下子命令
验证PURL
$ purlcli validate --help Usage: purlcli validate [OPTIONS] Check the syntax of one or more PURLs. Options: --purl TEXT PackageURL or PURL. --output FILENAME Write validation output as JSON to FILE. [required] --file FILENAME Read a list of PURLs from a FILE, one per line. --help Show this message and exit.
收集PURL的软件包版本
$ purlcli versions --help Usage: purlcli versions [OPTIONS] Given one or more PURLs, return a list of all known versions for each PURL. Version information is not needed in submitted PURLs and if included will be removed before processing. Options: --purl TEXT PackageURL or PURL. --output FILENAME Write versions output as JSON to FILE. [required] --file FILENAME Read a list of PURLs from a FILE, one per line. --help Show this message and exit.
收集PURL的软件包元数据
$ purlcli metadata --help Usage: purlcli metadata [OPTIONS] Given one or more PURLs, for each PURL, return a mapping of metadata fetched from the fetchcode package.py info() function. Options: --purl TEXT PackageURL or PURL. --output FILENAME Write meta output as JSON to FILE. [required] --file FILENAME Read a list of PURLs from a FILE, one per line. --unique Return data only for unique PURLs. --help Show this message and exit.
收集PURL的包URL
$ purlcli urls --help Usage: purlcli urls [OPTIONS] Given one or more PURLs, for each PURL, return a list of all known URLs fetched from the packageurl-python purl2url.py code. Options: --purl TEXT PackageURL or PURL. --output FILENAME Write urls output as JSON to FILE. [required] --file FILENAME Read a list of PURLs from a FILE, one per line. --unique Return data only for unique PURLs. --head Validate each URL's existence with a head request. --help Show this message and exit.
资金
该项目由NGI Assure Fund资助,该基金由NLnet设立https://nlnet.nl/assure,NLnet是一家由欧盟委员会下一代互联网计划提供财政支持的机构https://nlnet.nl/,在通信网络、内容和技术总司的指导下,根据第957073号资助协议。
该项目还通过Google Summer of Code计划的资助,以及nexB Inc.的持续支持和赞助以及多位赞助者的慷慨捐赠。
许可证
版权(c)nexB Inc.及其它。保留所有权利。
purldb是nexB Inc.的商标。
SPDX-License-Identifier: Apache-2.0 AND CC-BY-SA-4.0
purldb软件根据Apache License版本2.0授权。
purldb数据根据CC-BY-SA-4.0许可集体授权。
有关许可证文本,请参阅https://apache.ac.cn/licenses/LICENSE-2.0。
有关许可证文本,请参阅https://creativecommons.org/licenses/by-sa/4.0/legalcode。
有关支持或下载,请参阅https://github.com/nexB/purldb。
有关nexB OSS项目的更多信息,请参阅https://aboutcode.org。
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。