分布式文件下载上传
Project description
包安装:
pip install fast-down-upload
使用例子:
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)
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.6.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for fast_down_upload-1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55485ba5cc0e6d2b45b89801be94d13d232828e194c0a9c6af5c3ef59f16ee79 |
|
MD5 | a077fcb63d48632daa5624472b33185c |
|
BLAKE2b-256 | 06c97c3c9540fd53580113d7c159dedbe18a266a8d19b646745a609e0314f75a |