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.9.tar.gz (20.0 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.9-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multiurl-0.3.9.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for multiurl-0.3.9.tar.gz
Algorithm Hash digest
SHA256 799b7998bfabd4e15d51ba09d08eb5d0716762655bae6e09db00a14c3bfaeae6
MD5 60667ed5cd8c7205ebd22bf3a1875c3e
BLAKE2b-256 d335a08c568e63fda8cb1b7f3168409c026d2b407ab6d82da09cea078b01c2d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multiurl-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for multiurl-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5acedb53343bb47ff6188405dc33e10c1f1713591de8929a69b966d4d395d88e
MD5 570c9a214ad9414e7734482b3e8d78f7
BLAKE2b-256 59f12374970b2ad0ab20e28a0cd12eec1c234567fef31064f0903396d55ae3f1

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