SpdxFile#

class technote.metadata.spdx.SpdxFile(**data)#

Bases: BaseModel

Representation of a SPDX license database file as a Pydantic model.

Parameters:

data (Any)

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

load_internal()

Load an SpdxFile from Technote's package data.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

classmethod load_internal()#

Load an SpdxFile from Technote’s package data.

Returns:

The SpdxFile instance from the licenses.json file packaged in Lander. This file is a mirror of the canonical license database maintained at spdx/license-list-data.

Return type:

SpdxFile