bridge.services.spdx package#

Public Interface#

This section documents user-facing interface of the bridge.services.spdx package (as defined in its __init__.py file).

Classes#

SPDXLicenseIngestor(spdx_id)

Ingest license metadata from the SPDX license list by SPDX identifier.

SPDX integrations: async metadata ingestor from SPDX license list.

class bridge.services.spdx.SPDXLicenseIngestor(spdx_id)[source]#

Bases: Ingestor

Ingest license metadata from the SPDX license list by SPDX identifier.

This client fetches the JSON representation of a single license from the SPDX license list, which includes the canonical license text (licenseText), name, and other metadata.

Parameters:

spdx_id (str) – SPDX license identifier (e.g. "MIT", "GPL-3.0-only").

async fetch()[source]#

Fetch the SPDX license record for the specified SPDX identifier.

Returns:

JSON metadata for the SPDX license, including at least licenseId, name, and licenseText fields.

Return type:

dict

Raises:
  • SPDXLicenseNotFoundError – If the SPDX service does not return a valid license record.

  • httpx.RequestError, httpx.HTTPStatusError – For network/HTTP issues.

Submodules#

spdx_ingestor

Async client for the SPDX license list.

Dependencies diagram#

Each architecture diagram below visualizes the internal dependency structure of the bridge.services.spdx package. It shows how modules and subpackages within the package depend on each other, based on direct Python imports.

  • Packages are shown as purple rectangles

  • Modules are shown as pink rectangles

  • Arrows (A → B) indicate that A directly imports B

Each subpackage’s diagram focuses only on its own internal structure, it does not include imports to or from higher-level packages (those appear in the parent package’s diagram).

bridge package dependencies