Special Thanks : Aboutcode project -- what makes our tools SPDX-Native
A tool writtern by Python for open source copyright compliance and in future it can support other compliance scan.
“Open source compliance is the process by which users, integrators and developers of open source software observe copyright notices and satisfy license obligations for their open source software components” — The Linux Foundation
Now compliance-zhangfei is in its prototype, it's only a cli-tool for scan software license and maybe other metadata.
emmm ... Vue-UI and Django_rest_api is on the way.
Our purpose is to build a expert system to help people who uses opensource software to well obey their license and copyright obligations.
Build environment: Ubuntu Linux 20.04 (recommended) / M$ Windows 10
Build tool: VC buildTool (if M$ Windows) | Python 3.6+ | pip 20.3.3+
1 - Now you can simply git clone the code
2 - just run "./configure" | in Windows 10 , just run ".\configure"
Have a cup of coffee and wait for everything to be done.
You can type :
scancode -l -n 2 --json-pp license.json samples
in Windows 10 :
.\scancode -l -n 2 --json-pp copyright.json samples
(If you need extract your files,you can type :
scancode --extractcode -l -n 2 --json-pp license.json samples
in Windows 10 :
.\scancode --extractcode -l -n 2 --json-pp copyright.json samples)
--extractcode means extract all of your files in folder
-l means license scan
-n 2 means 2 threads will be used in scan
--json-pp means json will be used for output format
license.json means the output report's name
samples means what folder you will scan
docker pull smartsyoung/compliance-zhangfei:v0.2
docker run -v $PWD/:/project smartsyoung/compliance-zhangfei:v0.2 -l --json-pp /project/scan_result.json /project
Python编写的用于扫描开源版权合规性的工具,未来可以支持其他合规扫描。
“开源合规性是开源软件的用户、集成商和开发人员遵守版权声明并履行其开源软件组件许可义务的过程”——Linux 基金会
现在,张飞合规工具处于原型阶段,它只是一个用于扫描软件许可证和其他元数据的 cli 工具。
Vue-UI 和 Django_rest_api 正在开发中。
我们的目的是建立一个专家系统,帮助使用开源软件的人很好地遵守他们的许可和版权义务。
运行系统需求: Ubuntu Linux 20.04 (recommended) / M$ Windows 10
环境搭建工具: VC buildTool (if M$ Windows) | Python 3.6+ | pip 20.3.3+
1 - 现在,你可以直接克隆该项目代码
2 - 接下来只需要运行 "./configure" | Windows 10 系统只需要运行 ".\configure"
这时你可以喝杯咖啡休息一下,马上项目就可以正常使用
你可以键入 :
scancode -l -n 2 --json-pp license.json samples
Windows 10 系统可以键入 :
.\scancode -l -n 2 --json-pp copyright.json samples
(如果你的文件夹中有压缩包需要解压,你可以直接键入 :
scancode --extractcode -l -n 2 --json-pp license.json samples
Windows 10 系统可以键入 :
.\scancode --extractcode -l -n 2 --json-pp copyright.json samples)
--extractcode 表示解压文件夹中所有的压缩包(压缩包中仍含有压缩包也会被解压)
-l 表示扫描license
-n 2 表示使用两个线程扫描文件
--json-pp 表示将以json的格式输出结果
license.json 表示输出的文件名
samples 表示你将要扫描的文件夹
docker pull smartsyoung/compliance-zhangfei:v0.2
docker run -v $PWD/:/project smartsyoung/compliance-zhangfei:v0.2 -l --json-pp /project/scan_result.json /project
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。