:py:mod:`cyclonedx.model.component_evidence`
============================================

.. py:module:: cyclonedx.model.component_evidence


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   cyclonedx.model.component_evidence.IdentityField
   cyclonedx.model.component_evidence.AnalysisTechnique
   cyclonedx.model.component_evidence.Method
   cyclonedx.model.component_evidence.Identity
   cyclonedx.model.component_evidence.Occurrence
   cyclonedx.model.component_evidence.CallStackFrame
   cyclonedx.model.component_evidence.CallStack
   cyclonedx.model.component_evidence.ComponentEvidence




.. py:class:: IdentityField


   Bases: :py:obj:`str`, :py:obj:`enum.Enum`

   Enum object that defines the permissible field types for Identity.

   .. note::
       See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.7/json/#components_items_evidence_identity

   .. py:attribute:: GROUP
      :value: 'group'

      

   .. py:attribute:: NAME
      :value: 'name'

      

   .. py:attribute:: VERSION
      :value: 'version'

      

   .. py:attribute:: PURL
      :value: 'purl'

      

   .. py:attribute:: CPE
      :value: 'cpe'

      

   .. py:attribute:: OMNIBOR_ID
      :value: 'omniborId'

      

   .. py:attribute:: SWHID
      :value: 'swhid'

      

   .. py:attribute:: SWID
      :value: 'swid'

      

   .. py:attribute:: HASH
      :value: 'hash'

      

   .. py:method:: capitalize()

      Return a capitalized version of the string.

      More specifically, make the first character have upper case and the rest lower
      case.


   .. py:method:: casefold()

      Return a version of the string suitable for caseless comparisons.


   .. py:method:: center()

      Return a centered string of length width.

      Padding is done using the specified fill character (default is a space).


   .. py:method:: count()

      S.count(sub[, start[, end]]) -> int

      Return the number of non-overlapping occurrences of substring sub in
      string S[start:end].  Optional arguments start and end are
      interpreted as in slice notation.


   .. py:method:: encode()

      Encode the string using the codec registered for encoding.

      encoding
        The encoding in which to encode the string.
      errors
        The error handling scheme to use for encoding errors.
        The default is 'strict' meaning that encoding errors raise a
        UnicodeEncodeError.  Other possible values are 'ignore', 'replace' and
        'xmlcharrefreplace' as well as any other name registered with
        codecs.register_error that can handle UnicodeEncodeErrors.


   .. py:method:: endswith()

      S.endswith(suffix[, start[, end]]) -> bool

      Return True if S ends with the specified suffix, False otherwise.
      With optional start, test S beginning at that position.
      With optional end, stop comparing S at that position.
      suffix can also be a tuple of strings to try.


   .. py:method:: expandtabs()

      Return a copy where all tab characters are expanded using spaces.

      If tabsize is not given, a tab size of 8 characters is assumed.


   .. py:method:: find()

      S.find(sub[, start[, end]]) -> int

      Return the lowest index in S where substring sub is found,
      such that sub is contained within S[start:end].  Optional
      arguments start and end are interpreted as in slice notation.

      Return -1 on failure.


   .. py:method:: format()

      S.format(*args, **kwargs) -> str

      Return a formatted version of S, using substitutions from args and kwargs.
      The substitutions are identified by braces ('{' and '}').


   .. py:method:: format_map()

      S.format_map(mapping) -> str

      Return a formatted version of S, using substitutions from mapping.
      The substitutions are identified by braces ('{' and '}').


   .. py:method:: index()

      S.index(sub[, start[, end]]) -> int

      Return the lowest index in S where substring sub is found,
      such that sub is contained within S[start:end].  Optional
      arguments start and end are interpreted as in slice notation.

      Raises ValueError when the substring is not found.


   .. py:method:: isalnum()

      Return True if the string is an alpha-numeric string, False otherwise.

      A string is alpha-numeric if all characters in the string are alpha-numeric and
      there is at least one character in the string.


   .. py:method:: isalpha()

      Return True if the string is an alphabetic string, False otherwise.

      A string is alphabetic if all characters in the string are alphabetic and there
      is at least one character in the string.


   .. py:method:: isascii()

      Return True if all characters in the string are ASCII, False otherwise.

      ASCII characters have code points in the range U+0000-U+007F.
      Empty string is ASCII too.


   .. py:method:: isdecimal()

      Return True if the string is a decimal string, False otherwise.

      A string is a decimal string if all characters in the string are decimal and
      there is at least one character in the string.


   .. py:method:: isdigit()

      Return True if the string is a digit string, False otherwise.

      A string is a digit string if all characters in the string are digits and there
      is at least one character in the string.


   .. py:method:: isidentifier()

      Return True if the string is a valid Python identifier, False otherwise.

      Call keyword.iskeyword(s) to test whether string s is a reserved identifier,
      such as "def" or "class".


   .. py:method:: islower()

      Return True if the string is a lowercase string, False otherwise.

      A string is lowercase if all cased characters in the string are lowercase and
      there is at least one cased character in the string.


   .. py:method:: isnumeric()

      Return True if the string is a numeric string, False otherwise.

      A string is numeric if all characters in the string are numeric and there is at
      least one character in the string.


   .. py:method:: isprintable()

      Return True if the string is printable, False otherwise.

      A string is printable if all of its characters are considered printable in
      repr() or if it is empty.


   .. py:method:: isspace()

      Return True if the string is a whitespace string, False otherwise.

      A string is whitespace if all characters in the string are whitespace and there
      is at least one character in the string.


   .. py:method:: istitle()

      Return True if the string is a title-cased string, False otherwise.

      In a title-cased string, upper- and title-case characters may only
      follow uncased characters and lowercase characters only cased ones.


   .. py:method:: isupper()

      Return True if the string is an uppercase string, False otherwise.

      A string is uppercase if all cased characters in the string are uppercase and
      there is at least one cased character in the string.


   .. py:method:: join()

      Concatenate any number of strings.

      The string whose method is called is inserted in between each given string.
      The result is returned as a new string.

      Example: '.'.join(['ab', 'pq', 'rs']) -> 'ab.pq.rs'


   .. py:method:: ljust()

      Return a left-justified string of length width.

      Padding is done using the specified fill character (default is a space).


   .. py:method:: lower()

      Return a copy of the string converted to lowercase.


   .. py:method:: lstrip()

      Return a copy of the string with leading whitespace removed.

      If chars is given and not None, remove characters in chars instead.


   .. py:method:: partition()

      Partition the string into three parts using the given separator.

      This will search for the separator in the string.  If the separator is found,
      returns a 3-tuple containing the part before the separator, the separator
      itself, and the part after it.

      If the separator is not found, returns a 3-tuple containing the original string
      and two empty strings.


   .. py:method:: removeprefix()

      Return a str with the given prefix string removed if present.

      If the string starts with the prefix string, return string[len(prefix):].
      Otherwise, return a copy of the original string.


   .. py:method:: removesuffix()

      Return a str with the given suffix string removed if present.

      If the string ends with the suffix string and that suffix is not empty,
      return string[:-len(suffix)]. Otherwise, return a copy of the original
      string.


   .. py:method:: replace()

      Return a copy with all occurrences of substring old replaced by new.

        count
          Maximum number of occurrences to replace.
          -1 (the default value) means replace all occurrences.

      If the optional argument count is given, only the first count occurrences are
      replaced.


   .. py:method:: rfind()

      S.rfind(sub[, start[, end]]) -> int

      Return the highest index in S where substring sub is found,
      such that sub is contained within S[start:end].  Optional
      arguments start and end are interpreted as in slice notation.

      Return -1 on failure.


   .. py:method:: rindex()

      S.rindex(sub[, start[, end]]) -> int

      Return the highest index in S where substring sub is found,
      such that sub is contained within S[start:end].  Optional
      arguments start and end are interpreted as in slice notation.

      Raises ValueError when the substring is not found.


   .. py:method:: rjust()

      Return a right-justified string of length width.

      Padding is done using the specified fill character (default is a space).


   .. py:method:: rpartition()

      Partition the string into three parts using the given separator.

      This will search for the separator in the string, starting at the end. If
      the separator is found, returns a 3-tuple containing the part before the
      separator, the separator itself, and the part after it.

      If the separator is not found, returns a 3-tuple containing two empty strings
      and the original string.


   .. py:method:: rsplit()

      Return a list of the substrings in the string, using sep as the separator string.

        sep
          The separator used to split the string.

          When set to None (the default value), will split on any whitespace
          character (including \n \r \t \f and spaces) and will discard
          empty strings from the result.
        maxsplit
          Maximum number of splits.
          -1 (the default value) means no limit.

      Splitting starts at the end of the string and works to the front.


   .. py:method:: rstrip()

      Return a copy of the string with trailing whitespace removed.

      If chars is given and not None, remove characters in chars instead.


   .. py:method:: split()

      Return a list of the substrings in the string, using sep as the separator string.

        sep
          The separator used to split the string.

          When set to None (the default value), will split on any whitespace
          character (including \n \r \t \f and spaces) and will discard
          empty strings from the result.
        maxsplit
          Maximum number of splits.
          -1 (the default value) means no limit.

      Splitting starts at the front of the string and works to the end.

      Note, str.split() is mainly useful for data that has been intentionally
      delimited.  With natural text that includes punctuation, consider using
      the regular expression module.


   .. py:method:: splitlines()

      Return a list of the lines in the string, breaking at line boundaries.

      Line breaks are not included in the resulting list unless keepends is given and
      true.


   .. py:method:: startswith()

      S.startswith(prefix[, start[, end]]) -> bool

      Return True if S starts with the specified prefix, False otherwise.
      With optional start, test S beginning at that position.
      With optional end, stop comparing S at that position.
      prefix can also be a tuple of strings to try.


   .. py:method:: strip()

      Return a copy of the string with leading and trailing whitespace removed.

      If chars is given and not None, remove characters in chars instead.


   .. py:method:: swapcase()

      Convert uppercase characters to lowercase and lowercase characters to uppercase.


   .. py:method:: title()

      Return a version of the string where each word is titlecased.

      More specifically, words start with uppercased characters and all remaining
      cased characters have lower case.


   .. py:method:: translate()

      Replace each character in the string using the given translation table.

        table
          Translation table, which must be a mapping of Unicode ordinals to
          Unicode ordinals, strings, or None.

      The table must implement lookup/indexing via __getitem__, for instance a
      dictionary or list.  If this operation raises LookupError, the character is
      left untouched.  Characters mapped to None are deleted.


   .. py:method:: upper()

      Return a copy of the string converted to uppercase.


   .. py:method:: zfill()

      Pad a numeric string with zeros on the left, to fill a field of the given width.

      The string is never truncated.


   .. py:method:: name()

      The name of the Enum member.


   .. py:method:: value()

      The value of the Enum member.



