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.1.0.tar.gz
(61.5 kB
view hashes)
Built Distribution
Close
Hashes for infer_license-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e78527218b2ad74c85e289523fb58b2cd7cbb05404ff07a3b638bdccf82b0c36 |
|
MD5 | 27f4ad1b0c221079e86148fc6d362537 |
|
BLAKE2b-256 | 7007260a08519e65cd15226a5f6207a0b30f9b6c0dc454167d065c73013d40b8 |