Skip to main content

A package to download several URL as one, as well as supporting multi-part URLs

Project description

multiurl

A package to download several URL as one, as well as supporting multi-part URLs

Simple example

from multiurl import download

download(url="http://example.com/test.data",
         target="data.file")

Download from two URLs into one file

from multiurl import download

download(url=["http://example.com/test1.data",
              "http://example.com/test2.data"],
         target="data.file")

URLs types can be mixed:

from multiurl import download

download(url=["http://example.com/test1.data",
              "ftp://example.com/test2.data"],
         target="data.file")

Download parts of URLs

Provide parts of URLs as a list of (offset, length) tuples, expressed in bytes.

from multiurl import download

download(url="http://example.com/test.data",
         parts = [(0, 10), (40, 10), (60, 10)],
         target="data.file")

Download parts of URLs form several URLs

from multiurl import download

download(url=[("http://example.com/test1.data", [(0, 10), (40, 10), (60, 10)]),
              ("http://example.com/test2.data", [(0, 10), (40, 10), (60, 10)])],
         target="data.file")

License

Apache License 2.0 In applying this licence, ECMWF does not waive the privileges and immunities granted to it by virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.

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

multiurl-0.3.7.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

multiurl-0.3.7-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file multiurl-0.3.7.tar.gz.

File metadata

  • Download URL: multiurl-0.3.7.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for multiurl-0.3.7.tar.gz
Algorithm Hash digest
SHA256 4201563fc8989baca7b525fdc69d4cd5a6c0cef4f303559710b9890021aab6d9
MD5 a38aef9096bd5d314caf500be1592b7f
BLAKE2b-256 6ccea00c9b44f43c4620ca004e4acb4c1e266b1ab48d2f6ad9e402f6bdbe44d4

See more details on using hashes here.

File details

Details for the file multiurl-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: multiurl-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for multiurl-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 054f42974064f103be0ed55b43f0c32fc435a47dc7353a9adaffa643b99fa380
MD5 58614f90a44abd06f6b28d12c2fe4214
BLAKE2b-256 93cfbe4e93afbfa0def2cd6fac9302071db0bd6d0617999ecbf53f92b9398de3

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