.. py:class:: AnalysisTechnique


   Bases: :py:obj:`str`, :py:obj:`enum.Enum`

   Enum object that defines the permissible analysis techniques.

   .. py:attribute:: SOURCE_CODE_ANALYSIS
      :value: 'source-code-analysis'

      

   .. py:attribute:: BINARY_ANALYSIS
      :value: 'binary-analysis'

      

   .. py:attribute:: MANIFEST_ANALYSIS
      :value: 'manifest-analysis'

      

   .. py:attribute:: AST_FINGERPRINT
      :value: 'ast-fingerprint'

      

   .. py:attribute:: HASH_COMPARISON
      :value: 'hash-comparison'

      

   .. py:attribute:: INSTRUMENTATION
      :value: 'instrumentation'

      

   .. py:attribute:: DYNAMIC_ANALYSIS
      :value: 'dynamic-analysis'

      

   .. py:attribute:: FILENAME
      :value: 'filename'

      

   .. py:attribute:: ATTESTATION
      :value: 'attestation'

      

   .. py:attribute:: OTHER
      :value: 'other'

      

   .. py:method:: capitalize()

      Return a capitalized version of the string.

      More specifically, make the first character have upper case and the rest lower
      case.


   .. py:method:: casefold()

      Return a version of the string suitable for caseless comparisons.


   .. py:method:: center()

      Return a centered string of length width.

      Padding is done using the specified fill character (default is a space).


   .. py:method:: count()

      S.count(sub[, start[, end]]) -> int

      Return the number of non-overlapping occurrences of substring sub in
      string S[start:end].  Optional arguments start and end are
      interpreted as in slice notation.


   .. py:method:: encode()

      Encode the string using the codec registered for encoding.

      encoding
        The encoding in which to encode the string.
      errors
        The error handling scheme to use for encoding errors.
        The default is 'strict' meaning that encoding errors raise a
        UnicodeEncodeError.  Other possible values are 'ignore', 'replace' and
        'xmlcharrefreplace' as well as any other name registered with
        codecs.register_error that can handle UnicodeEncodeErrors.


   .. py:method:: endswith()

      S.endswith(suffix[, start[, end]]) -> bool

      Return True if S ends with the specified suffix, False otherwise.
      With optional start, test S beginning at that position.
      With optional end, stop comparing S at that position.
      suffix can also be a tuple of strings to try.


   .. py:method:: expandtabs()

      Return a copy where all tab characters are expanded using spaces.

      If tabsize is not given, a tab size of 8 characters is assumed.


   .. py:method:: find()

      S.find(sub[, start[, end]]) -> int

      Return the lowest index in S where substring sub is found,
      such that sub is contained within S[start:end].  Optional
      arguments start and end are interpreted as in slice notation.

      Return -1 on failure.


   .. py:method:: format()

      S.format(*args, **kwargs) -> str

      Return a formatted version of S, using substitutions from args and kwargs.
      The substitutions are identified by braces ('{' and '}').


   .. py:method:: format_map()

      S.format_map(mapping) -> str

      Return a formatted version of S, using substitutions from mapping.
      The substitutions are identified by braces ('{' and '}').


   .. py:method:: index()

      S.index(sub[, start[, end]]) -> int

      Return the lowest index in S where substring sub is found,
      such that sub is contained within S[start:end].  Optional
      arguments start and end are interpreted as in slice notation.

      Raises ValueError when the substring is not found.


   .. py:method:: isalnum()

      Return True if the string is an alpha-numeric string, False otherwise.

      A string is alpha-numeric if all characters in the string are alpha-numeric and
      there is at least one character in the string.


   .. py:method:: isalpha()

      Return True if the string is an alphabetic string, False otherwise.

      A string is alphabetic if all characters in the string are alphabetic and there
      is at least one character in the string.


   .. py:method:: isascii()

      Return True if all characters in the string are ASCII, False otherwise.

      ASCII characters have code points in the range U+0000-U+007F.
      Empty string is ASCII too.


   .. py:method:: isdecimal()

      Return True if the string is a decimal string, False otherwise.

      A string is a decimal string if all characters in the string are decimal and
      there is at least one character in the string.


   .. py:method:: isdigit()

      Return True if the string is a digit string, False otherwise.

      A string is a digit string if all characters in the string are digits and there
      is at least one character in the string.


   .. py:method:: isidentifier()

      Return True if the string is a valid Python identifier, False otherwise.

      Call keyword.iskeyword(s) to test whether string s is a reserved identifier,
      such as "def" or "class".


   .. py:method:: islower()

      Return True if the string is a lowercase string, False otherwise.

      A string is lowercase if all cased characters in the string are lowercase and
      there is at least one cased character in the string.


   .. py:method:: isnumeric()

      Return True if the string is a numeric string, False otherwise.

      A string is numeric if all characters in the string are numeric and there is at
      least one character in the string.


   .. py:method:: isprintable()

      Return True if the string is printable, False otherwise.

      A string is printable if all of its characters are considered printable in
      repr() or if it is empty.


   .. py:method:: isspace()

      Return True if the string is a whitespace string, False otherwise.

      A string is whitespace if all characters in the string are whitespace and there
      is at least one character in the string.


   .. py:method:: istitle()

      Return True if the string is a title-cased string, False otherwise.

      In a title-cased string, upper- and title-case characters may only
      follow uncased characters and lowercase characters only cased ones.


   .. py:method:: isupper()

      Return True if the string is an uppercase string, False otherwise.

      A string is uppercase if all cased characters in the string are uppercase and
      there is at least one cased character in the string.


   .. py:method:: join()

      Concatenate any number of strings.

      The string whose method is called is inserted in between each given string.
      The result is returned as a new string.

      Example: '.'.join(['ab', 'pq', 'rs']) -> 'ab.pq.rs'


   .. py:method:: ljust()

      Return a left-justified string of length width.

      Padding is done using the specified fill character (default is a space).


   .. py:method:: lower()

      Return a copy of the string converted to lowercase.


   .. py:method:: lstrip()

      Return a copy of the string with leading whitespace removed.

      If chars is given and not None, remove characters in chars instead.


   .. py:method:: partition()

      Partition the string into three parts using the given separator.

      This will search for the separator in the string.  If the separator is found,
      returns a 3-tuple containing the part before the separator, the separator
      itself, and the part after it.

      If the separator is not found, returns a 3-tuple containing the original string
      and two empty strings.


   .. py:method:: removeprefix()

      Return a str with the given prefix string removed if present.

      If the string starts with the prefix string, return string[len(prefix):].
      Otherwise, return a copy of the original string.


   .. py:method:: removesuffix()

      Return a str with the given suffix string removed if present.

      If the string ends with the suffix string and that suffix is not empty,
      return string[:-len(suffix)]. Otherwise, return a copy of the original
      string.


   .. py:method:: replace()

      Return a copy with all occurrences of substring old replaced by new.

        count
          Maximum number of occurrences to replace.
          -1 (the default value) means replace all occurrences.

      If the optional argument count is given, only the first count occurrences are
      replaced.


   .. py:method:: rfind()

      S.rfind(sub[, start[, end]]) -> int

      Return the highest index in S where substring sub is found,
      such that sub is contained within S[start:end].  Optional
      arguments start and end are interpreted as in slice notation.

      Return -1 on failure.


   .. py:method:: rindex()

      S.rindex(sub[, start[, end]]) -> int

      Return the highest index in S where substring sub is found,
      such that sub is contained within S[start:end].  Optional
      arguments start and end are interpreted as in slice notation.

      Raises ValueError when the substring is not found.


   .. py:method:: rjust()

      Return a right-justified string of length width.

      Padding is done using the specified fill character (default is a space).


   .. py:method:: rpartition()

      Partition the string into three parts using the given separator.

      This will search for the separator in the string, starting at the end. If
      the separator is found, returns a 3-tuple containing the part before the
      separator, the separator itself, and the part after it.

      If the separator is not found, returns a 3-tuple containing two empty strings
      and the original string.


   .. py:method:: rsplit()

      Return a list of the substrings in the string, using sep as the separator string.

        sep
          The separator used to split the string.

          When set to None (the default value), will split on any whitespace
          character (including \n \r \t \f and spaces) and will discard
          empty strings from the result.
        maxsplit
          Maximum number of splits.
          -1 (the default value) means no limit.

      Splitting starts at the end of the string and works to the front.


   .. py:method:: rstrip()

      Return a copy of the string with trailing whitespace removed.

      If chars is given and not None, remove characters in chars instead.


   .. py:method:: split()

      Return a list of the substrings in the string, using sep as the separator string.

        sep
          The separator used to split the string.

          When set to None (the default value), will split on any whitespace
          character (including \n \r \t \f and spaces) and will discard
          empty strings from the result.
        maxsplit
          Maximum number of splits.
          -1 (the default value) means no limit.

      Splitting starts at the front of the string and works to the end.

      Note, str.split() is mainly useful for data that has been intentionally
      delimited.  With natural text that includes punctuation, consider using
      the regular expression module.


   .. py:method:: splitlines()

      Return a list of the lines in the string, breaking at line boundaries.

      Line breaks are not included in the resulting list unless keepends is given and
      true.


   .. py:method:: startswith()

      S.startswith(prefix[, start[, end]]) -> bool

      Return True if S starts with the specified prefix, False otherwise.
      With optional start, test S beginning at that position.
      With optional end, stop comparing S at that position.
      prefix can also be a tuple of strings to try.


   .. py:method:: strip()

      Return a copy of the string with leading and trailing whitespace removed.

      If chars is given and not None, remove characters in chars instead.


   .. py:method:: swapcase()

      Convert uppercase characters to lowercase and lowercase characters to uppercase.


   .. py:method:: title()

      Return a version of the string where each word is titlecased.

      More specifically, words start with uppercased characters and all remaining
      cased characters have lower case.


   .. py:method:: translate()

      Replace each character in the string using the given translation table.

        table
          Translation table, which must be a mapping of Unicode ordinals to
          Unicode ordinals, strings, or None.

      The table must implement lookup/indexing via __getitem__, for instance a
      dictionary or list.  If this operation raises LookupError, the character is
      left untouched.  Characters mapped to None are deleted.


   .. py:method:: upper()

      Return a copy of the string converted to uppercase.


   .. py:method:: zfill()

      Pad a numeric string with zeros on the left, to fill a field of the given width.

      The string is never truncated.


   .. py:method:: name()

      The name of the Enum member.


   .. py:method:: value()

      The value of the Enum member.



