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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file malicense-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: malicense-0.0.8-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b178c37d0277283c93312ef6c7261992c95cc2d0bb922a5538fc4d3bac22ac44 |
|
MD5 | 787aab5e2b90dcbef41b205c37c4cd69 |
|
BLAKE2b-256 | bdf106274846e86a8863e6f330a3fe2c1aed238799148b5cb3bad388ff86fd40 |