pylicense3.cli

Add header to a given file.

Usage:

pylicense [-hv] [–help] [–verbose] –cfg=CONFIG_FILE PATH

Arguments:

PATH Directory or file to process.

Options:
-h, --help

Show this message.

-v, --verbose

Be verbose.

Module Contents

Functions

process_dir(dirname, config)

get_git_authors(filename, root)

read_current_header(source_iter, prefix, project_name, ...)

write_header(target, header, authors, license_str, ...)

process_file(filename, config, root)

main()

exception pylicense3.cli.GitError[source]

Bases: Exception

Common base class for all non-exit exceptions.

pylicense3.cli.process_dir(dirname, config)[source]
pylicense3.cli.get_git_authors(filename, root)[source]
pylicense3.cli.read_current_header(source_iter, prefix, project_name, copyright_statement, license_str, url, lead_in, lead_out)[source]
pylicense3.cli.write_header(target, header, authors, license_str, prefix, project_name, url, max_width, copyright_statement, lead_in, lead_out)[source]
pylicense3.cli.process_file(filename, config, root)[source]
pylicense3.cli.main()[source]