分布式文件下载上传
Project description
包安装:
pip install fast-down-upload
使用例子:
from fast-down-upload import UploadFile,config from fast-down-upload import public_downupload_task,start_customer_downupload_task # redis连接配置 config.redis_host = '127.0.0.1' config.redis_password = '' config.redis_port = 6379 config.redis_db = 0 # ALIYUN OSS配置 config.aliyun_access_key_id = '' config.aliyun_access_key_secret = '' config.aliyun_endpoint = '' config.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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fast-down-upload-1.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for fast_down_upload-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ada976d043f8e00210ebf0342a7107f282d935f079708cffb3a2d02ffab93d6f |
|
MD5 | bf2c580b085e370b77e88c9b1f5586ed |
|
BLAKE2b-256 | cb75d1e78f2eda7c8ad74a42f4e64240b48120c38c263748e5c85cf77dc13b57 |