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
Metadata
Release files for addlicense 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| addlicense-0.0.2.tar.gz | 3.0 kB | Without provenance | Details for addlicense-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| addlicense-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for addlicense-0.0.2-py3-none-any.whl |
Total release size: 7.0 kB
Release files / addlicense-0.0.2.tar.gz
| Download URL | addlicense-0.0.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a541246a0c7129d164233d5654ca2ec6f67338751889059f15f2ae07f7cc209b
|
|
BLAKE2b-256 checksum How to use checksums |
b31f8420c04c57c6f36bcc4bcda68c82b23f0a91c1140fd0b3c86ea8f1379b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Release files / addlicense-0.0.2-py3-none-any.whl
| Download URL | addlicense-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
423de42e28758081252d017d8648599869c16b8c9a430db0b197979d355f2394
|
|
BLAKE2b-256 checksum How to use checksums |
879db072b160570ed3fd46c89323395420aeb2bb9502b61a35ac5eab1e79b67d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Security for addlicense 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.