Skip to main content

A Python license checker

Project description

pylic - Python license checker GitHub license PyPI version Codecov

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:

Creating a new release is as simple as:

  • Update version in the pyproject.toml file.
  • poetry run task release vx.x.x.

Project details


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.0.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

pylic-1.0.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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