Skip to main content

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.

Release files for infer-license 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for infer-license 0.2.0
File Size Uploaded
infer-license-0.2.0.tar.gz 61.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for infer-license 0.2.0
File Interpreter ABI Platform
infer_license-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 141.6 kB

Release files / infer-license-0.2.0.tar.gz

Download URL infer-license-0.2.0.tar.gz
Size 61.5 kB
Tags Source
SHA-256 checksum
How to use checksums
05aa3f5b64053d2defba2ecf9f495615b03f0ec0a3a7b165eeee83565070b896
BLAKE2b-256 checksum
How to use checksums
919fac2f3a7accfc5335c3c7e5d30b2a233d5c7ac5560c5d0dc18f3a83feb628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / infer_license-0.2.0-py3-none-any.whl

Download URL infer_license-0.2.0-py3-none-any.whl
Size 80.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23de3988a35513e8cea925ff500e70e1f7df52ad25dc8ca80c0d4609632c4f93
BLAKE2b-256 checksum
How to use checksums
e56b3f77cdf36c815cd2297a45ad0e0c5c7a6a6fa95e83061ac8d886454f0377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page