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.14

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.14
File Interpreter ABI Platform Actions
spdx_checker-0.1.14-cp38-abi3-musllinux_1_2_x86_64.whl CPython 3.8 abi3 Linux musl 1.2+ x86-64 Details for spdx_checker-0.1.14-cp38-abi3-musllinux_1_2_x86_64.whl
spdx_checker-0.1.14-cp38-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64, Linux glibc 2.12+ x86-64 Details for spdx_checker-0.1.14-cp38-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
spdx_checker-0.1.14-cp38-abi3-macosx_14_0_arm64.whl CPython 3.8 abi3 macOS 14.0+ ARM64 Details for spdx_checker-0.1.14-cp38-abi3-macosx_14_0_arm64.whl

Total release size: 3.8 MB

Release files / spdx_checker-0.1.14-cp38-abi3-musllinux_1_2_x86_64.whl

Download URL spdx_checker-0.1.14-cp38-abi3-musllinux_1_2_x86_64.whl
Size 1.7 MB
Tags CPython 3.8 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
10353ba9ad7b2a25fc7b1a7162b128d77eafe32923edc7819b5bfac1b8789dfd
BLAKE2b-256 checksum
How to use checksums
167155474f1d0eb007b83a575e3429ecc3d8ad1458d0d85a7a9c888fb8c24376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.7

Release files / spdx_checker-0.1.14-cp38-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL spdx_checker-0.1.14-cp38-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.8 Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a3c74b06a6ac8df7aac65ea44d03cd12e416f0b8e6ccac8c2f6924b417e8dc4f
BLAKE2b-256 checksum
How to use checksums
b23f4a19ee1d748c9ee39fc303df1377bcd22ee7d4095626851b2716aed72569
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.7

Release files / spdx_checker-0.1.14-cp38-abi3-macosx_14_0_arm64.whl

Download URL spdx_checker-0.1.14-cp38-abi3-macosx_14_0_arm64.whl
Size 436.1 kB
Tags CPython 3.8 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
7504d9617fa88c037f2f99bb42dd8d3b432b955f218ce15584dff421a0a823e2
BLAKE2b-256 checksum
How to use checksums
7d832a64bc901c9a476bbbe2557eec14423dbc390392cc3e3f76c882b7055fcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.7

Security for spdx_checker 0.1.14

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