Skip to main content

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

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.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

dephell_licenses-0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file dephell-licenses-0.1.2.tar.gz.

File metadata

  • Download URL: dephell-licenses-0.1.2.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

Hashes for dephell-licenses-0.1.2.tar.gz
Algorithm Hash digest
SHA256 72eb78c4e29827f69bbb0478910ea70db3aa50593ca1e695e61cd7824a31522d
MD5 ade0e85e3bb49553680b1fe3a760befb
BLAKE2b-256 bb4e21130db0d7c0f56cb2511c3c2f3f445d7026002a8bd29067316439d35198

See more details on using hashes here.

File details

Details for the file dephell_licenses-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dephell_licenses-0.1.2-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

Hashes for dephell_licenses-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 47f02255fb6c46ab7aa5867ee75e316be65593e7049a3ea4a55b3c9f65e33d54
MD5 2c54cb073d5015f04f21f581040154c0
BLAKE2b-256 974925a84a445122ab6e5ccf0b8b5666927b3c3919332008940d1ced5532eaa6

See more details on using hashes here.

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