liblineage.updater.v2.build_file

Classes

BuildFile(date, datetime, filename, ...)

LineageOS device build files informations.

class liblineage.updater.v2.build_file.BuildFile(date: str | None, datetime: datetime | None, filename: str, filepath: str, os_patch_level: str | None, os_sdk_level: int | None, ota_property_files: str | None, sha1: str, sha256: str, size: int, build_type: str | None, url: str)

LineageOS device build files informations.

Attributes: - filename (str): The filename of the file - filepath (str): The filepath of the file in the server - sha1 (str): The SHA1 hash of the file - sha256 (str): The SHA256 hash of the file - size (int): The size of the file, in bytes - url (str): The URL to download the file

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

Create an object from a JSON object.