Skip to main content

Fast SPDX License Checker for Source Code

Project description

SPDX License Checker

spdx-checker is a fast Python package for validating and analyzing SPDX license headers in your projects. It leverages Zig for exceptional speed and efficiency. The checker raises an error immediately if any file contains an incorrect or missing license header.

Example Usage

import spdx_checker

spdx_checker.check_license("MIT", ["example1.py", "example2.svelte", "example3.html"])

Development

Issues with uv caching

To force uv to ignore existing installed versions, pass --reinstall to any installation command (e.g., uv sync --reinstall or uv pip install --reinstall ...).

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

spdx_checker-0.1.4-cp313-cp313-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.13Windows x86-64

spdx_checker-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.4-cp313-cp313-macosx_14_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

spdx_checker-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.4-cp312-cp312-macosx_14_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

spdx_checker-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.4-cp311-cp311-macosx_14_0_arm64.whl (5.8 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

Details for the file spdx_checker-0.1.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 230f7414750fc7bcc5a9c9ed244d2533e0a39818157d8681048ae6ab0bf9fef5
MD5 d8c41876061091f7f7d064a8a65bb9a7
BLAKE2b-256 9e66e86dcbf5ea1fabf74239de9205a8c6f272821c25a53dd81c13253e83885d

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db37586e7fc371e56853678ae34b8dbe25764466e171f7daaafdd9c183d70764
MD5 be3ac1d7b10d2c78eff2fc386a3cdf57
BLAKE2b-256 c9f9e7f5458850d042aa7d1255ff000f18bcbfbcc56d2b2c439da6879ece4619

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.4-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.4-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 823425189c1ceb83bc0c80039b6988fc6071e1b67ffc14466cde341de7758b91
MD5 97baff2ebde60968ecfac0f630245139
BLAKE2b-256 6e03413511df420eac34ccac4e56dd0e30ae73ce54c93a758549130f6150a8b4

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e7795c5b48d5ceda27cf5c9f196597e33b1aaa5ff5008e4b1eb493e18c4fb0f
MD5 3df25e0d52b496ea674524d2d0265420
BLAKE2b-256 5e87d473db182a1a6347e4d5e3b01e325d8640b6ff5df00855a09d1cb16e5bfa

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.4-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.4-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 795e0b0ba01bf00cb5ab5c02c635b054fc80b25c562e60f0eca6ef7a2412e4e8
MD5 33d9f9d163502e0c56ae424cfbb1738b
BLAKE2b-256 93944e3863d9dc6ddf69831d8d293c19ae62c0d986ac6641137149b4d12e83d7

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b784ccd0e5784b3dcc7e0ca31378232159fb8fd293741990146134533edd2c4
MD5 fed82ca4894ababa5ae4a4bdf8a5db69
BLAKE2b-256 fd170775c35c0f5ca246141f492c2df7abae09bc92ed0cd87321502fe61b34f9

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.4-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.4-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1a0598dfcab1523b740867ba784bfa29578b8b65c1b1a547c81149e47fba4908
MD5 995d5a6ce1c8a855d86cf310ebdebe61
BLAKE2b-256 c060b060790155bb65504c211e762f116ccedf49380d266cc1b849f635be8ba5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page