A Python license checker
Project description
pylic - Python license checker
![Codecov](https://pypi-camo.freetls.fastly.net/982a1e3c98f845483237869bc183b2c35615fd45/68747470733a2f2f636f6465636f762e696f2f67682f73616e64726f6368756265722f70796c69632f2f6272616e63682f6d61696e2f67726170682f62616467652e737667)
Reads the pyproject.toml file and checks all installed licenses recursively.
Principles:
- Every license has to be allowed explicitly (case-insensitive comparison).
- All packages without license are considered unsafe and have to be listed as such.
Example Configuration
[tool.pylic]
safe_licenses = [
"Apache Software License",
"Apache License 2.0",
"MIT License",
"Python Software Foundation License",
"Mozilla Public License 2.0 (MPL 2.0)",
]
unsafe_packages = [
"unlicensedPackage"
]
Development
Required tools:
- Poetry (https://python-poetry.org/)
- GitHub cli (https://github.com/cli/cli)
Creating a new release is as simple as:
- Update
version
in the pyproject.toml file. poetry run task release vx.x.x
.
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 Distribution
pylic-1.1.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
pylic-1.1.0-py3-none-any.whl
(4.7 kB
view hashes)