pardata.schema.LicenseSchemaCollection

class pardata.schema.LicenseSchemaCollection(*args, spdx_json_url='https://spdx.org/licenses/licenses.json', **kwargs)

Bases: pardata._schema.SchemaCollection

License schema class that inherits functionality from SchemaCollection.

Parameters
  • spdx_json_url (str) – URL to the spdx json license file.

  • args (Any) –

  • kwargs (Any) –

Methods

export_schema(*keys)

Returns a copy of a loaded schema collection.

get_license_name(identifier)

Get the name of the license from its identifier.

Attributes

retrieved_url_or_path

The URL or path from which the schema was retrieved.