liblineage.updater.v2.build

Classes

Build(date, datetime, files, os_patch_level, ...)

LineageOS device build informations.

class liblineage.updater.v2.build.Build(date: str, datetime: datetime, files: List[BuildFile], os_patch_level: str, build_type: str, version: str)

LineageOS device build informations.

Attributes: - date (str): The date of the build, in ISO 8601 format - datetime (datetime): The date of the build, as a date object - files (list[BuildFile]): List of files belonging to this build, first one being the OTA zip - os_patch_level (str): The OS patch level of the build in the format “YYYY-MM” - build_type (str): The type of the build (nightly, weekly, etc.) - version (str): The version of the build (e.g. 21.0)

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

Create an object from a JSON object.