CPEComponentAnyValue class

class cpe.comp.cpecomp_anyvalue.CPEComponentAnyValue[source]

Represents a component of CPE name without a particular value, compatible with the components of all versions of CPE specification.

For example, in version 2.3 of CPE specification, an component “any value” is other attribute in CPE name cpe:2.3:a:microsft:windows:xp:*:*:*:*:*:*:*.

__eq__(other)[source]

Returns True if other (first element of operation) and self (second element of operation) are equal components, false otherwise.

Parameters

other (CPEComponent) – component to compare

Returns

True if other == self, False otherwise

Return type

boolean

__hash__ = None
__init__()[source]

Initializes the component.

__str__()[source]

Returns a human-readable representation of CPE component.

Returns

Representation of CPE component as string

Return type

string