A script to guess licenses based on text
Project Links
Meta
Author: Tim Hatch
Requires Python: >=3.10
Classifiers
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.
0.2.0
Jan 22, 2024
0.1.0
Dec 16, 2023
0.0.7
Mar 22, 2020
0.0.6
Nov 29, 2019
0.0.5
Nov 29, 2019
0.0.4
Nov 23, 2019
0.0.3
Nov 23, 2019
0.0.2
Nov 21, 2019
0.0.1
Nov 20, 2019