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

Uploaded CPython 3.13Windows x86-64

spdx_checker-0.1.6-cp313-cp313-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

spdx_checker-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.6-cp313-cp313-macosx_14_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

spdx_checker-0.1.6-cp312-cp312-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

spdx_checker-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.6-cp312-cp312-macosx_14_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

spdx_checker-0.1.6-cp311-cp311-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

spdx_checker-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

spdx_checker-0.1.6-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.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5bd9af76b478f157f19e50c3cdb982c8a505e7c491807c1c755a65e39adedddb
MD5 501d7e19ce0bcbaed40266242544b7f4
BLAKE2b-256 d15e190f41a815bdf37e341d39f443264db3fe9e2edf2b7288930271a0e537fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b5f4bd49b0f1bd08ced4c1d4142f2203ba978ff38e00535b8d8bdd7c02827734
MD5 5d24ae2cfa8698570ad496707182605f
BLAKE2b-256 ed4fb80722cd83cb4be4f1cf9a9462bb666764852054ed9bca83a82421041f10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2e0dbc7b5f916a92e8745f5ab244be04a316207b5c5960fc3d6ebb3d29f17943
MD5 5a9538ad212655cd65dc7694efce3113
BLAKE2b-256 7a7465bd4bb2de00e7b5c557189569c9814eb34028693ec9088e853caaa746b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f751984d16bde9b83146f0084f9b2fc8791a8142758c8e781b5aff0769eab83b
MD5 487e7441303d6eac73094b9afcd3d03d
BLAKE2b-256 6f05b5d1a88d2b7d7198bae2375141fe4ba1377594ef8554365dfbc00bcfb106

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f0e21b5aa2e453d1199e6e48ba0e42a0843f06832d2dcfd85214d2b3ed603a0d
MD5 3f2ebb0dbf59aebef6d615d52185ae31
BLAKE2b-256 409539c750ff80454ed32d86a29a737252bf8cb538b56981e509ca6e178c61e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 251a75487e19ad199330ef6d86492a89d8fdcc4ac2acd500d36426be41f3a320
MD5 fe711455b023ea43544bdd9427d5443a
BLAKE2b-256 3f0bfc6dd258ac6d2a59d50fc4f90628a12e98cf5bb891023cff8ae8d62bcd13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ba989f820097d0afa447c38e58a02f9a4a310f90429d56cecfaee0c4793eae9b
MD5 fe033967503250ab370a9063dda2652b
BLAKE2b-256 b386f0d3a0425005117c8f0dd41a80a6e54bf4da27c96f4757e59bc08299431f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 64105a2bb26d5851094182859bdeb990a0339fdf715b282a5206e46e81b6fb5f
MD5 ab7aa49e3b8d505721af5630c11bcd74
BLAKE2b-256 df2edbb7a941df0dbc9599bf4d01b641e8601aad520e943c18b3979e1467df86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62ebea935587654709f41c45a5959ede442416338d6973e9ade043b7e1030822
MD5 3589ac6012425c8c07e5932069167ed9
BLAKE2b-256 f75954a7d999fe3e37321ebfba163c77468b5063934ba3893685f233c52f81e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.6-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9166731912e61b7f60fc9875879afd3fc372435959c3fe023a777a30af882fa6
MD5 edec554c432abc41c547fdf93a8e5768
BLAKE2b-256 b5a77c6765d87307e9763684559a0f7b3d0dd59d456061b28657b4737ca59d7a

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