supersonic-downloader


Namesupersonic-downloader JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryA fast and efficient downloader
upload_time2024-10-21 12:42:40
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 bz-e Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords async coroutine downloader fast multithreading
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # supersonic_downloader
**A multi-threaded, multi-coroutine download tool written in Python.When you need to download some relatively large model parameters, you can use this package directly in the Python code to quickly download the model parameters, and it supports proxies.**

# Quick Start
```python
from supersonic_downloader import thread_download, coroutine_download

url = "https://hf-mirror.com/google-bert/bert-base-cased/resolve/main/flax_model.msgpack?download=true"
file_path = "download_file/model.safetensors"

thread_download(url=url, file_path=file_path) # multi-threaded download
coroutine_download(url=url, file_path=file_path) # multi-coroutine download
```

# Installing
```shell
pip install supersonic_downloader
```
# Cloning the repository
```shell
git clone https://github.com/bz-e/supersonic_downloader.git



            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "supersonic-downloader",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "bz-e <bozhang_2@163.com>",
    "keywords": "Async, Coroutine, Downloader, Fast, Multithreading",
    "author": null,
    "author_email": "bz-e <bozhang_2@163.com>",
    "download_url": "https://files.pythonhosted.org/packages/82/d0/b62f284667c348cc828ba8fecbcfe1351d9810adc5ea6861e77845364434/supersonic_downloader-0.0.1.tar.gz",
    "platform": null,
    "description": "# supersonic_downloader\n**A multi-threaded, multi-coroutine download tool written in Python.When you need to download some relatively large model parameters, you can use this package directly in the Python code to quickly download the model parameters, and it supports proxies.**\n\n# Quick Start\n```python\nfrom supersonic_downloader import thread_download, coroutine_download\n\nurl = \"https://hf-mirror.com/google-bert/bert-base-cased/resolve/main/flax_model.msgpack?download=true\"\nfile_path = \"download_file/model.safetensors\"\n\nthread_download(url=url, file_path=file_path) # multi-threaded download\ncoroutine_download(url=url, file_path=file_path) # multi-coroutine download\n```\n\n# Installing\n```shell\npip install supersonic_downloader\n```\n# Cloning the repository\n```shell\ngit clone https://github.com/bz-e/supersonic_downloader.git\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 bz-e  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A fast and efficient downloader",
    "version": "0.0.1",
    "project_urls": {
        "Repository": "https://github.com/bz-e/supersonic_downloader.git"
    },
    "split_keywords": [
        "async",
        " coroutine",
        " downloader",
        " fast",
        " multithreading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a2cb233fedcb509c406306b63391537fa437777d4d93a6129d52334fc171148",
                "md5": "6089dd4157a1cc572f34d67a28a16399",
                "sha256": "24a7a4e82a28c625c3823e054a57c60233fb51734fa08ce7b8daf53cfb036c9a"
            },
            "downloads": -1,
            "filename": "supersonic_downloader-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6089dd4157a1cc572f34d67a28a16399",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 6158,
            "upload_time": "2024-10-21T12:42:38",
            "upload_time_iso_8601": "2024-10-21T12:42:38.490112Z",
            "url": "https://files.pythonhosted.org/packages/1a/2c/b233fedcb509c406306b63391537fa437777d4d93a6129d52334fc171148/supersonic_downloader-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82d0b62f284667c348cc828ba8fecbcfe1351d9810adc5ea6861e77845364434",
                "md5": "9a618e1c625b8b0361ef8d51218e74e0",
                "sha256": "f5fe0628e72a86023f7c5e87d3ddb291b09f0f3246976d48fdcc46b7274264c7"
            },
            "downloads": -1,
            "filename": "supersonic_downloader-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "9a618e1c625b8b0361ef8d51218e74e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 7671,
            "upload_time": "2024-10-21T12:42:40",
            "upload_time_iso_8601": "2024-10-21T12:42:40.496847Z",
            "url": "https://files.pythonhosted.org/packages/82/d0/b62f284667c348cc828ba8fecbcfe1351d9810adc5ea6861e77845364434/supersonic_downloader-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-21 12:42:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bz-e",
    "github_project": "supersonic_downloader",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "supersonic-downloader"
}
        
Elapsed time: 1.73416s