Model’s

class fdroid_dl.model.Config(filename='fdroid-dl.json', repo_dir='./repo', metadata_dir='./metadata', cache_dir='.cache', apk_versions=1)[source]

Main Class responsible for handling the f-droid.json config file.

This Class represents the config file used by fdroid-dl and will default to https://f-droid.org/repo/ as bas repo and add at least the org.fdroid.fdroid app for download into the queue.

index(url)[source]

Return Index based on url.

Searches for downloaded index file based on repository url as configured in config file.

Parameters:url (str) – url of repo in config file
Returns:index found for given url
Return type:fdroid_dl.model.Index
load(file=None)[source]

Loads given file handler or filename into Config object and resolves.

repo(url)[source]

Return RepoConfig based on url.

Searches in config file for given url and returns the corresponding RepoConfig Class representation of it. if the repo is marked as having errors it will not be found. A KeyError is being raised if given url is not found or has an error node in the json file.

Parameters:key (str) – url of repo in config file
Returns:index found for given key
Return type:fdroid_dl.model.Index
Raises:KeyError – raised if given url is not found or is in error state
class fdroid_dl.model.Index(key=None, filename=None, format='json', default_locale='en-US', store={})[source]

Main Class responsible for handling the f-droid’s index.xml and index-v1.json files.

monkeypatch()[source]

fixup metadata paths -> url