Skip to main content

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"])

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

Metadata

Release files for spdx_checker 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for spdx_checker 0.1.13
File Actions
spdx_checker-0.1.13-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for spdx_checker-0.1.13-cp313-cp313-win_amd64.whl
spdx_checker-0.1.13-cp313-cp313-musllinux_1_2_x86_64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ x86-64 Details for spdx_checker-0.1.13-cp313-cp313-musllinux_1_2_x86_64.whl
spdx_checker-0.1.13-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.12+ x86-64, Linux glibc 2.17+ x86-64 Details for spdx_checker-0.1.13-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
spdx_checker-0.1.13-cp313-cp313-macosx_14_0_arm64.whl CPython 3.13 CPython 3.13 macOS 14.0+ ARM64 Details for spdx_checker-0.1.13-cp313-cp313-macosx_14_0_arm64.whl
spdx_checker-0.1.13-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for spdx_checker-0.1.13-cp312-cp312-win_amd64.whl
spdx_checker-0.1.13-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details for spdx_checker-0.1.13-cp312-cp312-musllinux_1_2_x86_64.whl
spdx_checker-0.1.13-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.12+ x86-64, Linux glibc 2.17+ x86-64 Details for spdx_checker-0.1.13-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
spdx_checker-0.1.13-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details for spdx_checker-0.1.13-cp312-cp312-macosx_14_0_arm64.whl
spdx_checker-0.1.13-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for spdx_checker-0.1.13-cp311-cp311-win_amd64.whl
spdx_checker-0.1.13-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details for spdx_checker-0.1.13-cp311-cp311-musllinux_1_2_x86_64.whl
spdx_checker-0.1.13-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.12+ x86-64 Details for spdx_checker-0.1.13-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
spdx_checker-0.1.13-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details for spdx_checker-0.1.13-cp311-cp311-macosx_14_0_arm64.whl

Total release size: 13.9 MB

Release files / spdx_checker-0.1.13-cp313-cp313-win_amd64.whl

Download URL spdx_checker-0.1.13-cp313-cp313-win_amd64.whl
Size 814.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
66d2074fce6aefe0507f6da14d0ede631cb87f5ea7bb9990c259413fc765acd5
BLAKE2b-256 checksum
How to use checksums
fccfdabff89dc49d406308097b3c4891ebaa978e5d5bfa1e88e874781efbb4e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL spdx_checker-0.1.13-cp313-cp313-musllinux_1_2_x86_64.whl
Size 1.7 MB
Tags CPython 3.13 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
a38098c17f3f6c14f986bc149fe96471da150f9e55d9579096f7935748d756b7
BLAKE2b-256 checksum
How to use checksums
41e185cac10d0e5a6a1722e66e18b4e5b649df8984982c5ae9f6e601e4487266
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL spdx_checker-0.1.13-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.13 Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e72207b7fd97a0619ee13be724ca565c16b6d70072023bdf3903db7d9a42a456
BLAKE2b-256 checksum
How to use checksums
b47bebe7a694e7690d93bdc338f946857603c1f8bbd0a8a2d10d64a4de6d143a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp313-cp313-macosx_14_0_arm64.whl

Download URL spdx_checker-0.1.13-cp313-cp313-macosx_14_0_arm64.whl
Size 436.2 kB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
6764c84829f2f8f11c7a0a24677a08285081be52b1751b870a813c208468f241
BLAKE2b-256 checksum
How to use checksums
82b722e29cdbae17c179868bdc489752905e6be0a4da3d26d5fe5e08c6ef5a5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp312-cp312-win_amd64.whl

Download URL spdx_checker-0.1.13-cp312-cp312-win_amd64.whl
Size 814.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c455683640ea0793739b749ddbed54502d63caf2298812f0260136d5db32f52b
BLAKE2b-256 checksum
How to use checksums
d40f60d1578314030f0fad2b27c61836088bd22f118d209b5b29c6c3294c3cc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL spdx_checker-0.1.13-cp312-cp312-musllinux_1_2_x86_64.whl
Size 1.7 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
8a17acd31d8e5fcf15273f7a528137845c545f09ee39c23150e1eb266ce3d7cd
BLAKE2b-256 checksum
How to use checksums
8d9a5a103de7ed3bd5348d716ae25266f5927dfe44e47547606926b070e5fbb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL spdx_checker-0.1.13-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.12 Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0e3e7a04432c2cab487dba5986087f801b8220a3682e8617159f722eab1f1f14
BLAKE2b-256 checksum
How to use checksums
608930f22d9350144a3ab12800a1b1f02df667e1043cb2d87b7a215e418f7054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp312-cp312-macosx_14_0_arm64.whl

Download URL spdx_checker-0.1.13-cp312-cp312-macosx_14_0_arm64.whl
Size 436.1 kB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
af237d7c7489986d6b63856497cd0cbcebeced52b1b6c4f0bbed87f119c83f1c
BLAKE2b-256 checksum
How to use checksums
668cfdba5cd9dfeba3404d006b8032881d6dbe2b4083b0efdeecc8f1fb7e327c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp311-cp311-win_amd64.whl

Download URL spdx_checker-0.1.13-cp311-cp311-win_amd64.whl
Size 813.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
8ff35db94e770728aefec31cb25164397fd3d71142c7ec99e1292af07875dfed
BLAKE2b-256 checksum
How to use checksums
7ac3d9bc008d787a908cf6cb7771debf897d78b55028ecc0d1d8efe84f1f5e31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL spdx_checker-0.1.13-cp311-cp311-musllinux_1_2_x86_64.whl
Size 1.7 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
822db4b32844f0e13047d197e0eeec83b1700697d50df9dc7283e30faa9ca698
BLAKE2b-256 checksum
How to use checksums
1a774ca1ed2fa935f440361570368de09f89ad863008de4bf3ca06d8cdb11978
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL spdx_checker-0.1.13-cp311-cp311-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
SHA-256 checksum
How to use checksums
a937dc598a066e5d5fd4a15b3e72c0665ae5f57a1d5235272df74786419f4963
BLAKE2b-256 checksum
How to use checksums
d578d58c007fabc36d8b1610725c763b38cbbd1ebde43a59efe8db72621a7958
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.13-cp311-cp311-macosx_14_0_arm64.whl

Download URL spdx_checker-0.1.13-cp311-cp311-macosx_14_0_arm64.whl
Size 436.1 kB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
e0984038f39a4df936be47b77bdff1a33aa651dfa7a3e7092595a709624315b3
BLAKE2b-256 checksum
How to use checksums
7f3516c7cf4f518b3b9eabf2c99cde5223efe3dba1f169b6beeab5dbdfcfe786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Security for spdx_checker 0.1.13

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page