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.5.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.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for remote_auto_fetch-0.1.5.tar.gz
Algorithm Hash digest
SHA256 54ea267bf6aaf410076116f5b9609a0362a7d858568802715087e3693878c548
MD5 a25f75885f8eafb4d96b1e0d8b34621f
BLAKE2b-256 f425a6e28f1b98e53903eef2ce0b9bcf71adb036297a97129f63d934209c1caf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for remote_auto_fetch-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a9a4644e50be91171a55b02b2b1ae0e3f0de73a05d25fbeb7677410cfc5f16d1
MD5 6e5411920e7355fd38c7eeb41e022e1e
BLAKE2b-256 fa947da948d633e57fcf23ac0d952434368feb3fd10a06cc5350136c10966835

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