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.12-cp313-cp313-win_amd64.whl (814.1 kB view details)

Uploaded CPython 3.13Windows x86-64

spdx_checker-0.1.12-cp313-cp313-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

spdx_checker-0.1.12-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.12+ x86-64manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.12-cp313-cp313-macosx_14_0_arm64.whl (435.8 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

spdx_checker-0.1.12-cp312-cp312-win_amd64.whl (814.1 kB view details)

Uploaded CPython 3.12Windows x86-64

spdx_checker-0.1.12-cp312-cp312-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

spdx_checker-0.1.12-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.12+ x86-64manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.12-cp312-cp312-macosx_14_0_arm64.whl (435.7 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

spdx_checker-0.1.12-cp311-cp311-win_amd64.whl (814.0 kB view details)

Uploaded CPython 3.11Windows x86-64

spdx_checker-0.1.12-cp311-cp311-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

spdx_checker-0.1.12-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.12+ x86-64manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.12-cp311-cp311-macosx_14_0_arm64.whl (435.7 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 72ae8de2be9f33d9889d35596f535795af8d9ad7744bba98acc0c630739dc3c1
MD5 44e86fb0c9ad9b49f4041ad4cdd78bc2
BLAKE2b-256 8925f68a17eda56658130c65cd57fcb88aecb64f318df881b09403785a3e7674

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.12-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a84f57fbf1839534987fad1bb8dee3165dc88debf1d9ee1aec56a1efbff86018
MD5 04b1fd6f58414617c8783ad5dab6742e
BLAKE2b-256 9b146a0fa1d2a74c0ba96b4cbabd1597aabf464ce9652679292c0ebe0e9ae2ec

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.12-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d154db19528f201043bcfa558a8f2c556be2ff376225ba799c11d226f6c312f8
MD5 701b28d3bfea4d30b1c3505a7bf96e60
BLAKE2b-256 16c5d46e0fc142dc562d57324dabadf8ea0a1e5816eadd481897a82b64b5195d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c5395c6d906b999ff780bb16ed6c7c87a6cf774a144d51e49c764adaea6f1783
MD5 c8f8207584b3578b975d8fe9b5c94594
BLAKE2b-256 986b756960a284e6cfa7ce8de14d86d49b4fbe756a87abbd314343dc62a5a3e1

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.12-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6c7f6bf8e209dc3351bbb36bffbc5bbe24769680f9e04d3fae4759057c793d38
MD5 d652ff2259d8004f134ee913c77105ae
BLAKE2b-256 3a4ecdff7f43a43cd6f05716a06f081a4b303c61aac5f05fbe9bc88d0fbb201e

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.12-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cb0d3393435d07401d8f3bd0a4869760cbed027f921c8c22174e3877bd1301e6
MD5 26845802d4cf9bc32fe9be05b4492038
BLAKE2b-256 5f1c2afc309c388ac2f954e94d2a9d9ae5f9be2faa1c00ce044d4dbf74b2d9cc

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.12-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 67a9c5e3e89d96a2f18269ede735871c492cd7c4ef6ca77b3b930bf892861162
MD5 496d0ce82ce9c53108d5236cfa8b6eb4
BLAKE2b-256 bbe7289633927029d71f689d42d93f12806ae58d7d7272d647e9b5ab9e7e63ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d6205df36fdae815c40e04bbb563723cd3b80a0ddfd528d71b302314db19d00e
MD5 c2d141d45920dcfc09ee6a74ce45c624
BLAKE2b-256 62d2ec34dad5b7684651ffe4343366f0f38d497131839fa3ff6277bacb00d0a3

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.12-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 451da74ec41684fa469aa979498750529f54e5d375f771d1e154e6168cdd58ab
MD5 340dbfedad086826a7c245a51d990030
BLAKE2b-256 bbcd0ad173ebdfed0e377d45f0be8037be408ef3bbf24b4c06308833ca10fc35

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.12-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e21fe7b869c702769d65a04558408d385c53c08054a4d012343eb4414cec488c
MD5 0fbbfaafad8a981b0944778392f104eb
BLAKE2b-256 3d893ec41e4e308f5a1da38743187d68c3cad3a42e2f2ca4ed67acf23d785635

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.12-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64c862756465ec4539544a58854c469069d6239e572d5ba0d2c3bd2c0c95eb47
MD5 1b5c3064a7c15b321481f9979a400f56
BLAKE2b-256 a7aa0584d0c09408ebf16c38050e6ba8bb588585e414abfef280cf2a17ae7da1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.12-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4b665a7bba98d66bef06013cfc9cb5931e886f3338561787fe926aa0238e4cb1
MD5 3d0be00046650739d9b2eb6a4e97fa82
BLAKE2b-256 d87799596eeab1f270e6be9012f21399ce9f2bfc12db6265d2cb896829bccda0

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