reuse.copyright module¶ Utilities related to the parsing and storing of copyright notices. reuse.copyright.merge_copyright_lines(copyright_lines: set[str]) → set[str][source]¶ Parse all copyright lines and merge identical statements making years into a range. If a same statement uses multiple prefixes, use only the most frequent one. reuse.copyright.make_copyright_line(statement: str, year: str | None = None, copyright_prefix: str = 'spdx') → str[source]¶ Given a statement, prefix it with SPDX-FileCopyrightText: if it is not already prefixed with some manner of copyright tag.