Skip to main content

Licen

Latest Version

Generate your license. Yet another lice, but implemented with Jinja2 and docopt, should be much more elegant and cleaner. I also get many inspirations from joe(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

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.

Metadata

Release files for licen 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for licen 0.2.3
File Size Uploaded
licen-0.2.3.tar.gz 3.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for licen 0.2.3
File Interpreter ABI Platform
licen-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 3.3 MB

Release files / licen-0.2.3.tar.gz

Download URL licen-0.2.3.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a58ac2e6934e63ed4cc3558ee2e256cb3308cd559e549f3ba761f294f5e6101a
BLAKE2b-256 checksum
How to use checksums
7b041486eef75a179aa3de634594f4fbe2d9c14e06d4a6493a817c3c0333e652
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / licen-0.2.3-py3-none-any.whl

Download URL licen-0.2.3-py3-none-any.whl
Size 77.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3705078879d71a0d7dc38b92c988b900426281580292eb17ec7af5d13018d4eb
BLAKE2b-256 checksum
How to use checksums
fb2b37caeb501df6d24253467408a2ddc4b1be472dbc22cd714b51542983191c
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

1 release file

0.2.0

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page