Skip to main content

Verify integrity of LICENSEs

Project description

This is a package for verifying that a license file in an open source project has not changed since distribution. Most licenses require inclusion of that license. This checks that it is the case.

Installation

$ pip install malicense

Setup

Your project must have a “LICENSE” file in the top directory of the package (not the project). You must take a snapshot of the license with:

$ malicense LICENSE.txt --snap

Then, git commit to save the snapshot placed in the new file .licsnap.

Usage

1: UNIX command line executable exits with code 2 if validation fails. In the package top directory:

$ malicense LICENSE.txt

2: from python:

import malicense
malicense.main(package, snap=False)
# or
malicense.main(licfilename='LICENSE.txt', snap=False)

where package is the top level directory. A recommended use is putting that code into an “__init__.py” file, as it is done in the malicense package.

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

malicense-0.0.7-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file malicense-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for malicense-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f2e74445019760b20886d2bbc09e7b8ee69ab79bbcfd1e5ffcfdd35882e8dce5
MD5 6fbaa8165239bf7603db1c72192f8d3c
BLAKE2b-256 dfde891c01a83755e84a9328e818101f4dbe54ac835b4c7dd670827e60891ea1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page