A script to guess licenses based on text
Project description
infer-license
Heavily inspired by https://github.com/sol/infer-license/ this will provide an API to guess what license a given file represents.
>>> from infer_license import guess_file
>>> print(guess_file("LICENSE"))
License(name='MIT License', shortname='MIT', trove_classifier='License :: OSI Approved :: MIT License')
>>> guess_file("setup.py")
None
There's also a handy infer_license
script that takes a filename.
$ infer_license LICENSE
LICENSE: MIT
License
infer-license is copyright Tim Hatch, and licensed under
the MIT license. I am providing code in this repository to you under an open
source license. This is my personal repository; the license you receive to
my code is from me and not from my employer. See the LICENSE
file for details.
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
infer-license-0.0.6.tar.gz
(61.3 kB
view hashes)
Built Distribution
Close
Hashes for infer_license-0.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b63c7af5c464f3f29c08de262a2218eab9665e595d8c3b2ecd0c32c90f68a868 |
|
MD5 | e20a5d91b32b319a8b864eb5f0b8d4d7 |
|
BLAKE2b-256 | efdd793dccea3106061bd6aca579e2175836be2e91a2a0f6a26a5f413f30e5e9 |