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.
Supported platforms
The wheels published by the GitHub Actions workflow are built with cibuildwheel. The table below lists all supported operating systems and Python versions for the pre-built wheels.
| Operating System | Python versions / ABI |
|---|---|
| macOS (arm64) | 3.11, 3.12, 3.13 (cp311, cp312, cp313 — macosx_arm64) |
| manylinux (x86_64) | 3.11, 3.12, 3.13 (cp311, cp312, cp313 — manylinux_x86_64) |
| musllinux (x86_64) | 3.11, 3.12, 3.13 (cp311, cp312, cp313 — musllinux_x86_64) |
| Windows (amd64) | 3.11, 3.12, 3.13 (cp311, cp312, cp313 — win_amd64) |
Example Usage
import spdx_checker
spdx_checker.check_license(
"MIT",
["example1.py", "example2.svelte", "example3.html"]
True,
False
)
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
Metadata
Release files for spdx_checker 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| spdx_checker-0.1.16-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for spdx_checker-0.1.16-cp311-abi3-win_amd64.whl |
| spdx_checker-0.1.16-cp311-abi3-musllinux_1_2_x86_64.whl | CPython 3.11 | abi3 | Linux musl 1.2+ x86-64 | Details for spdx_checker-0.1.16-cp311-abi3-musllinux_1_2_x86_64.whl |
| spdx_checker-0.1.16-cp311-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.12+ x86-64, Linux glibc 2.17+ x86-64 | Details for spdx_checker-0.1.16-cp311-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| spdx_checker-0.1.16-cp311-abi3-macosx_14_0_arm64.whl | CPython 3.11 | abi3 | macOS 14.0+ ARM64 | Details for spdx_checker-0.1.16-cp311-abi3-macosx_14_0_arm64.whl |
Total release size: 4.6 MB
Release files / spdx_checker-0.1.16-cp311-abi3-win_amd64.whl
| Download URL | spdx_checker-0.1.16-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 820.3 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b426c87fb5c79fe48177cb77a118d4e1e63e7a723626fbe1913278d8a700f814
|
|
BLAKE2b-256 checksum How to use checksums |
f5ae833a4efbbeceb4d435b7e074f2505974f0b4330f3bbfadc6e60ba1828a20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / spdx_checker-0.1.16-cp311-abi3-musllinux_1_2_x86_64.whl
| Download URL | spdx_checker-0.1.16-cp311-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e1865844339b5a9783d933bc7e65ad15ca1d3b14633547031a59acb9229e0ff7
|
|
BLAKE2b-256 checksum How to use checksums |
6b1b3fba5d4f8a45d13c3d052e89f1526c82861934a6b406587bb27a34e9f95e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / spdx_checker-0.1.16-cp311-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | spdx_checker-0.1.16-cp311-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
363946ebb00d76891d9e2aef21d6c32b991a18d189da4619aff213401e7c6c80
|
|
BLAKE2b-256 checksum How to use checksums |
6b85b5e57435c877accc7f869401cf4e5fa1ca0f38972a0f7b645f7418e17c2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / spdx_checker-0.1.16-cp311-abi3-macosx_14_0_arm64.whl
| Download URL | spdx_checker-0.1.16-cp311-abi3-macosx_14_0_arm64.whl |
|---|---|
| Size | 429.6 kB |
| Tags | CPython 3.11 abi3 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
082897bf07e36c38262d5156e52ce51b23b81fe751a6e3a4477ab182083e7301
|
|
BLAKE2b-256 checksum How to use checksums |
b0175441000ed368af8f54c72623938503921c5ce67c0e7568589948f3a9f4a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for spdx_checker 0.1.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.