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

Uploaded Python 3

File details

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

File metadata

  • Download URL: multiurl-0.3.8.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.8.tar.gz
Algorithm Hash digest
SHA256 f3dfd129c9df3bcf3183edb704bee1918f77c56d5068ee54637889387c7eb787
MD5 1835d65fa1320f0d6f51213cae6f08e6
BLAKE2b-256 6a5b74fdda7bcfd0a3a412075d4f4a30547dbaa0d84db8ca22f64defbbeaab0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multiurl-0.3.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 90b458feaa4b3079ae8c62cda95d2badcae0a0b6c111daeeb9249d88b977e05e
MD5 67add2c57ed6619ea559d50fe2c4039c
BLAKE2b-256 ab6e4363828f4392608fa63bcf9bcb82dc28f74f9be768ec30102f5580f549f1

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