cyclonedx-python-lib API reference
110 public APIs from cyclonedx-python-lib (CycloneDX/cyclonedx-python-lib) — 30 classes, 3 functions, 77 methods. Signatures extracted by static analysis of the actual source.
Repository: CycloneDX/cyclonedx-python-lib
| Kind | Count |
|---|---|
| Classes | 30 |
| Functions | 3 |
| Methods | 77 |
API list
class
cyclonedx.exception.CycloneDxExceptionRoot exception thrown by this library.
class
cyclonedx.exception.output.BomGenerationErrorExceptionRaised if there is an unknown error.
method
cyclonedx.model.HashType.alg() -> HashAlgorithmSpecifies the algorithm used to create the hash.
method
cyclonedx.model.HashType.content() -> strHash value content.
method
cyclonedx.model.Note.locale() -> Optional[str]Get the ISO locale of this Note.
method
cyclonedx.model.Note.text() -> NoteTextSpecifies the full content of the release note.
method
cyclonedx.model.Property.name() -> strThe name of the property.
method
cyclonedx.model.Property.value() -> Optional[str]Value of this Property.
method
cyclonedx.model.component.Commit.uid() -> Optional[str]A unique identifier of the commit.
method
cyclonedx.model.component.Commit.url() -> Optional[XsUri]The URL to the commit.
method
cyclonedx.model.component.Component.authors() -> 'SortedSet[OrganizationalContact]'The person(s) who created the component.
method
cyclonedx.model.component.Component.description() -> Optional[str]Get the description of this Component.
method
cyclonedx.model.component.Component.group() -> Optional[str]The grouping name or identifier.
method
cyclonedx.model.component.Component.mime_type() -> Optional[str]Get any declared mime-type for this Component.
method
cyclonedx.model.component.Component.name() -> strThe name of the component.
method
cyclonedx.model.component.Component.omnibor_ids() -> 'SortedSet[OmniborId]'Specifies the OmniBOR Artifact ID.
method
cyclonedx.model.component.Component.purl() -> Optional[PackageURL]Specifies the package-url (PURL).
method
cyclonedx.model.component.Component.release_notes() -> Optional[ReleaseNotes]Specifies optional release notes.
method
cyclonedx.model.component.Component.scope() -> Optional[ComponentScope]Specifies the scope of the component.
method
cyclonedx.model.component.Component.type() -> ComponentTypeGet the type of this Component.
method
cyclonedx.model.component.Component.version() -> Optional[str]The component version.
method
cyclonedx.model.component.Diff.text() -> Optional[AttachedText]Specifies the optional text of the diff.
method
cyclonedx.model.component.Diff.url() -> Optional[XsUri]Specifies the URL to the diff.
method
cyclonedx.model.component.Patch.diff() -> Optional[Diff]The patch file (or diff) that show changes.
method
cyclonedx.model.component.Patch.resolves() -> 'SortedSet[IssueType]'Optional list of issues resolved by this patch.
method
cyclonedx.model.component.Swid.name() -> strMaps to the name of a SoftwareIdentity.
method
cyclonedx.model.component.Swid.patch() -> Optional[bool]Maps to the patch of a SoftwareIdentity.
method
cyclonedx.model.component.Swid.tag_id() -> strMaps to the tagId of a SoftwareIdentity.
method
cyclonedx.model.component.Swid.tag_version() -> Optional[int]Maps to the tagVersion of a SoftwareIdentity.
method
cyclonedx.model.component.Swid.text() -> Optional[AttachedText]Specifies the full content of the SWID tag.
method
cyclonedx.model.component.Swid.url() -> Optional[XsUri]The URL to the SWID file.
method
cyclonedx.model.component.Swid.version() -> Optional[str]Maps to the version of a SoftwareIdentity.
class
cyclonedx.model.component_evidence.CallStackFrameRepresents an individual frame in a call stack.
method
cyclonedx.model.component_evidence.CallStackFrame.column() -> Optional[int]The column number
method
cyclonedx.model.component_evidence.CallStackFrame.full_filename() -> Optional[str]The full file path
method
cyclonedx.model.component_evidence.CallStackFrame.function() -> Optional[str]The function name.
method
cyclonedx.model.component_evidence.CallStackFrame.line() -> Optional[int]The line number
method
cyclonedx.model.component_evidence.CallStackFrame.module() -> strThe module name
method
cyclonedx.model.component_evidence.CallStackFrame.package() -> Optional[str]The package name.
method
cyclonedx.model.component_evidence.CallStackFrame.parameters() -> 'SortedSet[str]'Function parameters
method
cyclonedx.model.crypto.CertificateProperties.certificate_extension() -> Optional[str]The file extension of the certificate.
method
cyclonedx.model.crypto.CertificateProperties.certificate_format() -> Optional[str]The format of the certificate.
method
cyclonedx.model.crypto.CertificateProperties.issuer_name() -> Optional[str]The issuer name for the certificate.
method
cyclonedx.model.crypto.CertificateProperties.subject_name() -> Optional[str]The subject name for the certificate.
class
cyclonedx.model.definition.DefinitionsThe repository for definitions ..
method
cyclonedx.model.definition.Definitions.standards() -> 'SortedSet[Standard]'Returns: A SortedSet of Standards
class
cyclonedx.model.definition.LevelLevel of compliance for a standard.
method
cyclonedx.model.definition.Level.description() -> Optional[str]Returns: The description of the level.
method
cyclonedx.model.definition.Level.identifier() -> Optional[str]Returns: The identifier of the level.
method
cyclonedx.model.definition.Level.title() -> Optional[str]Returns: The title of the level.
class
cyclonedx.model.definition.RequirementA requirement comprising a standard.
method
cyclonedx.model.definition.Requirement.identifier() -> Optional[str]Returns: The identifier of the requirement.
method
cyclonedx.model.definition.Requirement.text() -> Optional[str]Returns: The text of the requirement.
method
cyclonedx.model.definition.Requirement.title() -> Optional[str]Returns: The title of the requirement.
method
cyclonedx.model.definition.Standard.description() -> Optional[str]Returns: The description of the standard
method
cyclonedx.model.definition.Standard.name() -> Optional[str]Returns: The name of the standard
method
cyclonedx.model.definition.Standard.version() -> Optional[str]Returns: The version of the standard
class
cyclonedx.model.dependency.DependableDependable objects can be part of the Dependency Graph
class
cyclonedx.model.dependency.DependencyModels a Dependency within a BOM.
method
cyclonedx.model.issue.IssueType.description() -> Optional[str]A description of the issue.
method
cyclonedx.model.issue.IssueType.name() -> Optional[str]The name of the issue.
method
cyclonedx.model.issue.IssueType.references() -> 'SortedSet[XsUri]'Any reference URLs related to this issue.
method
cyclonedx.model.issue.IssueType.source() -> Optional[IssueTypeSource]The source of this issue.
method
cyclonedx.model.issue.IssueType.type() -> IssueClassificationSpecifies the type of issue.
class
cyclonedx.model.license.LicenseRepositoryCollection of :class:`License`.
class
cyclonedx.model.lifecycle.LifecycleRepositoryCollection of :class:`Lifecycle`.
method
cyclonedx.model.service.Service.data() -> 'SortedSet[DataClassification]'Specifies the data classification.
method
cyclonedx.model.service.Service.description() -> Optional[str]Specifies a description for the service.
method
cyclonedx.model.service.Service.endpoints() -> 'SortedSet[XsUri]'A list of endpoints URI's this service provides.
method
cyclonedx.model.service.Service.group() -> Optional[str]The grouping name, namespace, or identifier.
method
cyclonedx.model.service.Service.name() -> strThe name of the service.
method
cyclonedx.model.service.Service.release_notes() -> Optional[ReleaseNotes]Specifies optional release notes.
method
cyclonedx.model.service.Service.version() -> Optional[str]The service version.
method
cyclonedx.model.tool.Tool.hashes() -> 'SortedSet[HashType]'The hashes of the tool (if applicable).
method
cyclonedx.model.tool.Tool.name() -> Optional[str]The name of the tool.
method
cyclonedx.model.tool.Tool.vendor() -> Optional[str]The name of the vendor who created the tool.
method
cyclonedx.model.tool.Tool.version() -> Optional[str]The version of the tool.
class
cyclonedx.model.tool.ToolRepositoryThe repository of tool formats
method
cyclonedx.model.tool.ToolRepository.components() -> 'SortedSet[Component]'Returns: A SortedSet of Components
method
cyclonedx.model.tool.ToolRepository.services() -> 'SortedSet[Service]'Returns: A SortedSet of Services
method
cyclonedx.model.vulnerability.Vulnerability.ratings() -> 'SortedSet[VulnerabilityRating]'List of vulnerability ratings.
method
cyclonedx.model.vulnerability.Vulnerability.tools() -> ToolRepositoryTools used to create this BOM.
class
cyclonedx.model.vulnerability.VulnerabilityAdvisoryClass that models the `advisoryType` complex type.
method
cyclonedx.model.vulnerability.VulnerabilityAdvisory.title() -> Optional[str]The title of this advisory.
method
cyclonedx.model.vulnerability.VulnerabilityAdvisory.url() -> XsUriThe url of this advisory.
class
cyclonedx.schema.OutputFormatOutput formats.
class
cyclonedx.schema.SchemaVersionSchema version.
method
cyclonedx.schema.SchemaVersion.from_version(version:str) -> _SVReturn instance based of a version string - e.g.
method
cyclonedx.schema.SchemaVersion.to_version() -> strReturn as a version string - e.g.
class
cyclonedx.schema.schema.BaseSchemaVersionBase class for schema version views.
class
cyclonedx.schema.schema.SchemaVersion1Dot0Schema version views 1.0
class
cyclonedx.schema.schema.SchemaVersion1Dot1Schema version views 1.1
class
cyclonedx.schema.schema.SchemaVersion1Dot2Schema version views 1.2
class
cyclonedx.schema.schema.SchemaVersion1Dot3Schema version views 1.3
class
cyclonedx.schema.schema.SchemaVersion1Dot4Schema version views 1.4
class
cyclonedx.schema.schema.SchemaVersion1Dot5Schema version views 1.5
class
cyclonedx.schema.schema.SchemaVersion1Dot6Schema version views 1.6
class
cyclonedx.schema.schema.SchemaVersion1Dot7Schema version views 1.7
class
cyclonedx.serialization.BomRefHelper**DEPRECATED** in favour of :class:`BomRef`.
class
cyclonedx.serialization.LicenseRepositoryHelper**DEPRECATED** ..
func
cyclonedx.spdx.fixup_id(value:str) -> Optional[str]Fixup SPDX-ID.
func
cyclonedx.spdx.is_expression(value:str) -> boolValidate SPDX license expression.
func
cyclonedx.spdx.is_supported_id(value:str) -> boolValidate SPDX-ID according to current spec.
class
cyclonedx.validation.BaseSchemabasedValidatorBase Schema-based Validator
method
cyclonedx.validation.BaseSchemabasedValidator.output_format() -> OutputFormatGet the format.
method
cyclonedx.validation.BaseSchemabasedValidator.schema_version() -> 'SchemaVersion'Get the schema version.
class
cyclonedx.validation.SchemabasedValidatorSchema-based Validator protocol
class
cyclonedx.validation.ValidationErrorValidation failed with this specific error.
class
cyclonedx.validation.json.JsonValidatorValidator for CycloneDX documents in JSON format.
class
cyclonedx.validation.xml.XmlValidatorValidator for CycloneDX documents in XML format.
About this data
These signatures were extracted from the public source of CycloneDX/cyclonedx-python-lib
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.