multiurl


Namemultiurl JSON
Version 0.3.3 PyPI version JSON
download
home_pagehttps://github.com/ecmwf/multiurl
SummaryA package to download several URL as one, as well as supporting multi-part URLs
upload_time2024-11-12 17:55:11
maintainerNone
docs_urlNone
authorEuropean Centre for Medium-Range Weather Forecasts (ECMWF)
requires_pythonNone
licenseApache License Version 2.0
keywords tool
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # multiurl

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

## Simple example

```python
from multiurl import download

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

## Download from two URLs into one file

```python
from multiurl import download

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

URLs types can be mixed:
```python
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.

```python
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

```python
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](LICENSE) 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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ecmwf/multiurl",
    "name": "multiurl",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "tool",
    "author": "European Centre for Medium-Range Weather Forecasts (ECMWF)",
    "author_email": "software.support@ecmwf.int",
    "download_url": "https://files.pythonhosted.org/packages/33/db/aad981174d3bdaecc1d7e1f2d176641f022300ddf3a17b13c2775d041b7a/multiurl-0.3.3.tar.gz",
    "platform": null,
    "description": "# multiurl\n\nA package to download several URL as one, as well as supporting multi-part URLs\n\n## Simple example\n\n```python\nfrom multiurl import download\n\ndownload(url=\"http://example.com/test.data\",\n         target=\"data.file\")\n```\n\n## Download from two URLs into one file\n\n```python\nfrom multiurl import download\n\ndownload(url=[\"http://example.com/test1.data\",\n              \"http://example.com/test2.data\"],\n         target=\"data.file\")\n```\n\nURLs types can be mixed:\n```python\nfrom multiurl import download\n\ndownload(url=[\"http://example.com/test1.data\",\n              \"ftp://example.com/test2.data\"],\n         target=\"data.file\")\n```\n\n## Download parts of URLs\n\nProvide parts of URLs as a list of `(offset, length)` tuples, expressed in bytes.\n\n```python\nfrom multiurl import download\n\ndownload(url=\"http://example.com/test.data\",\n         parts = [(0, 10), (40, 10), (60, 10)],\n         target=\"data.file\")\n```\n\n## Download parts of URLs form several URLs\n\n```python\nfrom multiurl import download\n\ndownload(url=[(\"http://example.com/test1.data\", [(0, 10), (40, 10), (60, 10)]),\n              (\"http://example.com/test2.data\", [(0, 10), (40, 10), (60, 10)])],\n         target=\"data.file\")\n```\n\n### License\n[Apache License 2.0](LICENSE) In applying this licence, ECMWF does not waive the privileges and immunities\ngranted to it by virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.\n",
    "bugtrack_url": null,
    "license": "Apache License Version 2.0",
    "summary": "A package to download several URL as one, as well as supporting multi-part URLs",
    "version": "0.3.3",
    "project_urls": {
        "Homepage": "https://github.com/ecmwf/multiurl"
    },
    "split_keywords": [
        "tool"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "33dbaad981174d3bdaecc1d7e1f2d176641f022300ddf3a17b13c2775d041b7a",
                "md5": "e3f708132ce65e8b9974a0ea78cf8dcf",
                "sha256": "f4d0b69dcf4a0ed740daa313dbcd4d5665420d305c50ca879285e96dc828093f"
            },
            "downloads": -1,
            "filename": "multiurl-0.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "e3f708132ce65e8b9974a0ea78cf8dcf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 18382,
            "upload_time": "2024-11-12T17:55:11",
            "upload_time_iso_8601": "2024-11-12T17:55:11.364334Z",
            "url": "https://files.pythonhosted.org/packages/33/db/aad981174d3bdaecc1d7e1f2d176641f022300ddf3a17b13c2775d041b7a/multiurl-0.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-12 17:55:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ecmwf",
    "github_project": "multiurl",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "multiurl"
}
        
Elapsed time: 0.45345s