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 Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.12macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.7-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 330ebddf1adef16afcc14125c5b72a91f01b286397b8994b4a24d07e24bfede5
MD5 3684567dafcc73132061779f7b00991a
BLAKE2b-256 f8b29d8d1f2643bf54f624e9e5dee553a613e3b1644a1c0f2f481026c2bd697a

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