wangpancli
多平台网盘命令行工具,提供简单易用的命令行接口,方便在终端中管理您的各类网盘文件。
支持的网盘
| 网盘名称 | 网盘类型 | 支持进度 |
|---|---|---|
| 百度网盘 | baidu | 已支持 ✅ |
| 阿里云盘 | aliyun | 计划支持 🚧 |
| 夸克网盘 | quark | 计划支持 🚧 |
| 腾讯微云 | weiyun | 计划支持 🚧 |
更多网盘服务持续添加中...
安装
pip install wangpancli
安装后可使用以下任一命令:
wangpancli- 完整命令pancli- 简写命令wpcli- 简写命令
基本配置
首次使用前需要配置账号信息:
wangpancli config [网盘类型]
例如配置百度网盘:
wangpancli config baidu
配置过程中,您需要提供相应网盘平台所需的授权信息。 对于百度网盘,需要提供:
- 百度网盘开放平台申请的 AppKey 和 SecretKey
- 通过生成的授权链接获取的授权码
配置参数获取请参考:百度网盘开放平台文档
使用方法
查看文件列表
# 查看本地文件列表
wangpancli ls /local/path
# 查看网盘文件列表(如百度网盘)
wangpancli ls baidu:/remote/path
复制文件
# 从本地复制到网盘
wangpancli cp /local/file baidu:/remote/path
# 从网盘下载到本地
wangpancli cp baidu:/remote/file /local/path
# 本地文件复制
wangpancli cp /source/file /dest/path
创建目录
# 在本地创建目录
wangpancli mkdir /local/path
# 在网盘创建目录
wangpancli mkdir baidu:/remote/path
特性
- 支持多种主流网盘服务
- 统一的命令行接口,轻松切换不同网盘
- 支持大文件分片上传
- 支持本地与网盘之间的文件传输
- 支持文件夹批量上传
- 支持命令行彩色输出,区分文件和文件夹
- 提供多个命令别名(wangpancli/pancli/wpcli)
依赖
- loguru>=0.7.2
- requests>=2.32.3
- rich>=13.7.0
- Python>=3.10.0
许可证
Metadata
Release files for wangpancli 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wangpancli-0.1.1.tar.gz | 22.2 kB | Without provenance | Details for wangpancli-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wangpancli-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for wangpancli-0.1.1-py3-none-any.whl |
Total release size: 44.0 kB
Release files / wangpancli-0.1.1.tar.gz
| Download URL | wangpancli-0.1.1.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee43af480774c7b729af20be8371e4a632dc0084818e486d9614e73e3cb03d79
|
|
BLAKE2b-256 checksum How to use checksums |
0f46ae4cd0424b6a2d9b0e736328fc411538c74603f7c4f712ba407241096296
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Release files / wangpancli-0.1.1-py3-none-any.whl
| Download URL | wangpancli-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a71f9bade4858b7d9f63407f5a576c1986025a7eb48c2a7c00645b27801b413
|
|
BLAKE2b-256 checksum How to use checksums |
ce0522aa1732b28d65c242e812b8fce91970595472edba532805357a7686849e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Security for wangpancli 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.