Package: fdroid-dl
fdroid-dlIs a python based f-droid mirror generation and update utility. Point at one or more existing f-droid repositories and the utility will download the metadata (pictures, descriptions,..) for you and place it in your local system. Simply runfdroid-dl && fdroid updateand you are set.MotivationThe idea is to have an no internet local copy of one or more repositories, without the need to compile the thousands of apps on your own build server but rather download them like the android client does. So this tool came into existence to simply download a whole repository and import the apps into your own locally installed one. At the time of writing a full offline copy including assets is ~7.5GB of the official repository of f-droid.org.Installationfdroid-dl is available via pip, simply runpip install fdroid-dland you can usefdroid-dlon your command line.pypi.org - fdroid-dlDocumentationCan be found atfdroid-dl.readthedocs.ioCommand Line OptionsUsage: fdroid-dl [OPTIONS] COMMAND [ARGS]...

  Is a python based f-droid mirror generation and update utility. Point at
  one or more existing f-droid repositories and the utility will download
  the metadata (pictures, descriptions,..) for you and place it in your
  local system.

  Simply run "fdroid-dl update && fdroid update" in your folder with repo
  and you are set.

Options:
  -d, --debug               enable debug level logging
  -c, --config FILE         location of your fdroid-dl.json configuration file
                            [default: fdroid-dl.json]
  -r, --repo DIRECTORY      location of your fdroid repository to store the
                            apk files  [default: ./repo]
  -m, --metadata DIRECTORY  location of your fdroid metadata to store the
                            asset files  [default: ./metadata]
  --cache DIRECTORY         location for fdroid-dl to store cached data
                            [default: ./.cache]
  --help                    Show this message and exit.

Commands:
  update  starts updating processUsage: fdroid-dl update [OPTIONS] COMMAND [ARGS]...

Options:
  --index / --no-index        download repository index files  [default: True]
  --metadata / --no-metadata  download metadata assset files  [default: True]
  --apk / --no-apk            download apk files  [default: True]
  --apk-versions INTEGER      how many versions of apk to download  [default:
                              1]
  --src / --no-src            download src files  [default: True]
  --threads INTEGER           configure number of parallel threads used for
                              download  [default: 10]
  --head-timeout INTEGER      maximum time in seconds a HEAD request is
                              allowed to take  [default: 10]
  --index-timeout INTEGER     maximum time in seconds index file download is
                              allowed to take  [default: 60]
  --download-timeout INTEGER  maximum time in seconds file download is allowed
                              to take  [default: 60]
  --help                      Show this message and exit.Configuration FileTODOCreate backend to crawl existing reposFetch info directly index.jar and index-v1.jarCompatibility with old and new repo stylesDownload multi threadedVerify apk checksumLocal cache for index filesSource code download not implemented yetMetadata update to do delta not full download all the timeCleanup strategy for old apk files (maybefdroid updatedoes this already?)Create a CLIpython clickpip packagepackaging.python.orgCI builds for pip packageDocumentation ;-)Writing testspytestCHANGELOGWIP: Documentation addedWIP: Test addedrequests-mock ?Ideasrequests-cache ?DevelopmentRequirementspython 2.7.* or 3.5.*pip 3.xvirtualenv 3.xinstall locally# git clone https://github.com/t4skforce/fdroid-dl.git
# cd fdroid-dl
# virtualenv .env
# source .env/bin/activate
# python setup.py install
# fdroid-dl --help
# python3 -m fdroid_dl --helpReferencesWhile this project was developed the following references where usedF-DroidSetup an F-Droid App Repof-droid.orgBuild Metadata Referencef-droid.orgAll About Descriptions, Graphics, and Screenshotsf-droid.orgHow to Add a Repo to F-Droidf-droid.orgHow to Send and Receive Apps Offlinef-droid.orgPythonPython Documentationpython.orgPyYAML Documentationpyyaml.orgRequests: HTTP for Humanspython-requests.orgSuppress InsecureRequestWarning: Unverified HTTPS request is being made in Python2.6stackoverflow.comHow to download large file in python with requests.py?stackoverflow.comAsynchronous Python HTTP Requests for Humans using Futuresrequests-futuresTesting Your Codepython-guide.org