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.

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

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.9
File Interpreter ABI Platform Actions
spdx_checker-0.1.9-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.9-cp311-cp311-musllinux_1_2_x86_64.whl
spdx_checker-0.1.9-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.9-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
spdx_checker-0.1.9-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details for spdx_checker-0.1.9-cp311-cp311-macosx_14_0_arm64.whl

Total release size: 3.8 MB

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

Download URL spdx_checker-0.1.9-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
8a2b51cfea49c69b7245d6713311f8efe234107c940033180d5d0f1b23006d3b
BLAKE2b-256 checksum
How to use checksums
015e06757ea79d819ec9656c48fffe8db1bb29f9e9ed0840b9dfea2f5c514dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Release files / spdx_checker-0.1.9-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.9-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
8d02468d62b0425ae20dc230c220c246259c606766b4af419cc91b3a6df2a053
BLAKE2b-256 checksum
How to use checksums
96bf0d874020c8afc3ea239d59bb362c2a1aeeb231e4fa1b8dc2bcfb29ed4f27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

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

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

Security for spdx_checker 0.1.9

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