sugar3.mime module

MIME helpers based on freedesktop specification.

STABLE.

class sugar3.mime.ObjectType(type_id, name, icon, mime_types)

Bases: object

sugar3.mime.choose_most_significant(mime_types)
sugar3.mime.get_all_generic_types()
sugar3.mime.get_extensions_by_mimetype(mime_type)
sugar3.mime.get_for_file(file_name)
sugar3.mime.get_from_file_name(file_name)

DEPRECATED: 0.102 (removed in 4 releases) Use Gio.content_type_guess(file_name, None)[0] instead.

sugar3.mime.get_generic_type(type_id)
sugar3.mime.get_mime_description(mime_type)
sugar3.mime.get_mime_icon(mime_type)
sugar3.mime.get_mime_parents(mime_type)
sugar3.mime.get_primary_extension(mime_type)
sugar3.mime.split_uri_list(uri_list)

Previous topic

sugar3.logger module

Next topic

sugar3.network module

This Page