.. py:class:: Method(*, technique: AnalysisTechnique, confidence: decimal.Decimal, value: Optional[str] = None)


   Represents a method used to extract and/or analyze evidence.

   .. note::
       See the CycloneDX Schema definition:
       https://cyclonedx.org/docs/1.7/json/#components_items_evidence_identity_oneOf_i0_items_methods

   .. py:property:: technique
      :type: AnalysisTechnique


   .. py:property:: confidence
      :type: decimal.Decimal

      The confidence of the evidence from 0 - 1, where 1 is 100% confidence.
      Confidence is specific to the technique used. Each technique of analysis can have independent confidence.


   .. py:property:: value
      :type: Optional[str]



.. py:class:: Identity(*, field: IdentityField, confidence: Optional[decimal.Decimal] = None, concluded_value: Optional[str] = None, methods: Optional[collections.abc.Iterable[Method]] = None, tools: Optional[collections.abc.Iterable[cyclonedx.model.bom_ref.BomRef]] = None)


   Our internal representation of the `identityType` complex type.

   .. note::
       See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.7/json/#components_items_evidence_identity

   .. py:property:: field
      :type: IdentityField


   .. py:property:: confidence
      :type: Optional[decimal.Decimal]

      The overall confidence of the evidence from 0 - 1, where 1 is 100% confidence.


   .. py:property:: concluded_value
      :type: Optional[str]


   .. py:property:: methods
      :type: SortedSet[Method]


   .. py:property:: tools
      :type: SortedSet[BomRef]

      References to the tools used to perform analysis and collect evidence.



