Skip to main content

Easily downlaod file from CowTransfer

Project description

cow_transfer

安装

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 包到 https://pypi.org
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.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

cow_transfer-0.0.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file cow_transfer-0.0.3.tar.gz.

File metadata

  • Download URL: cow_transfer-0.0.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for cow_transfer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4d83891e2a62dc8794f6ca27af9aa8f319d7a7ad073556d5d61badfef70c1baa
MD5 e4b351a4fa6f84a040fb36b5cfbcad63
BLAKE2b-256 14d7743c7314c17e0bca0c198de17ff4ecbd63e41a6776a63206b13e9f77d2a6

See more details on using hashes here.

File details

Details for the file cow_transfer-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cow_transfer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e70684f337c689715d4e2c63934eb312b9914c484502be1f6fc486572b30d41d
MD5 752f75ec04210c289b82d32dbb3f6d4d
BLAKE2b-256 acdd72be5d590cbcd1068168c8ef413aa8a5c784819ac87511d7f0d8857d61db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page