https://github.com/nilp0inter/lawyerup
Add license headers to your code
https://github.com/nilp0inter/lawyerup
Last synced: 2 months ago
JSON representation
Add license headers to your code
- Host: GitHub
- URL: https://github.com/nilp0inter/lawyerup
- Owner: nilp0inter
- License: bsd-3-clause
- Created: 2014-05-15T10:06:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-09-23T09:06:47.000Z (10 months ago)
- Last Synced: 2025-10-27T21:41:47.122Z (9 months ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/lawyerup/
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: COPYING
Awesome Lists containing this project
README
=============================
LawyerUp
=============================
.. image:: https://travis-ci.org/redjack/lawyerup.png?branch=master
:target: https://travis-ci.org/redjack/lawyerup
LawyerUp adds license headers to your code.
Inspired by lice_.
.. _lice: https://github.com/licenses/lice
Installation
------------
::
pip install lawyerup
Usage
-----
::
$ lawyerup --help
usage: lawyerup [-h] [--vars | --context [KEY=VALUE [KEY=VALUE ...]]] LICENSE
Add license headers to files passed in on stdin
positional arguments:
LICENSE the license to add, one of GPR, GRR, generic
optional arguments:
-h, --help show this help message and exit
--vars list template variables for specified license
--context [KEY=VALUE [KEY=VALUE ...]]
KEY=VALUE formatted variables to generate the license
::
$ cat list-of-files | lawyerup --context KEY1=VAL1 KEY2=VAL2 ...
Available Licenses
------------------
* Government Purpose Rights (``GPR``)
* Government Restricted Rights (``GRR``)
* Generic "see COPYING file in the root of this distribution" (``generic``)