Indices and tables

Functions:

add_claim(file_path, claim_path[, ...])

Add a copyright claim to a file.

remove_claim(file_path[, comment_symbol, ...])

Remove a copyright claim previously added by add_claim.

main()

Wraps everything to form a terminal command.

Add a copyright claim to a file.

Parameters:
  • file_path (str) – The path to the file to be treated.

  • claim_path (str) – The path to a file containing the claim text string.

  • start_string (str, optional) – A string to mark the beginning of the copyright claim block. Defaults to “COPYRIGHT CLAIM”.

  • end_string (str, optional) – A string to mark the end of the copyright claim block. Defaults to “END OF COPYRIGHT CLAIM”.

  • comment_symbol (str, optional) – The symbol that marks comment lines in the treated files. Defaults to “# “.

Remove a copyright claim previously added by add_claim.

Parameters:
  • file_path (str) – The path to the file to be treated.

  • start_string (str, optional) – The start_string used by add_claim when inserting the claim. Defaults to “COPYRIGHT CLAIM”.

  • end_string (str, optional) – The end_string used by add_claim when inserting the claim. Defaults to “END OF COPYRIGHT CLAIM”.

  • comment_symbol (str, optional) – The comment_symbol used by add_claim when inserting the claim. Defaults to “# “.

Wraps everything to form a terminal command.