Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

LawyerUp adds license headers to your code

Project description

LawyerUp adds license headers to your code.

Inspired by lice.


pip install lawyerup


$ 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 <license> --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)


0.1.4 (2014-11-20)

  • Bugfix: Python 2.6 requires argparse.
  • Stylus support.

0.1.3 (2013-12-16)

  • Bugfix: Strip trailing whitespace from formatted headers.

0.1.2 (2013-11-13)

  • Bugfix: Don’t die on empty files.
  • Bugfix: Treat all input files as UTF-8.

0.1.1 (2013-11-13)

  • Bugfix release. Actually include the license headers in the distribution.

0.1.0 (2013-11-13)

  • First release. Add headers to lists of files read from stdin.

Project details

Download files

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

Files for lawyerup, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size lawyerup-0.1.5-py2.py3-none-any.whl (8.7 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size lawyerup-0.1.5.tar.gz (9.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page