Easily downlaod file from CowTransfer
Project description
cow_download
下载
pip install cow_transfer
使用
下载
一个完整的奶牛快传的文章下载链接就像这样:https://xiyoucloud.cowtransfer.com/s/9f9b7c098b9049
你可以根据文件的 id 来下载文件 9f9b7c098b9049。
cow download -u 9f9b7c098b9049
Usage: cow download [OPTIONS]
Options:
-u, --urlcode TEXT urlcode for download file [required]
-t, --threads INTEGER set threads for download file [default: 20]
-p, --path PATH set save path for download file
--help Show this message and exit.
上传
Usage: cow upload [OPTIONS]
CowTransfer - 奶牛快传
Options:
--authorization TEXT 用户 authorization [required]
--remember_mev2 TEXT 用户 remember-mev2 [required]
--upload_path TEXT 待上传文件或目录路径 [required]
--folder_name TEXT 文件夹名称
--title TEXT 传输标题
--message TEXT 传输描述
--valid_days INTEGER 传输有效期(天) [default: 7]
--chunk_size INTEGER 分块大小(字节) [default: 2097152]
--threads INTEGER 上传并发数 [default: 5]
--help Show this message and exit.
默认情况下会开启 20 个线程对文件进行下载,这会大大加快下载速度,不过下载速度还受到网络带宽的限制,即下载速度最快不会超过网络带宽。
打包源码
# 安装依赖
pip install wheel
# 打包
python setup.py bdist_wheel sdist
# 上传打包后的 python 包
twine upload dist/*
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
cow_transfer-0.0.1.tar.gz
(9.4 kB
view details)
Built Distributions
cow_transfer-0.0.1-py3.9.egg
(19.5 kB
view details)
File details
Details for the file cow_transfer-0.0.1.tar.gz
.
File metadata
- Download URL: cow_transfer-0.0.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbaba5e389c85c7c579eb6e1baa321ef8063d811b354219a4843d73a611c45d8 |
|
MD5 | 116cf25298ba589f377420ad9fce2c7e |
|
BLAKE2b-256 | fb6ad701f3f2f392aa8a336c1d8985bc4d1cb68240be9dc0300bc05d5b1a530b |
File details
Details for the file cow_transfer-0.0.1-py3.9.egg
.
File metadata
- Download URL: cow_transfer-0.0.1-py3.9.egg
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071d799595a012ffc98b0da0c68d1f1af0baecd88fed1b231320a1d4b4b1a743 |
|
MD5 | 6d9ad9ae48f6f7eb2fbaea6f3bfd5b89 |
|
BLAKE2b-256 | dfe80b8c2b0598ea4838aeaf9e531b6d0feb1d9433a15946adbbd8888a6cefd3 |
File details
Details for the file cow_transfer-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: cow_transfer-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e81691c67268e1eced533dafca91499bd23cdfd4b325101a165bc0e3e7fa72 |
|
MD5 | 30a09e0e2a8abf42037d28c73b95296b |
|
BLAKE2b-256 | 0041ea9dd4eb26ffcfc0e432764e9c60347a7137821ab0302aac7552afc06f4a |