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.9-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.9-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.9-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.9-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.9-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8a2b51cfea49c69b7245d6713311f8efe234107c940033180d5d0f1b23006d3b
MD5 bbb740013f3771bb343318c7a23a4501
BLAKE2b-256 015e06757ea79d819ec9656c48fffe8db1bb29f9e9ed0840b9dfea2f5c514dee

See more details on using hashes here.

File details

Details for the file spdx_checker-0.1.9-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.9-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8d02468d62b0425ae20dc230c220c246259c606766b4af419cc91b3a6df2a053
MD5 0605f0dce9f843341b020233c08914b6
BLAKE2b-256 96bf0d874020c8afc3ea239d59bb362c2a1aeeb231e4fa1b8dc2bcfb29ed4f27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.9-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6b5ccacee7992ef43f1119e02c4efafaa72318670f7e09acf7f71c842f799a12
MD5 d732146773a579bae2cf6e68ebec74eb
BLAKE2b-256 e255316c10e114c78f53edf44517ba4276e6dda79d9d576c3ee908c80b989b57

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