Skip to main content

A list of open (http://opensource.org/, http://opendefinition.org/) licenses together with API and web service.

Project description

A list of open (http://opensource.org/, http://opendefinition.org/) licenses together with API and web service.

How to use the Licenses Package

This package can be used in three ways (develop, distribute, and deploy).

  1. To create and access license data in JSON form.

    The package contains a data file (./licenses/licenses.db) and a scraper (licenses/scrape.py) which and updates the data file:

    $ hg clone https://bitbucket.org/okfn/licenses
    $ cd licenses
    $ python licenses/scrape.py

    A report will be printed about changes to the licenses data.

  2. Access of the data via a simple python API:

    >>> from licenses import Licenses
    >>> L = Licenses()
    >>> for l in L: print l
    ...
    odc-odbl
    ...
    >>> print l['odb-odbl']
    {'status': 'active', ...
    >>>
  3. Deployment as a service.

    Install or update the Python package, then create the service files:

    $ python licenses/deploy.py <path>

    A whole set of files will be created at <path> which can then be served directly by your webserver.

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

licenses-0.6.1.tar.gz (10.9 kB view details)

Uploaded Source

File details

Details for the file licenses-0.6.1.tar.gz.

File metadata

  • Download URL: licenses-0.6.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for licenses-0.6.1.tar.gz
Algorithm Hash digest
SHA256 1a8f7f4abf31ba6c7be0d2150f9e4c3ed2f782bcbc6d8212a3a0fd8c0c005d88
MD5 245db814565e1c579830d630b0be9ff1
BLAKE2b-256 9f570e2d7895e0da29d04400b33f603b87b03768a32755513ca581f314a772be

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