licenses 0.6.1
A list of open (http://opensource.org/, http://opendefinition.org/) licenses together with API and web service.
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).
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.
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', ... >>>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.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| licenses-0.6.1.tar.gz (md5) | Source | 2011-02-22 | 10KB | 926 | |
- Author: Open Knowledge Foundation
- Home Page: http://licenses.opendefinition.org/
- Download URL: http://bitbucket.org/okfn/licenses
- License: Public Domain
- Package Index Owner: amercader, rgrp, davidread
- Package Index Maintainer: davidread
- DOAP record: licenses-0.6.1.xml
