Skip to main content

Fetch something from url if not exists.

Project description

remote_auto_fetch

Fetch something from url if not exists.

GitHub repo: https://github.com/GGN-2015/remote_auto_fetch

Installation

pip install remote-auto-fetch

Usage

from remote_auto_fetch import remote_auto_fetch

# if file at save_path does not exists, download it from url (max_try = 5)
remote_auto_fetch(url, save_path)

# if file at save_path does not exists or has a different md5_hash, download it from url (max_try = 5)
# the upper or lowercase of md5_hash does not matter
remote_auto_fetch(url, save_path, md5_hash)

# change max_try
remote_auto_fetch(url, save_path, max_try=1)

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

remote_auto_fetch-0.1.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remote_auto_fetch-0.1.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file remote_auto_fetch-0.1.4.tar.gz.

File metadata

  • Download URL: remote_auto_fetch-0.1.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for remote_auto_fetch-0.1.4.tar.gz
Algorithm Hash digest
SHA256 64632d375a25cf3ce15ff8f2c8daa2842a56381668777ce797803d0827afe8a8
MD5 2d5fc7e5daf066dda4bb3fb10a5968d1
BLAKE2b-256 044c8f704cfdc838b248190cb08b81024d1951ba8bd3010a83cc7732b8138453

See more details on using hashes here.

File details

Details for the file remote_auto_fetch-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: remote_auto_fetch-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for remote_auto_fetch-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d8369cb1f0f9ac6559c0160ee6269001daaa5d82afe87fa7a0671e6ae78472cf
MD5 da18824b8073de03b4c24818462b0e0d
BLAKE2b-256 828c516efa167cd00cadcae68d2c57f32a77539e8f6333ad462dcaac0a5e42e3

See more details on using hashes here.

Supported by

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