reuse package

Submodules

Module contents

reuse is a tool for compliance with the REUSE recommendations.

exception reuse.IdentifierNotFound[source]

Bases: ReuseException

Could not find SPDX identifier for license file.

exception reuse.ReuseException[source]

Bases: Exception

Base exception.

class reuse.SpdxInfo(spdx_expressions, copyright_lines)

Bases: NamedTuple

Simple structure for holding SPDX information.

The two iterables MUST be sets.

copyright_lines: Set[str]

Alias for field number 1

spdx_expressions: Set[Expression]

Alias for field number 0