• Stars
    star
    36
  • Rank 711,325 (Top 15 %)
  • Language Groff
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate your license. Yet another lice, but implement with Jinja2 and docopt.

Licen

Latest Version Build Status

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.

More Repositories

1

awesome-python-decorator

A curated list of awesome python decorator resources.
713
star
2

tldr.py

A python client for tldr: simplified and community-driven man pages.
Python
186
star
3

py-spin

Terminal spinner package for Python. (This library is not the one from FLIR)
Python
180
star
4

pyhipku

Encode any IP address as a haiku, funny and lovely. TRY IT NOW: http://pyhipku.lord63.com
Python
91
star
5

choosealicense-cli

Bring http://choosealicense.com to your terminal
Python
70
star
6

isitup

Check whether a website is up or down.
Python
62
star
7

v2ex_daily_mission

V2EX 签到 python 版本实现。支持签到,查询连续登录天数,查询签到日志。
Python
39
star
8

pyemojify

Substitutes emoji aliases to emoji raw characters. Simple but sweet 😄
Python
35
star
9

wonderful_bing

Set bing's picture as wallpaper, support cinnamon, gnome, xfce, mate.
Python
22
star
10

wangyi_music_top100

网易云音乐歌单 TOP 100 . Try it now:
Python
15
star
11

me-api

An extensible, personal API with custom integrations. It's a python port.
Python
15
star
12

ascii_art

Draw ascii art(bar, chart, histogram) in your terminal.
Python
11
star
13

a_bunch_of_code

A bunch of code that I wrote before.
Python
10
star
14

zimuzu

字幕组 (http://www.zimuzu.tv) python 版本命令行签到工具.
Python
8
star
15

caniuse

Can I use this name for my python package on PyPI ?
Python
7
star
16

five.py

Gives you five, funny and lovely.
Python
6
star
17

figlet_web

Generate text to ASCII art! TRY IT NOW: http://text2ascii.lord63.com/
JavaScript
5
star
18

rb_colors

Yet another ruby library that deals with colors.
Ruby
1
star
19

zhihudaily

又一个知乎日报的网页版... https://zhihudaily.lord63.com
CSS
1
star