licensecheck package scans source texts for known licenses.
The design aims never to give a false positive.
It also reports matches of known license URLs.
See the package documentation for API details.
The license scanner recognizes nearly all the licenses gathered by the SPDX project, along with a few others.
See licenses/README.md for license details.