AppStream.Checksum¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.Checksum(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Checksum
.
- classmethod new_with_value(kind, value)¶
- Parameters:
kind (
AppStream.ChecksumKind
) –value (
str
) –
- Returns:
- Return type:
Creates a new
AppStream.Checksum
with the given hash function and hash value.New in version 0.12.11.
- get_kind()¶
- Returns:
- Return type:
Gets the checksum type.
- get_value()¶
- Returns:
the checksum.
- Return type:
Gets the checksum, usually in its hexadecimal form.
- set_kind(kind)¶
- Parameters:
kind (
AppStream.ChecksumKind
) – theAppStream.ChecksumKind
, e.g.AppStream.ChecksumKind.SHA256
.
Sets the checksum type.