cloud storage CLI (Command Line Interface)
Project description
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
许可证
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wangpancli-0.1.0.tar.gz
(21.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wangpancli-0.1.0.tar.gz.
File metadata
- Download URL: wangpancli-0.1.0.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
611d39b8867ad8639ebc372933741da6c3144ed5418a073c01799dba869db0f3
|
|
| MD5 |
d776557d171352f8bb079a24169f932c
|
|
| BLAKE2b-256 |
541e32187996d859dd4d7039ffd2d960e6a519305480588b07796ae4bc49d3c6
|
File details
Details for the file wangpancli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wangpancli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22991d4bee0644ce7a354edb943adbe0fd6d09c6673ee690ed5900f8276936b2
|
|
| MD5 |
a07a9b42074f36853d6044740f28a83e
|
|
| BLAKE2b-256 |
fd70d85b4cef4272e42a3adb0b8782645b2653118b7301e8b25f0f0d4e3cf2d6
|