Skip to main content

A useful lib for download files.

Project description

AsthoUpdater

A useful lib for download files.

Install prerequisites

  • Execute command : python3 -m pip install AsthoUpdater

Examples

Simple Update :

from AsthoUpdater import AsthoUpdater

updater = AsthoUpdater(json_url='yourJsonUrl')
updater.start_update()

AsthoUpdater args :

json_url : Your json url, required (string)
logger_state : Logger state, default True, optional (string)
logger_name : The logger name, default AsthoUpdater, optional (string)

AsthoUpdater properties :

get_total_files_to_download : Return total file to download (int)
get_logger_name : Return logger name (string)
get_logger_state : Return logger state (boolean)
get_total_files_in_json : Return total file in json file (int)

AsthoUpdater setters :

set_logger_state : Set logger state (boolean)
set_logger_name : Set logger name (string)
set_json_url : Set json url (string)

AsthoUpdater json example :

{
  "maintenance": "off",
  "files": [
      {
        "crc32": "theCrc32",
        "name": "filename",
        "url": "linkOfFile",
        "path": "pathOfFile"
      },
      {
        "crc32": "theCrc32",
        "name": "filename",
        "url": "linkOfFile",
        "path": "pathOfFile"
      }
  ]
}

Author

Asthowen

License

AsthoUpdater | Mozilla Public License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AsthoUpdater-0.1.2.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

AsthoUpdater-0.1.2-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page