Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

licenses

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

licenses

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

  • 0.6.1
  • PyPI
  • Socket score

Maintainers
3

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 which can then be served directly by your webserver.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc