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.

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

Uploaded CPython 3.13Windows x86-64

spdx_checker-0.1.11-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.11-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.11-cp313-cp313-macosx_14_0_arm64.whl (435.8 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

spdx_checker-0.1.11-cp312-cp312-win_amd64.whl (813.8 kB view details)

Uploaded CPython 3.12Windows x86-64

spdx_checker-0.1.11-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.11-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.11-cp312-cp312-macosx_14_0_arm64.whl (435.7 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

spdx_checker-0.1.11-cp311-cp311-win_amd64.whl (813.6 kB view details)

Uploaded CPython 3.11Windows x86-64

spdx_checker-0.1.11-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.11-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.11-cp311-cp311-macosx_14_0_arm64.whl (435.7 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f4e791d90207c172ecfd0d005c4ccb9f99dfae062888b29feeaad188bda82dc2
MD5 e252e327c3061846d081fddd74974931
BLAKE2b-256 394a7a5cf3fbb39ab4fcaf62d79af4a6f8aabd94d1f196eb55ec28da1678e3aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2e46ed09122f897677b4765b8df7dbf5dc762543f3d3b6a7bfb637716396f1b9
MD5 42c40adacba5d04687f1626eaefe126a
BLAKE2b-256 56b778772c5b692b57f8becebac37c18c805e174c8522eb2fea6c1412ae3a8ef

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.11-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.11-cp313-cp313-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ecfa47b2cee1219e916476cf6dfa46b4c7bbcd2012b9a32e30977fbe6d4dff31
MD5 de641a0b22450b6e02a7bfb15cd19809
BLAKE2b-256 cd67a4b94a99ed56ebfc11fb0415cb54ba582e46af423f6b68b0b0fb3fb3a70e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 015e35f679feba797779839ff8888d1be77e5417587becc9a6d27608fad80ada
MD5 ed7207316f782bd6254f60249e1e9c82
BLAKE2b-256 520b858adab0d8f1d33eacdb94404dec591e53368253caf364b44f2d0e5027e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 495bb2a6f9c890c81aaaa7ac1596284f83883dfefd4c2ce2381d2f2e9ffc68b3
MD5 aef4b53d81964b50bf60328a4c54326c
BLAKE2b-256 8a026ec17c0fa34f29db736c936e12b168dacc10682dceb40408fcb9810de605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4dcd91c3a8194c3afcf05029ed0f581810d029f8f7b183b1b9f7fcc547490a8e
MD5 99265679c13d78a19948ed5f1390b038
BLAKE2b-256 03dd8f59b43561da7b2c82ef194507b2b2c2999cc05527891c9776576e17fcb6

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.11-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.11-cp312-cp312-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a4831debf219331b12accf330adad722a428d54925087f70142f65046b849c2
MD5 d813e52d5cb3e038652f4203c6778b0a
BLAKE2b-256 d8b0020c1e53331888b2392f55e8dc554e47b72601000e0ebe5ef18d969b7a78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fca2218c5d658ed6c504a1ecb9b6868ff34830004dc12754908f07f6ace706bf
MD5 b35936c397937af68dd9faf090eaeb0a
BLAKE2b-256 17324b8fdf21dfdb22d35321c616a062e4ba76218782a9a7af5b6fa1bda1aa74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f8a5e3e78925ab01c11ee9d46848cb936ffc7e163b837cb75bf5c0cd380c26c9
MD5 33121f86e7b44f0b6814a27a0f6d3c56
BLAKE2b-256 0e53ccb5fe54615f22c85e315c7ce63c0c42e1953298c18a916610f28bd4cf4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e41ab2c35354a7f928840541488db9467330a9a6971d44af12eb24d80e4d7ac6
MD5 da7e6237685069b85b0fc1200f554eff
BLAKE2b-256 589b82920e74a35e21984ef282c09986c4780832830f48b9c98df28ef4f31f99

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.11-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.11-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dd2def57a01b6c75e02687a542170979d42c5aea612cfb99826d021f3a4b8291
MD5 816de273d6ba1cc56eedd22c8ddb76dd
BLAKE2b-256 b2c7f20c59e85e415e9aa15da19cbab1d8491944cd8e07a0a09ce8bafbaae694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.11-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 743ef72fa7f81d75793b71143ce20a7ebb939abd9f23363c3ab9bfaebe742018
MD5 fa2efa80d1bac976885baef4ad9c1d6b
BLAKE2b-256 c3ed68ed45da293bca97281858352afe08fc82ddfde3ca55af5cf54e48d4c85e

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