Coder Social home page Coder Social logo

pylice's Introduction

PyLice

PyLice retrieves license information for installed Python packages.

Installation

From PyPi

pip install pylice

From source

git clone https://github.com/tjpnz/pylice.git
cd pylice
python setup.py sdist
pip install dist/pylice-<version>.tar.gz

Usage

Running pylice without any arguments lists all packages on the Python path along with the license:

pylice
Blogofile-0.8b1 MIT
Flask-0.10.1 BSD
FormEncode-1.2.6 PSF

It's also possible to retrieve license information for a subset of packages by specifying --package one or more times.

PyLice can also output lists in CSV format:

pylice --output-csv
Blogofile-0.8b1,MIT
Flask-0.10.1,BSD
FormEncode-1.2.6,PSF

Motivation

Many organisations developing commercial software will have policies regarding which licenses are acceptable when making use of third party tools and libraries. Such policies will often prohibit the use of libraries licensed under the GPL.

Developers will sometimes be asked to produce a list of all third party libraries their code depends on at various stages of the development cycle. I've found this to be time consuming as there didn't appear to be anything out there that would help automate the process. PyLice aims to streamline that process using the license information available from installed package metadata.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

Copyright ยฉ 2011โ€“2015 Thomas Prebble. PyLice is free software, and may be redistributed under the terms specified in the license.

pylice's People

Contributors

tjpnz avatar

Stargazers

Derek Rushing avatar evl avatar Kristaps Karlsons avatar Ram avatar Nazeeruddin Ikram avatar

Watchers

 avatar James Cloos avatar

Forkers

pombredanne

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.