Skip to main content

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


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.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

addlicense-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file addlicense-0.0.1.tar.gz.

File metadata

  • Download URL: addlicense-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for addlicense-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cc07a6496f908675cc15466c5663e40cfab89e76c8361e24d0920b7a3f6b90a2
MD5 c6867f0385195b2eaa0a7bf2ffde355a
BLAKE2b-256 528a4ff5d7dcf939fcd2dade418ac31d1e80a38c2a1f150e8f402d6ebfd65b20

See more details on using hashes here.

File details

Details for the file addlicense-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: addlicense-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for addlicense-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ad54e1a16b0f5e306c93d08ba5c974eacaa9a61994cbfa65753445efeea2325
MD5 f50aa3ef737f5009123e6e244aee2506
BLAKE2b-256 2ffcd8e2c5abdc6b5fdfc85e5b617ad7b28d1dcad414065286c3cdbc389ff5ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page