Get info about OSS licenses
Project description
Installation
Install from PyPI:
python3 -m pip install --user dephell_licenses
Usage
from dephell_licenses import licenses
# ways to get a license:
license = licenses.get_by_id('MIT')
license = licenses.get_by_name('MIT License')
license = licenses.get_by_classifier('License :: OSI Approved :: MIT License')
# license object
license
# License(id='MIT', classifier='License :: OSI Approved :: MIT License', name='MIT License', approved=True, deprecated=False, links=['https://opensource.org/licenses/MIT'], url='http://spdx.org/licenses/MIT.json')
# generate license
license.make_text(copyright='2019 Gram')
# 'MIT License\n\nCopyright (c) 2019 Gram\n\nPermission is hereby granted ...'
Most popular licenses
go run stat.go | grep "License :: " | perl -F"\|" -lane 'print $F[0] if $F[1]>100' | sort
There is the full list of the license classifiers with more than 100 projects that uses it:
License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
License :: DFSG approved
License :: Free for non-commercial use
License :: Freely Distributable
License :: Freeware
License :: OSI Approved
License :: OSI Approved :: Apache Software License
License :: OSI Approved :: BSD License
License :: OSI Approved :: GNU Affero General Public License v3
License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
License :: OSI Approved :: GNU General Public License (GPL)
License :: OSI Approved :: GNU General Public License v2 (GPLv2)
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
License :: OSI Approved :: ISC License (ISCL)
License :: OSI Approved :: MIT License
License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
License :: OSI Approved :: Python Software Foundation License
License :: OSI Approved :: Zope Public License
License :: Other/Proprietary License
License :: Public Domain
License :: Repoze Public License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dephell-licenses-0.1.3.tar.gz
.
File metadata
- Download URL: dephell-licenses-0.1.3.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 324d0069b7d5b693b799eda5c284bb61538aeb5226ff2f6220a7d81a46522683 |
|
MD5 | 1a2a0ebf7e3edff675205909d53a65ff |
|
BLAKE2b-256 | ba617cd983f31487378e545b89124dc857ba62e4eaf11c84a64c89a0768353bf |
File details
Details for the file dephell_licenses-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: dephell_licenses-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c4b4138635c844e8c9fbc83662fed6d98efab20a8b7110f2b33935174a1aa2 |
|
MD5 | b6fe8c53db20570846b0626a19089538 |
|
BLAKE2b-256 | a9db95a1a98c6c682b9dfca177119213d9a8b6ecda57d65a8f6a7ebfa6c4e02c |