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

Uploaded CPython 3.13macOS 14.0+ ARM64

spdx_checker-0.1.8-cp312-cp312-macosx_14_0_arm64.whl (435.7 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

spdx_checker-0.1.8-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.8-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for spdx_checker-0.1.8-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 bdcbab8c433ef2ba7a8dd90aef126cb22dec4fd04cb61e96f0e7ff1eb3121bb3
MD5 f82fb9c459022f4f237a67eefead117d
BLAKE2b-256 70db383101e77f5ae0c7750ba58a637cbd5e61ef3c2a33ad5d1995bab51900c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.8-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 78d99eaed895ad24745425f0ccd90dd9851d5e545f6902f893dd3cba4b72703b
MD5 87fcfe0a75ea4a7ef5d547bfe2c5b313
BLAKE2b-256 cd5d4059c26c5cefcf384a6db8b72b9bde539a4e9ce35ab63a4ecb65a0a7986d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spdx_checker-0.1.8-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0ee60271a343d977cd0e3a6363aecd319f2187044cb1e4e97aae6a7f59ae5bb1
MD5 a588052ea7b39ab92181349b0c54e3ab
BLAKE2b-256 ffa0426f70685f73d1723ccd1e40842efb4681a3d5893aae0d4145324ea38ca3

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