跳转到主要内容

matchcode-toolkit

项目描述

MatchCode toolkit 是一个Python库,通过实现HaloHash算法并将其用于ScanCode toolkit和ScanCode.io的插件和管道,为ScanCode toolkit和ScanCode.io提供文件和目录指纹功能。

安装

MatchCode toolkit 必须与ScanCode toolkit或ScanCode.io相同的环境中安装。

从PyPI

pip install matchcode-toolkit

此仓库的检出也可以使用pip的--editable选项安装到环境中,

# Activate the virtual environment you want to install MatchCode-toolkit into,
# change directories to the ``matchcode-toolkit`` directory
pip install --editable .

或构建到轮中然后安装

python setup.py build bdist_wheel
pip install matchcode_toolkit-*-py3-none-any.whl

用法

MatchCode toolkit 为ScanCode toolkit提供了--fingerprint选项。这是一个扫描插件,将字段directory_content_fingerprintdirectory_structure_fingerprinthalo1添加到资源中,并计算这些值。

scancode --info --fingerprint <scan target location> --json-pp <output location>

MatchCode toolkit 为ScanCode.io提供了scan_and_fingerprint_packagefingerprint_codebase管道。

这些管道将资源和目录指纹添加到extra_data字段。

许可证

SPDX-License-Identifier: Apache-2.0

ScanCode.io软件根据Apache许可证版本2.0进行许可。使用ScanCode.io生成的数据按原样提供,不提供任何保证。ScanCode是nexB Inc.的商标。

除非遵守许可,否则您不得使用本软件。您可以在以下地址获取许可副本:https://apache.ac.cn/licenses/LICENSE-2.0 除非适用法律要求或书面同意,否则在许可下分发的软件按“现状”基础分发,不提供任何形式的明示或暗示保证。有关许可的具体语言,请参阅许可文件,以了解管理许可权限和限制的具体语言。

ScanCode.io生成的数据按“现状”基础提供,不提供任何形式的明示或暗示保证。任何由ScanCode.io创建的内容均不应被视为或用作法律建议。有关任何法律建议,请咨询律师。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

matchcode_toolkit-5.1.0.tar.gz (123.9 kB 查看散列)

上传时间 源代码

构建分发

matchcode_toolkit-5.1.0-py3-none-any.whl (21.5 kB 查看散列)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面