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

Uploaded CPython 3.13Windows x86-64

spdx_checker-0.1.10-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.10-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.10-cp313-cp313-macosx_14_0_arm64.whl (435.8 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

spdx_checker-0.1.10-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.10-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.10-cp312-cp312-macosx_14_0_arm64.whl (435.7 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

spdx_checker-0.1.10-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.10-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.10-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.10-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ad16c0a6e1fa85ce6754e68d50a04ee0d09d04d8c173ebd5b73c9c57dd7624fd
MD5 f1e957c2521d70041a784d6d97131058
BLAKE2b-256 393a46f33277f0fdc7d3b6409b3b9580352edaf4cad6a57d3b3bf68bea7445f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.10-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 28ba428b48cece1931d0b291de2f6f03e2f153e4c5e3766739518863b1a4c64a
MD5 04a221cfb73f53e2f6c3cf84949291b9
BLAKE2b-256 4b5c221da1f7b4ffb9ca1582ec50546712fef60f63c11bcc9b3e6ccae7467f52

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.10-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.10-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5726603e093ca9f123222215f9ef324cac7b0ebf514db7e305c6b9805696f486
MD5 ec004baede34f37e78bf4def53599d59
BLAKE2b-256 7747538cbaa1af986968517efb1fe38de9d4b58ee9dbe356f827a0e82b0475f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.10-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 69f183a4db70684a9196389ffee5e9ba9c8eeb1f7ca2aa5ee20316a59decdff6
MD5 de13cf225dd08ba51f1f791b0f0afb76
BLAKE2b-256 ad8afd52290454c740b434d318546bb7da2e3a4a810f1f8530c3c4551f24bf38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.10-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0a2588d3465a1d682de0757e9d401fc06634a9078caa88b207571c97394525ff
MD5 62e95c008a37ba7f361f40d920b09f5c
BLAKE2b-256 1a6f1f4cb3b355cd0d37b8b0c03cee91ae43976df10152717fbd373647c25bf7

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.10-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.10-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dbf05cf97df90c8a652c227891767ad189782f34ad49c5dad7054eb0eb81baf1
MD5 eeb51fc9bb11c49a3769a4dd92a1334a
BLAKE2b-256 3ea45bf3f220a3853b4a4c73c125e06c06e79ee0165c6944eb005a559ef7d7f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.10-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f96fc192df19fa17bd88ed61828899d550eb46fefd66a454a63a57414439022b
MD5 b3828756f78ad11314f18add8227c19c
BLAKE2b-256 7aad35d2b9dc904b1bf87f459293f0eafd27f76c3a8e11820c6280bd22975d49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.10-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f8d76cbc68e1b713617510a7cd500bb95f60c7cbcdb67b91ba11947bad5d400e
MD5 8ae9fb2d750b51f595db9b76b53f431c
BLAKE2b-256 63e3b37f9bc226656fc464edf5e944fcf4bf5dd7897c24c7a1993b477a770692

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.10-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.10-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf4335cf612240ad3f4ba788f357c0b7c0c8981ea8b86e0a8df0365cd5ff6af2
MD5 e925ab1125f7ae2f3aea093fe586812f
BLAKE2b-256 f5ea25f0bebb4846c4c7e526630de62288e0f1830d32941c94433de2c863f1ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.10-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6cf0239c43ba75960eb010ad63dee6f6c1ba093bed6bf301a40d8654639e2828
MD5 1253ab230a53df70c6d22befdc89fd5f
BLAKE2b-256 ce0ac0f68c81f108fa93e7a2a7778e010e4f1d53588fdd2d5ff042c5c0830d03

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