Dependency¶
Dependency¶
- class ghastoolkit.Dependency(name: str, namespace: str | None = None, version: str | None = None, manager: str | None = None, path: str | None = None, qualifiers: dict[str, str] = <factory>, license: str | None = None, alerts: list[~ghastoolkit.supplychain.dependencyalert.DependencyAlert] = <factory>, repository: str | ~ghastoolkit.octokit.repository.Repository | None = None)¶
Dependency.
- __str__() str ¶
To String (PURL).
- alerts: list[DependencyAlert]¶
Security Alerts
- static fromPurl(purl: str) Dependency ¶
Create a Dependency from a PURL.
- property fullname: str¶
Full Name of the Dependency.
- getPurl(version: bool = True) str ¶
Create a PURL from the Dependency.
- license: str | None = None¶
License information
- manager: str | None = None¶
Package Manager
- name: str¶
Name of the Dependency
- namespace: str | None = None¶
Namespace of the Dependency
- path: str | None = None¶
Path to the Dependency
- qualifiers: dict[str, str]¶
Qualifiers
- repository: str | Repository | None = None¶
GitHub Repository for the dependency
- version: str | None = None¶
Version of the Dependency