.. py:class:: Occurrence(*, bom_ref: Optional[Union[str, cyclonedx.model.bom_ref.BomRef]] = None, location: str, line: Optional[int] = None, offset: Optional[int] = None, symbol: Optional[str] = None, additional_context: Optional[str] = None)


   Our internal representation of the `occurrenceType` complex type.

   .. note::
       See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.7/json/#components_items_evidence_occurrences

   .. py:property:: bom_ref
      :type: cyclonedx.model.bom_ref.BomRef

      An optional identifier which can be used to reference the requirement elsewhere in the BOM.
      Every bom-ref MUST be unique within the BOM.

      Returns:
          `BomRef`


   .. py:property:: location
      :type: str

      Location can be a file path, URL, or a unique identifier from a component discovery tool


   .. py:property:: line
      :type: Optional[int]

      The line number in the file where the dependency or reference was detected.


   .. py:property:: offset
      :type: Optional[int]

      The offset location within the file where the dependency or reference was detected.


   .. py:property:: symbol
      :type: Optional[str]

      Programming language symbol or import name.


   .. py:property:: additional_context
      :type: Optional[str]

      Additional context about the occurrence of the component.



.. py:class:: CallStackFrame(*, module: str, package: Optional[str] = None, function: Optional[str] = None, parameters: Optional[collections.abc.Iterable[str]] = None, line: Optional[int] = None, column: Optional[int] = None, full_filename: Optional[str] = None)


   Represents an individual frame in a call stack.

   .. note::
       See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.7/json/#components_items_evidence_callstack

   .. py:property:: package
      :type: Optional[str]

      The package name.


   .. py:property:: module
      :type: str

      The module name


   .. py:property:: function
      :type: Optional[str]

      The function name.


   .. py:property:: parameters
      :type: SortedSet[str]

      Function parameters


   .. py:property:: line
      :type: Optional[int]

      The line number


   .. py:property:: column
      :type: Optional[int]

      The column number


   .. py:property:: full_filename
      :type: Optional[str]

      The full file path



