Skip to main content

An API which allows you to get license templates or license notices from your code

Project description

Python Open Source Licenses API

An API which allows you to get license templates or license notices from your code.

Installation

$ pip install pyoslapi

Usage

Example:

from pyoslapi.client import Client

if __name__ == '__main__':
	client = Client()
	license = client.get_license('apache-2.0')
	if license is not None:
		print(
			"Name: {}\nLink: {}\nContent:\n{}\n".format(
				license.name, license.link, license.content
			)
		)

	header = client.get_header('apache-2.0')
		if header is not None:
			print("Header: {}".format(header))

	license_list = client.get_list()
		if license_list is not None:
			print("License List: {}".format(license_list))

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

pyoslapi-0.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pyoslapi-0.0.1-py3-none-any.whl (4.8 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