Skip to main content

Get info about OSS licenses

Project description

travis appveyor MIT License

Manage OSS licenses: retrieve information, generate.

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 ...'

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

dephell-licenses-0.1.6.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

dephell_licenses-0.1.6-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page