sebaubuntu_libs.libgofile.contents

Classes

Content(content_id, content_type, name, ...)

ContentResponse(total_download_count, ...[, ...])

Class representing a GoFile content response.

File(size, download_count, md5, mimetype, ...)

Class representing a GoFile file.

Folder(childs, code, public, *args, **kwargs)

Class representing a GoFile folder.

class sebaubuntu_libs.libgofile.contents.Content(content_id: str, content_type: str, name: str, parent_folder: str, create_time: datetime)
__init__(content_id: str, content_type: str, name: str, parent_folder: str, create_time: datetime)

Initialize a GoFile content.

static from_dict(data: Dict[str, Any])
get_kwargs() Dict[str, Any]
class sebaubuntu_libs.libgofile.contents.ContentResponse(total_download_count: int, total_size: int, contents: Dict[str, Dict[str, Any]], owner_id: str | None = None, parent_folder: str | None = None, is_root: bool = False, *args: Any, **kwargs: Any)

Class representing a GoFile content response.

As of now all contents returned by get_content are folders.

__init__(total_download_count: int, total_size: int, contents: Dict[str, Dict[str, Any]], owner_id: str | None = None, parent_folder: str | None = None, is_root: bool = False, *args: Any, **kwargs: Any)

Initialize a GoFile content.

static from_dict(data: Dict[str, Any]) ContentResponse
class sebaubuntu_libs.libgofile.contents.File(size: int, download_count: int, md5: str, mimetype: str, server_choosen: str, direct_link: str, link: str, *args: Any, **kwargs: Any)

Class representing a GoFile file.

__init__(size: int, download_count: int, md5: str, mimetype: str, server_choosen: str, direct_link: str, link: str, *args: Any, **kwargs: Any)

Initialize a GoFile file.

static from_dict(data: Dict[str, Any])
get_kwargs()
class sebaubuntu_libs.libgofile.contents.Folder(childs: List[str], code: str, public: bool, *args: Any, **kwargs: Any)

Class representing a GoFile folder.

__init__(childs: List[str], code: str, public: bool, *args: Any, **kwargs: Any)

Initialize a GoFile folder.

static from_dict(data: Dict[str, Any]) Folder
get_kwargs() Dict[str, Any]