Skip to main content

generate the license for you

Reason this release was yanked:

incompatible docopt

Project description

# Licen [![Latest Version][1]][2]

Generate your license. Yet another [lice][5], but implemented with Jinja2 and docopt, should be much more elegant and cleaner. I also get many inspirations from [joe][6](help you generate gitignore).

## Why and what’s the difference

seems better than lice:

  • Licen use Jinja2 as its template engine, sweet and easy. Lice do it by hand.

  • Licen use docopt for the command line interface. Lice use argparse.

  • Licen don’t render the boilerplate in the license template. Lice do. Check out the issue [here][].

  • Licen is pep8 checked. Lice don’t.

seems not good as lice:

  • Licen support less licenses. Check [issue#1][]

  • Licen haven’t support comment the license header yet. Check [issue#2][]

## Install

$ pip install licen

## Usage

NOTE: because licen use the git configuration(user.name and user.email) as default context, please make sure that you’ve set up git properly. You can check this [guide][] if you have done yet.

A gif is worth than a thousand words.

![demo_gif][gif]

In short, generate a licnese:

$ licen mit > LICENSE

Generate a header:

$ licen header gpl-2.0-header > main.py

Or get detailed help message from the terminal.

$ licen -h licen, generates license for you via command line

Usage:

licen [header] (-l | –list) licen [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_NAME licen header [-y YEAR] [-f FULLNAME] [-e EMAIL] LICENSE_HEADER licen –var NAME licen (-h | –help) licen (-V | –version)

Options:

-l –list List all the support licenses or headers. -y YEAR Specify the year. -f FULLNAME Specify the owner’s fullname. -e EMAIL Specify the email. –var List all the variables in the template. -h –help Show the help message. -V –version Show the version info.

## License

MIT.

[1]: http://img.shields.io/pypi/v/licen.svg [2]: https://pypi.python.org/pypi/licen [5]: https://github.com/licenses/lice [6]: https://github.com/karan/joe [guide]: https://help.github.com/articles/set-up-git/ [gif]: https://github.com/lord63/licen/blob/master/licen_demo.gif [here]: https://github.com/licenses/lice/issues/44 [issue#1]: https://github.com/lord63/licen/issues/1 [issue#2]: https://github.com/lord63/licen/issues/2

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

licen-0.2.2.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

licen-0.2.2-py3-none-any.whl (76.3 kB view details)

Uploaded Python 3

File details

Details for the file licen-0.2.2.tar.gz.

File metadata

  • Download URL: licen-0.2.2.tar.gz
  • Upload date:
  • Size: 62.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for licen-0.2.2.tar.gz
Algorithm Hash digest
SHA256 39f1029205dd8b22715911e8a0492167398395ba79382b21bb2ee3237c3b2677
MD5 ff71174e67f8878aa6b7fdae73e707d3
BLAKE2b-256 32910e8d5b4c53fa61d9cc272723bb3ddb9505f7150060a748a1cd8afe322f94

See more details on using hashes here.

File details

Details for the file licen-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: licen-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 76.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for licen-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d982a5216161aad4b581dc62edb54492943196b0d8872bdea0ad0ff3a4a3841
MD5 738302e9b86561095971097c6990e10e
BLAKE2b-256 4080b14f49db4b92a9295a7993d2bd79f4b58fc1c5ec1f1b18020f7ad0ab1f19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page