Automatically check the licenses of package dependencies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.6 KiB


PyPI licheck version PyPI - License Buy me a coffee pre-commit

Automatically check the licenses of package dependencies.


Inspired by kontrolilo, check the licenses of sotware dependencies in package managers used by developers. This program is primarly aimed to be used as a git hook with pre-commit.


Please read carefully the External programs section of the documentation to learn which programs you need to install before licheck.

Have a look at the Configuration file section to know how to configure licheck.

API examples

licheck has a public API. This means for example that you can you easily build a TOC within another Python program. The easiest way to build one for a markdown file is:

>>> import licheck
>>> f = open('Pipfile')
>>> print(, end='')
name = "pypi"
url = ""
verify_ssl = true

Sphinx = "~=4.1"

python_version = "*"
>>> binary, program = licheck.get_binary_and_program('python')
>>> command = licheck.build_command(binary, program, 'Pipfile')
>>> print(licheck.get_data(command, program))

CLI Helps


$ licheck --help


Copyright (C) 2021-2022 Franco Masotti (franco DoT masotti {-A-T-} tutanota DoT com)

licheck is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

licheck is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with licheck. If not, see <>.

Changelog and trusted source

You can check the authenticity of new releases using my public key.

Changelogs, instructions, sources and keys can be found at

Crypto donations

  • Bitcoin: bc1qnkflazapw3hjupawj0lm39dh9xt88s7zal5mwu
  • Monero: 84KHWDTd9hbPyGwikk33Qp5GW7o7zRwPb8kJ6u93zs4sNMpDSnM5ZTWVnUp2cudRYNT6rNqctnMQ9NbUewbj7MzCBUcrQEY
  • Dogecoin: DMB5h2GhHiTNW7EcmDnqkYpKs6Da2wK3zP
  • Vertcoin: vtc1qd8n3jvkd2vwrr6cpejkd9wavp4ld6xfu9hkhh0