liblineage.updater.v1.build

Classes

Build(datetime, filename, id, romtype, size, ...)

LineageOS device build informations.

class liblineage.updater.v1.build.Build(datetime: datetime, filename: str, id: str, romtype: str, size: int, url: str, version: str)

LineageOS device build informations.

Attributes: - datetime (datetime): The date of the build, as a datetime object - filename (str): The filename of the update - id (str): The ID of the update - romtype (str): The update type (e.g. nightly) - size (int): The size of the file, in bytes - url (str): The URL to download the OTA zip - version (str): The LineageOS version of the update (e.g. 18.1)

__init__(datetime: datetime, filename: str, id: str, romtype: str, size: int, url: str, version: str)

Initialize the full update information.

classmethod from_json(update: Dict[str, Any])

Create an object from a JSON object.