infer-license-0.2.0
توضیحات
A script to guess licenses based on text
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | infer-license-0.2.0 |
| نام | infer-license |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tim Hatch |
| ایمیل نویسنده | tim@timhatch.com |
| آدرس صفحه اصلی | https://github.com/python-packaging/infer-license/ |
| آدرس اینترنتی | https://pypi.org/project/infer-license/ |
| مجوز | MIT |
# 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](http://timhatch.com/), 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. | dataclasses |
| - | importlib-resources |
| =23.12. | black |
| =0.0. | checkdeps |
| =7.0. | flake8 |
| =1.8. | mypy |
| =4.12. | tox |
| =4.0. | twine |
| =2.3. | ufmt |
| =1.0. | usort |
| =0.42. | wheel |
| = | coverage |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl infer-license-0.2.0:
pip install infer-license-0.2.0.whl
نصب پکیج tar.gz infer-license-0.2.0:
pip install infer-license-0.2.0.tar.gz