Tepl.Metadata

g GObject.Object GObject.Object Tepl.Metadata Tepl.Metadata GObject.Object->Tepl.Metadata

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get (key)

set (key, value)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Tepl.Metadata(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Tepl.MetadataClass

classmethod new()
Returns:

a new, empty Tepl.Metadata object.

Return type:

Tepl.Metadata

New in version 5.0.

get(key)
Parameters:

key (str) – a key.

Returns:

the associated value (a UTF-8 string), or None. Free with GLib.free() when no longer needed.

Return type:

str or None

Gets the value of a metadata stored in the self object memory.

key must follow ‘the requirements explained in the class description [tepl-metadata-keys-requirements]’.

New in version 5.0.

set(key, value)
Parameters:
  • key (str) – a key.

  • value (str or None) – a nul-terminated UTF-8 string, or None to unset the key.

Sets or unsets key. This function just stores the new metadata value in the self object memory.

key must follow ‘the requirements explained in the class description [tepl-metadata-keys-requirements]’.

New in version 5.0.