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.5-cp313-cp313-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.13Windows x86-64

spdx_checker-0.1.5-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.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.5-cp313-cp313-macosx_14_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

spdx_checker-0.1.5-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.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.5-cp312-cp312-macosx_14_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

spdx_checker-0.1.5-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.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.5-cp311-cp311-macosx_14_0_arm64.whl (5.8 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6af7da5a895fc5ee3ec7d7a05be1168bf51ae3c5f5f24b9d8c62c1a0de156674
MD5 bdce3e050e9d31a1789470761ef03ea6
BLAKE2b-256 ea7c39b7a1a5d95dca438f7b3b9fc32e767c9adde33516cedaf17cd014be2424

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2108baf74046eb89faddce6fb0d07b44d00018bd13c6a7f22b4eca092db497db
MD5 7d7dcd11b1350998f64605b766c6a274
BLAKE2b-256 d642d10f694f4f3c0846c5c92f5a0fafcb0dda35536e73a30ebc3801cb27b450

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 63177168386b8c887f68863257fcf4ba83bdb25c78fc5ac737e4411af279be43
MD5 6ae65dad7d343dc92fbe2966f907b667
BLAKE2b-256 07d2aac09a834347000fa9d499f1141df50ddd943d813b77ea40783d0c47f51c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 bf009d2e244a5b752fc90016e86f66416d2251f81ce365b5e5b248141c3aacdf
MD5 76bb641c6ba208d7c086a443ebe24ba3
BLAKE2b-256 64d86310feab5b46af93ef3492f63e1aaf2e764556431dc242e91030983cf051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6680d2bf09873226e12610b1f6417afcd5dd1e14242fdadf8cf70912b5eb1750
MD5 d2b046cc8884646d8785e7ece440ded4
BLAKE2b-256 59c0b075e6b3019025e76aa250ac0a0760e652d3e0968c8021199594d208447a

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b56733083cb4f3558c92b558bb406171fa2ef0dc105e5188f833f000703ec6d2
MD5 c25cb19058e91b54ca83da5725d1ffe9
BLAKE2b-256 8f39b29cb7f2109bd66a69fe37b5a7cf9dfdfc1bebf7fb08694f8943820daca7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 da3ae5c2f21bd3713422612c15212c3749c0548dab08335bb5d6ec8e956507c6
MD5 8d76fb07f1d75f1f5be7fd1961a9681b
BLAKE2b-256 f57e9704a930fc16acf1f78282283619c01634c0c95543b26c159012d09ffa2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 75d68d5b44badc5b767852d2980c09177bc9959e9be1bee7c022c4b118217645
MD5 3987166cd54a4e644b1bd0a6bc37307c
BLAKE2b-256 cf49764d631b211b30f1011939edd1c9cfa80a4f3ec15a87c2b087e98528d0f5

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 876cbe084b460a9c387179768d7517d896c68052d35d4602e3b19a4533225411
MD5 412cfa9915ec3a0d46f99a0802fb158e
BLAKE2b-256 1b6fcf14df820aad30896d942c0846085130e942841760d21864caa26ea0b1f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.5-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e84f9c2869b9f6ca6a5b324734fdf2da50f15e4a24f9c1388b928ee644d65a18
MD5 51471646ec4ff00e5e166c4f5c86036a
BLAKE2b-256 0ed37a4b1b33577180ee6cacb4a958c5ce19b318a3b6cb4942fc47a4a6140b8e

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