Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Sensible repository licensing for Humans

Project Description

Sensible repository licensing for Humans

.. image::
:alt: Development Status

.. image::
:alt: Latest Version

.. image::
:alt: Supported Python versions

.. image::
:alt: License

.. image::
:alt: Downloads

**Sir Isaac Newton once said that**
*Open source simply isn't open source without a proper license. So add a license. Always.*

GitHub recently launched their `License API <>`__, it's still in preview stage though.
They also released a blog post showing `Open source license usage on <>`__, which is enough to convice you that why adding a license is
`sine qua non <>`__.

*Newton and Open Source, Respect both, let us.*

\- Yoda

lisense in action
.. figure::
:alt: lisense

lisense. What?
lisense is a command-line tool which helps you license your projects.
- Lets you have a global configuration. Use your defaults, anywhere, anytime.
- Guides you about using a particular license, better than you uncle.
- And yes! Generates licenses.

lisense. Controls?
Generating a license is more easy than doing nothing.
- lisense list
List all available licenses.
- lisense guide [license]
Provide guidance about a license. Description, use cases etc.
- lisense setup
Setup global lisense configurations. Default license and owner name.
- lisense new [license] --owner="OWNER NAME"
Generates new license. Both the *license* and *owner* arguments are optional. Uses defaults when not supplied.

Automatic extra context variable handling
Almost all the licenses have two common fields in them, *owner* and *year*. Some of them have extra fields also. For example, the GPL-v2 license
has a field *description*, which asks for the description of the project.

Lisense uses *jinja2*'s low level meta API to parse the abstract syntax tree of the template and interactively asks users to fill
extra fields, if any.

So, you don't have to worry about it.

- `docopt <>`__ - command-line argument parsing
- `jinja2 <>`__ - generate licenses from license templates
- `xtermcolor <>`__ - colorful messages on terminal


Built with :two_hearts: by `Pravendra Singh <>`__
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lisense-1.1.0.tar.gz (65.1 kB) Copy SHA256 Checksum SHA256 Source Apr 7, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting