liblineage.updater.v2.build_file

Classes

BuildFile(filename, filepath, sha1, sha256, ...)

LineageOS device build files informations.

class liblineage.updater.v2.build_file.BuildFile(filename: str, filepath: str, sha1: str, sha256: str, size: int, 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.