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.

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

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

Uploaded CPython 3.13Windows x86-64

spdx_checker-0.1.13-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.13-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.13-cp313-cp313-macosx_14_0_arm64.whl (436.2 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

spdx_checker-0.1.13-cp312-cp312-win_amd64.whl (814.0 kB view details)

Uploaded CPython 3.12Windows x86-64

spdx_checker-0.1.13-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.13-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.13-cp312-cp312-macosx_14_0_arm64.whl (436.1 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

spdx_checker-0.1.13-cp311-cp311-win_amd64.whl (813.9 kB view details)

Uploaded CPython 3.11Windows x86-64

spdx_checker-0.1.13-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.13-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.13-cp311-cp311-macosx_14_0_arm64.whl (436.1 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

Details for the file spdx_checker-0.1.13-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 66d2074fce6aefe0507f6da14d0ede631cb87f5ea7bb9990c259413fc765acd5
MD5 65ff35f010c04a36a57c40a3132181c9
BLAKE2b-256 fccfdabff89dc49d406308097b3c4891ebaa978e5d5bfa1e88e874781efbb4e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a38098c17f3f6c14f986bc149fe96471da150f9e55d9579096f7935748d756b7
MD5 418606d5009e809c128e8b4a839cc866
BLAKE2b-256 41e185cac10d0e5a6a1722e66e18b4e5b649df8984982c5ae9f6e601e4487266

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.13-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.13-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e72207b7fd97a0619ee13be724ca565c16b6d70072023bdf3903db7d9a42a456
MD5 92ff8467026e22ed1a1f999b1ad77ad8
BLAKE2b-256 b47bebe7a694e7690d93bdc338f946857603c1f8bbd0a8a2d10d64a4de6d143a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6764c84829f2f8f11c7a0a24677a08285081be52b1751b870a813c208468f241
MD5 e0fe344b84ecd4add44022680628df9f
BLAKE2b-256 82b722e29cdbae17c179868bdc489752905e6be0a4da3d26d5fe5e08c6ef5a5c

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.13-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c455683640ea0793739b749ddbed54502d63caf2298812f0260136d5db32f52b
MD5 4cf062c49a58f79c1a692648306e4fea
BLAKE2b-256 d40f60d1578314030f0fad2b27c61836088bd22f118d209b5b29c6c3294c3cc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8a17acd31d8e5fcf15273f7a528137845c545f09ee39c23150e1eb266ce3d7cd
MD5 1f9e92786b7e98a2c963972a117deb26
BLAKE2b-256 8d9a5a103de7ed3bd5348d716ae25266f5927dfe44e47547606926b070e5fbb5

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.13-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.13-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e3e7a04432c2cab487dba5986087f801b8220a3682e8617159f722eab1f1f14
MD5 300af55c2f6e5ca66fd70a392182af39
BLAKE2b-256 608930f22d9350144a3ab12800a1b1f02df667e1043cb2d87b7a215e418f7054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 af237d7c7489986d6b63856497cd0cbcebeced52b1b6c4f0bbed87f119c83f1c
MD5 0ea302ca23ca64681997347a007b810c
BLAKE2b-256 668cfdba5cd9dfeba3404d006b8032881d6dbe2b4083b0efdeecc8f1fb7e327c

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.13-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8ff35db94e770728aefec31cb25164397fd3d71142c7ec99e1292af07875dfed
MD5 2a43fee4b4e2d1ef346a7af8c3c231cd
BLAKE2b-256 7ac3d9bc008d787a908cf6cb7771debf897d78b55028ecc0d1d8efe84f1f5e31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 822db4b32844f0e13047d197e0eeec83b1700697d50df9dc7283e30faa9ca698
MD5 b6775f92c723380a048a7d825b810dc9
BLAKE2b-256 1a774ca1ed2fa935f440361570368de09f89ad863008de4bf3ca06d8cdb11978

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.13-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.13-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a937dc598a066e5d5fd4a15b3e72c0665ae5f57a1d5235272df74786419f4963
MD5 dd4fec6d986155716a09e14f364d074f
BLAKE2b-256 d578d58c007fabc36d8b1610725c763b38cbbd1ebde43a59efe8db72621a7958

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.13-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e0984038f39a4df936be47b77bdff1a33aa651dfa7a3e7092595a709624315b3
MD5 54762b3e98dceadb8e0eb2fe310ee859
BLAKE2b-256 7f3516c7cf4f518b3b9eabf2c99cde5223efe3dba1f169b6beeab5dbdfcfe786

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