Colorhug.Sha1

Fields

Name

Type

Access

Description

bytes

bytes

r/w

Methods

class

parse (value, sha1)

to_string ()

Details

class Colorhug.Sha1
classmethod parse(value, sha1)
Parameters:
Raises:

GLib.Error

Returns:

True for success

Return type:

bool

Parses a SHA1 hash from a string value.

New in version 0.1.29.

to_string()
Returns:

A string, free with GLib.free().

Return type:

str

Gets a string representation of the SHA1 hash.

New in version 0.1.29.