分布式文件下载上传
[介绍文档]
- 支持版本: python 3.6+
下载安装
- 安装依赖:
pip install fast-down-upload
- 下载上传说明
支持操作系统:(MAC,LINUX)
下载默认路径:/root/local_videos/
上传默认支持:aliyun oss
分布式下载上传DEMO
import fast_down_upload.configs as configs
from fast_down_upload.StartDownUpload import public_downupload_task,start_customer_downupload_task
# redis连接配置
configs.redis_host = '127.0.0.1'
configs.redis_password = ''
configs.redis_port = 6379
configs.redis_db = 0
# ALIYUN OSS配置
configs.aliyun_access_key_id = ''
configs.aliyun_access_key_secret = ''
configs.aliyun_endpoint = ''
configs.aliyun_bucket_name = ''
#发布下载上传任务
for i in range(1,21):
down_dict = {'down_url': 'https://video1.matafy.com/dyvideo/201811/6609568770908228877.mp4', 'file_name': 'test'+str(i),'file_dir': 'douyin', 'file_type': '', 'callback': None}
public_downupload_task(down_dict)
#消费下载上传任务
start_customer_downupload_task(threads_num=100)
Metadata
Release files for fast-down-upload 1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fast-down-upload-1.7.tar.gz | 4.3 kB | Without provenance | Details for fast-down-upload-1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fast_down_upload-1.7-py3-none-any.whl | Python 3 | none | any | Details for fast_down_upload-1.7-py3-none-any.whl |
Total release size: 11.6 kB
Release files / fast-down-upload-1.7.tar.gz
| Download URL | fast-down-upload-1.7.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
373f2f854bf95f1052740d4b2768bc9063d9a0fedb8ff336ddc48cf3100f543a
|
|
BLAKE2b-256 checksum How to use checksums |
5f646ef6bb315b9b1ef8ff1043c0137be49c7d96b1b0319752d349c208c7f910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.4.2 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / fast_down_upload-1.7-py3-none-any.whl
| Download URL | fast_down_upload-1.7-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b07796c4b7bb9581133d8d1b70fc20bf000ef1c4f1e7e74a2e23210d6090f70e
|
|
BLAKE2b-256 checksum How to use checksums |
64d3eca61c56bb2d30189c42c3e0627c230e89c6d2cb9cc7dde7f104c0e7cd56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.4.2 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Security for fast-down-upload 1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.