addlicense automatically inserts a specified license file or copyright message at the top of one or more source code files
Project description
addlicense
addlicense is a simple utility that automatically inserts a specified license file or copyright message at the top of one or more source code files
usage: addlicense.py [-h] [--licensefile LICENSEFILE]
[--commentblock COMMENTBLOCK] [--comment COMMENT] [-s]
[--backup]
sourcefiles [sourcefiles ...]
Automatically inserts a specified license file or copyright message at the top
of one or more source code files
positional arguments:
sourcefiles a list of files to update with the license or
copyright message
optional arguments:
-h, --help show this help message and exit
--licensefile LICENSEFILE
a file containing the license or copyright text,
defaulting to LICENSE.txt
--commentblock COMMENTBLOCK
a space-separated string indicating the characters to
use at the beginning and end of the license message to
demark them as a comment block
--comment COMMENT a string indicating the characters to use at the
beginning of each line of the license message to
demark them as comments
-s, --skip-shebang-executable
skip the initial shebang executable command: if the
source file starts with a comment symbol (identified
via the --comment option) followed by a shebang, to
indicate an executable script on a POSIX system, then
the license text will be inserted AFTER this initial
line
--backup keep a copy of the original source-file with a .bak
extension
Installation
addlicense is written in Python, and you can use the pip installer to install it thus:
$ pip install addlicense
Homepage
You can find the homepage of addlicense at https://github.com/hossg/addlicense
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
addlicense-0.0.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for addlicense-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 423de42e28758081252d017d8648599869c16b8c9a430db0b197979d355f2394 |
|
MD5 | 9c48fe40c9f6bed8aa90236f666080d2 |
|
BLAKE2b-256 | 879db072b160570ed3fd46c89323395420aeb2bb9502b61a35ac5eab1e79b67d |