A command line tool for checking if the source files of a Python project have Apache License headers.
pip install apache-license-check
To check all Python files recursively under the current directory:
apache-license-check
Optionally, pass one or more files or directories to check:
apache-license-check setup.py myproject/
You can also check that files include a copyright statement with the
--copyright
flag. Pass a substring (such as the name of the copyright
holder) to check:
apache-license-check setup.py --copyright "Faculty Science Limited"