cow-transfer


Namecow-transfer JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/xiyoucloud/cow_transfer.git
SummaryEasily downlaod file from CowTransfer
upload_time2024-05-16 14:53:24
maintainerNone
docs_urlNone
authortxb
requires_pythonNone
licenseMIT
keywords python downloadkit cow_transfer
VCS
bugtrack_url
requirements aliyun-python-sdk-core aliyun-python-sdk-kms certifi cffi charset-normalizer click colorama crcmod cryptography DataRecorder DownloadKit et-xmlfile idna jmespath openpyxl oss2 pycparser pycryptodome requests six urllib3 tqdm
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
  -h, --header_file_path PATH header file path
  --help                 Show this message and exit.
```

### 文件上传
```
Usage: cow upload [OPTIONS]

  CowTransfer - 奶牛快传

Options:
  --header_file_path PATH header file path
  --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 个线程对文件进行下载,这会大大加快下载速度,不过下载速度还受到网络带宽的限制,即下载速度最快不会超过网络带宽。

## 打包源码发布到Pypi
```
# 安装依赖
pip install wheel
pip install twine
# 打包
python setup.py bdist_wheel sdist

# 上传打包后的 python 包到 https://pypi.org
twine upload dist/*
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/xiyoucloud/cow_transfer.git",
    "name": "cow-transfer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, DownloadKit, cow_transfer",
    "author": "txb",
    "author_email": "txb.sdn@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/72/ff/d1095b430650a9ce6d33d9f3979eba7c45a5c5782914553c4e75779f3451/cow_transfer-0.0.6.tar.gz",
    "platform": null,
    "description": "# cow_transfer\n\n## \u5b89\u88c5\n```\npip install cow_transfer\n```\n## \u4f7f\u7528\n\n### \u6587\u4ef6\u4e0b\u8f7d\n\u4e00\u4e2a\u5b8c\u6574\u7684\u5976\u725b\u5feb\u4f20\u7684\u6587\u7ae0\u4e0b\u8f7d\u94fe\u63a5\u5c31\u50cf\u8fd9\u6837\uff1ahttps://xiyoucloud.cowtransfer.com/s/9f9b7c098b9049  \n\u4f60\u53ef\u4ee5\u6839\u636e\u6587\u4ef6\u7684 id \u6765\u4e0b\u8f7d\u6587\u4ef6 9f9b7c098b9049\u3002\n```\ncow download -u 9f9b7c098b9049\n```\n```\nUsage: cow download [OPTIONS]\n\nOptions:\n  -u, --urlcode TEXT     urlcode for download file  [required]       \n  -t, --threads INTEGER  set threads for download file  [default: 20]\n  -p, --path PATH        set save path for download file\n  -h, --header_file_path PATH header file path\n  --help                 Show this message and exit.\n```\n\n### \u6587\u4ef6\u4e0a\u4f20\n```\nUsage: cow upload [OPTIONS]\n\n  CowTransfer - \u5976\u725b\u5feb\u4f20\n\nOptions:\n  --header_file_path PATH header file path\n  --upload_path TEXT    \u5f85\u4e0a\u4f20\u6587\u4ef6\u6216\u76ee\u5f55\u8def\u5f84  [required]\n  --folder_name TEXT    \u6587\u4ef6\u5939\u540d\u79f0\n  --title TEXT          \u4f20\u8f93\u6807\u9898\n  --message TEXT        \u4f20\u8f93\u63cf\u8ff0\n  --valid_days INTEGER  \u4f20\u8f93\u6709\u6548\u671f\uff08\u5929\uff09  [default: 7]\n  --chunk_size INTEGER  \u5206\u5757\u5927\u5c0f\uff08\u5b57\u8282\uff09  [default: 2097152]\n  --threads INTEGER     \u4e0a\u4f20\u5e76\u53d1\u6570  [default: 5]\n  --help                Show this message and exit.\n```\n\n\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u5f00\u542f 20 \u4e2a\u7ebf\u7a0b\u5bf9\u6587\u4ef6\u8fdb\u884c\u4e0b\u8f7d\uff0c\u8fd9\u4f1a\u5927\u5927\u52a0\u5feb\u4e0b\u8f7d\u901f\u5ea6\uff0c\u4e0d\u8fc7\u4e0b\u8f7d\u901f\u5ea6\u8fd8\u53d7\u5230\u7f51\u7edc\u5e26\u5bbd\u7684\u9650\u5236\uff0c\u5373\u4e0b\u8f7d\u901f\u5ea6\u6700\u5feb\u4e0d\u4f1a\u8d85\u8fc7\u7f51\u7edc\u5e26\u5bbd\u3002\n\n## \u6253\u5305\u6e90\u7801\u53d1\u5e03\u5230Pypi\n```\n# \u5b89\u88c5\u4f9d\u8d56\npip install wheel\npip install twine\n# \u6253\u5305\npython setup.py bdist_wheel sdist\n\n# \u4e0a\u4f20\u6253\u5305\u540e\u7684 python \u5305\u5230 https://pypi.org\ntwine upload dist/*\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Easily downlaod file from CowTransfer",
    "version": "0.0.6",
    "project_urls": {
        "Homepage": "https://github.com/xiyoucloud/cow_transfer.git"
    },
    "split_keywords": [
        "python",
        " downloadkit",
        " cow_transfer"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "74f44fb85cc76384dd7df59ca0d69c40ea2c77567cd43e316b08fd4fd3db8c23",
                "md5": "28288b27220ee972f6043a26f87728d3",
                "sha256": "6e7a4af215d2475b2bd91408aef1934035ddafd0376dde6d3c191e148fd3c66d"
            },
            "downloads": -1,
            "filename": "cow_transfer-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "28288b27220ee972f6043a26f87728d3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10518,
            "upload_time": "2024-05-16T14:53:22",
            "upload_time_iso_8601": "2024-05-16T14:53:22.889834Z",
            "url": "https://files.pythonhosted.org/packages/74/f4/4fb85cc76384dd7df59ca0d69c40ea2c77567cd43e316b08fd4fd3db8c23/cow_transfer-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "72ffd1095b430650a9ce6d33d9f3979eba7c45a5c5782914553c4e75779f3451",
                "md5": "b0a2520d7852dc064273d8514ed3e746",
                "sha256": "e5cefbe66d0e262fe011cdba1d71ad96730374d7d50728d744ec1dc66613ce0b"
            },
            "downloads": -1,
            "filename": "cow_transfer-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "b0a2520d7852dc064273d8514ed3e746",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9921,
            "upload_time": "2024-05-16T14:53:24",
            "upload_time_iso_8601": "2024-05-16T14:53:24.722735Z",
            "url": "https://files.pythonhosted.org/packages/72/ff/d1095b430650a9ce6d33d9f3979eba7c45a5c5782914553c4e75779f3451/cow_transfer-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-16 14:53:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xiyoucloud",
    "github_project": "cow_transfer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "aliyun-python-sdk-core",
            "specs": [
                [
                    "==",
                    "2.14.0"
                ]
            ]
        },
        {
            "name": "aliyun-python-sdk-kms",
            "specs": [
                [
                    "==",
                    "2.16.2"
                ]
            ]
        },
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2023.7.22"
                ]
            ]
        },
        {
            "name": "cffi",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "charset-normalizer",
            "specs": [
                [
                    "==",
                    "3.3.0"
                ]
            ]
        },
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "8.1.7"
                ]
            ]
        },
        {
            "name": "colorama",
            "specs": [
                [
                    "==",
                    "0.4.6"
                ]
            ]
        },
        {
            "name": "crcmod",
            "specs": [
                [
                    "==",
                    "1.7"
                ]
            ]
        },
        {
            "name": "cryptography",
            "specs": [
                [
                    "==",
                    "41.0.4"
                ]
            ]
        },
        {
            "name": "DataRecorder",
            "specs": [
                [
                    "==",
                    "3.4.8"
                ]
            ]
        },
        {
            "name": "DownloadKit",
            "specs": [
                [
                    "==",
                    "1.0.2"
                ]
            ]
        },
        {
            "name": "et-xmlfile",
            "specs": [
                [
                    "==",
                    "1.1.0"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    "==",
                    "3.4"
                ]
            ]
        },
        {
            "name": "jmespath",
            "specs": [
                [
                    "==",
                    "0.10.0"
                ]
            ]
        },
        {
            "name": "openpyxl",
            "specs": [
                [
                    "==",
                    "3.1.2"
                ]
            ]
        },
        {
            "name": "oss2",
            "specs": [
                [
                    "==",
                    "2.18.2"
                ]
            ]
        },
        {
            "name": "pycparser",
            "specs": [
                [
                    "==",
                    "2.21"
                ]
            ]
        },
        {
            "name": "pycryptodome",
            "specs": [
                [
                    "==",
                    "3.19.0"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "2.0.6"
                ]
            ]
        },
        {
            "name": "tqdm",
            "specs": [
                [
                    "==",
                    "4.66.4"
                ]
            ]
        }
    ],
    "lcname": "cow-transfer"
}
        
txb
Elapsed time: 0.33828s