Licenses#

class technote.metadata.spdx.Licenses(licenses)#

Bases: object

License database, with access by license ID.

Parameters:

licenses (dict[str, SpdxLicense])

Attributes Summary

licenses

Internal license dictionary, keyed by the SPDX ID.

Methods Summary

load()

Load licenses from the SPDX database packaged in Lander.

Attributes Documentation

licenses: dict[str, SpdxLicense] = <dataclasses._MISSING_TYPE object>#

Internal license dictionary, keyed by the SPDX ID.

Methods Documentation

classmethod load()#

Load licenses from the SPDX database packaged in Lander.

Returns:

The license database instance.

Return type:

Licenses