DownloadKit


NameDownloadKit JSON
Version 2.0.6 PyPI version JSON
download
home_pagehttps://gitee.com/g1879/DownloadKit
Summary一个简洁易用的多线程文件下载工具。
upload_time2024-11-23 14:14:51
maintainerNone
docs_urlNone
authorg1879
requires_python>=3.6
licenseBSD
keywords downloadkit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 简介

DownloadKit 是一个基于 python 的简洁易用的多线程文件下载工具。
使用简单,功能强大。

使用文档:[点击查看](http://g1879.gitee.io/downloadkit/)

---

## 特性

- 多线程,可同时下载多个文件
- 大文件自动分块用多线程下载
- 自动任务调度,简易的任务添加方式
- 可使用已有`Session`对象,便于保持登录状态
- 与 DrissionPage 良好兼容
- 自动创建目标路径
- 自动去除路径中的非法字符
- 自动处理文件名冲突
- 可对现有文件追加内容
- 连接失败自动重试

---

## 简单示例

```python
from DownloadKit import DownloadKit

# 创建下载器对象
d = DownloadKit(r'.\files')

# 添加多个任务
url1 = 'https://gitee.com/static/images/logo.svg?t=158106664'
url2 = 'https://www.baidu.com/img/PCfb_5bf082d29588c07f842ccde3f97243ea.png'

d.download(url1)
d.download(url2)
```

---

## ☕ 请我喝咖啡

如果本项目对您有所帮助,不妨请作者我喝杯咖啡 :)

![](https://gitee.com/g1879/DrissionPageDocs/raw/master/docs/imgs/code.jpg)

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitee.com/g1879/DownloadKit",
    "name": "DownloadKit",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "DownloadKit",
    "author": "g1879",
    "author_email": "g1879@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/d1/f6/a24faa9c78004f1ec99b587c27975f4264abbfc3bd63ae483d33808043e4/DownloadKit-2.0.6.tar.gz",
    "platform": null,
    "description": "## \u7b80\u4ecb\r\n\r\nDownloadKit \u662f\u4e00\u4e2a\u57fa\u4e8e python \u7684\u7b80\u6d01\u6613\u7528\u7684\u591a\u7ebf\u7a0b\u6587\u4ef6\u4e0b\u8f7d\u5de5\u5177\u3002\r\n\u4f7f\u7528\u7b80\u5355\uff0c\u529f\u80fd\u5f3a\u5927\u3002\r\n\r\n\u4f7f\u7528\u6587\u6863\uff1a[\u70b9\u51fb\u67e5\u770b](http://g1879.gitee.io/downloadkit/)\r\n\r\n---\r\n\r\n## \u7279\u6027\r\n\r\n- \u591a\u7ebf\u7a0b\uff0c\u53ef\u540c\u65f6\u4e0b\u8f7d\u591a\u4e2a\u6587\u4ef6\r\n- \u5927\u6587\u4ef6\u81ea\u52a8\u5206\u5757\u7528\u591a\u7ebf\u7a0b\u4e0b\u8f7d\r\n- \u81ea\u52a8\u4efb\u52a1\u8c03\u5ea6\uff0c\u7b80\u6613\u7684\u4efb\u52a1\u6dfb\u52a0\u65b9\u5f0f\r\n- \u53ef\u4f7f\u7528\u5df2\u6709`Session`\u5bf9\u8c61\uff0c\u4fbf\u4e8e\u4fdd\u6301\u767b\u5f55\u72b6\u6001\r\n- \u4e0e DrissionPage \u826f\u597d\u517c\u5bb9\r\n- \u81ea\u52a8\u521b\u5efa\u76ee\u6807\u8def\u5f84\r\n- \u81ea\u52a8\u53bb\u9664\u8def\u5f84\u4e2d\u7684\u975e\u6cd5\u5b57\u7b26\r\n- \u81ea\u52a8\u5904\u7406\u6587\u4ef6\u540d\u51b2\u7a81\r\n- \u53ef\u5bf9\u73b0\u6709\u6587\u4ef6\u8ffd\u52a0\u5185\u5bb9\r\n- \u8fde\u63a5\u5931\u8d25\u81ea\u52a8\u91cd\u8bd5\r\n\r\n---\r\n\r\n## \u7b80\u5355\u793a\u4f8b\r\n\r\n```python\r\nfrom DownloadKit import DownloadKit\r\n\r\n# \u521b\u5efa\u4e0b\u8f7d\u5668\u5bf9\u8c61\r\nd = DownloadKit(r'.\\files')\r\n\r\n# \u6dfb\u52a0\u591a\u4e2a\u4efb\u52a1\r\nurl1 = 'https://gitee.com/static/images/logo.svg?t=158106664'\r\nurl2 = 'https://www.baidu.com/img/PCfb_5bf082d29588c07f842ccde3f97243ea.png'\r\n\r\nd.download(url1)\r\nd.download(url2)\r\n```\r\n\r\n---\r\n\r\n## \u2615 \u8bf7\u6211\u559d\u5496\u5561\r\n\r\n\u5982\u679c\u672c\u9879\u76ee\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u4e0d\u59a8\u8bf7\u4f5c\u8005\u6211\u559d\u676f\u5496\u5561 \uff1a\uff09\r\n\r\n![](https://gitee.com/g1879/DrissionPageDocs/raw/master/docs/imgs/code.jpg)\r\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "\u4e00\u4e2a\u7b80\u6d01\u6613\u7528\u7684\u591a\u7ebf\u7a0b\u6587\u4ef6\u4e0b\u8f7d\u5de5\u5177\u3002",
    "version": "2.0.6",
    "project_urls": {
        "Homepage": "https://gitee.com/g1879/DownloadKit"
    },
    "split_keywords": [
        "downloadkit"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cedaf1a73307bc90c63da39f95c3dd4cbda68425b406bd91262c37f9d583c7b7",
                "md5": "9b5179b7fbe71296fd4d9cd41253c7a2",
                "sha256": "1baaeb158552c23500acf21595ae0642b747ec52c85ba06e6f4a770c1ef3c625"
            },
            "downloads": -1,
            "filename": "DownloadKit-2.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9b5179b7fbe71296fd4d9cd41253c7a2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 21719,
            "upload_time": "2024-11-23T14:14:49",
            "upload_time_iso_8601": "2024-11-23T14:14:49.653689Z",
            "url": "https://files.pythonhosted.org/packages/ce/da/f1a73307bc90c63da39f95c3dd4cbda68425b406bd91262c37f9d583c7b7/DownloadKit-2.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d1f6a24faa9c78004f1ec99b587c27975f4264abbfc3bd63ae483d33808043e4",
                "md5": "58d219bfd4ef63d3c0132fcd694d7c6d",
                "sha256": "adea99ab004271f6384d9e4db69e6fa8616ee93714be0ba4e80292b589589199"
            },
            "downloads": -1,
            "filename": "DownloadKit-2.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "58d219bfd4ef63d3c0132fcd694d7c6d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 17469,
            "upload_time": "2024-11-23T14:14:51",
            "upload_time_iso_8601": "2024-11-23T14:14:51.476660Z",
            "url": "https://files.pythonhosted.org/packages/d1/f6/a24faa9c78004f1ec99b587c27975f4264abbfc3bd63ae483d33808043e4/DownloadKit-2.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-23 14:14:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "downloadkit"
}
        
Elapsed time: 2.96672s