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.
Metadata
Release files for multiurl 0.3.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| multiurl-0.3.9.tar.gz | 20.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| multiurl-0.3.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.7 kB
Release files / multiurl-0.3.9.tar.gz
| Download URL | multiurl-0.3.9.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
799b7998bfabd4e15d51ba09d08eb5d0716762655bae6e09db00a14c3bfaeae6
|
|
BLAKE2b-256 checksum How to use checksums |
d335a08c568e63fda8cb1b7f3168409c026d2b407ab6d82da09cea078b01c2d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / multiurl-0.3.9-py3-none-any.whl
| Download URL | multiurl-0.3.9-py3-none-any.whl |
|---|---|
| Size | 22.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5acedb53343bb47ff6188405dc33e10c1f1713591de8929a69b966d4d395d88e
|
|
BLAKE2b-256 checksum How to use checksums |
59f12374970b2ad0ab20e28a0cd12eec1c234567fef31064f0903396d55ae3f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|