.. py:class:: CallStack(*, frames: Optional[collections.abc.Iterable[CallStackFrame]] = None)


   Our internal representation of the `callStackType` complex type.
   Contains an array of stack frames describing a call stack from when a component was identified.

   .. note::
       See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.7/json/#components_items_evidence_callstack

   .. py:property:: frames
      :type: List[CallStackFrame]

      Array of stack frames



.. py:class:: ComponentEvidence(*, identity: Optional[Union[collections.abc.Iterable[Identity], Identity]] = None, occurrences: Optional[collections.abc.Iterable[Occurrence]] = None, callstack: Optional[CallStack] = None, licenses: Optional[collections.abc.Iterable[cyclonedx.model.license.License]] = None, copyright: Optional[collections.abc.Iterable[cyclonedx.model.Copyright]] = None)


   Our internal representation of the `componentEvidenceType` complex type.

   Provides the ability to document evidence collected through various forms of extraction or analysis.

   .. note::
       See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.7/xml/#type_componentEvidenceType

   .. py:property:: identity
      :type: SortedSet[Identity]

      Provides a way to identify components via various methods.
      Returns SortedSet of identities.


   .. py:property:: occurrences
      :type: SortedSet[Occurrence]

      A list of locations where evidence was obtained from.


   .. py:property:: callstack
      :type: Optional[CallStack]

      A representation of a call stack from when the component was identified.


   .. py:property:: licenses
      :type: cyclonedx.model.license.LicenseRepository

      Optional list of licenses obtained during analysis.

      Returns:
          Set of `LicenseChoice`


   .. py:property:: copyright
      :type: SortedSet[Copyright]

      Optional list of copyright statements.

      Returns:
           Set of `Copyright`



