Aruelius / Cloud189
Licence: gpl-3.0
天翼云盘 CLI Python
Stars: ✭ 374
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to Cloud189
Sqlite Utils
Python CLI utility and library for manipulating SQLite databases
Stars: ✭ 368 (-1.6%)
Mutual labels: cli
Replace In File
A simple utility to quickly replace contents in one or more files
Stars: ✭ 369 (-1.34%)
Mutual labels: cli
Go Github Selfupdate
Binary self-update mechanism for Go commands using GitHub
Stars: ✭ 370 (-1.07%)
Mutual labels: cli
Python Fire
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Stars: ✭ 20,499 (+5381.02%)
Mutual labels: cli
Gitlab Time Tracker
🦊🕘 A command line interface for GitLab's time tracking feature.
Stars: ✭ 371 (-0.8%)
Mutual labels: cli
Md To Pdf
Hackable CLI tool for converting Markdown files to PDF using Node.js and headless Chrome.
Stars: ✭ 374 (+0%)
Mutual labels: cli
Kondo
Save disk space by cleaning non-essential files from software projects.
Stars: ✭ 373 (-0.27%)
Mutual labels: cli
Abc
Power of appbase.io via CLI, with nifty imports from your favorite data sources
Stars: ✭ 375 (+0.27%)
Mutual labels: cli
Pick
create curses based interactive selection list in the terminal
Stars: ✭ 370 (-1.07%)
Mutual labels: cli
Visidata
A terminal spreadsheet multitool for discovering and arranging data
Stars: ✭ 4,606 (+1131.55%)
Mutual labels: cli
Superplate
Performance-oriented frontend application creator with popular tools.
Stars: ✭ 368 (-1.6%)
Mutual labels: cli
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+5102.67%)
Mutual labels: cli
Mongo Seeding
The ultimate solution for populating your MongoDB database.
Stars: ✭ 375 (+0.27%)
Mutual labels: cli
# /$$$$$$ /$$ /$$ /$$ /$$$$$$ /$$$$$$
# /$$__ $$| $$ | $$ /$$$$ /$$__ $$ /$$__ $$
# | $$ \__/| $$ /$$$$$$ /$$ /$$ /$$$$$$$|_ $$ | $$ \ $$| $$ \ $$
# | $$ | $$ /$$__ $$| $$ | $$ /$$__ $$ | $$ | $$$$$$/| $$$$$$$
# | $$ | $$| $$ \ $$| $$ | $$| $$ | $$ | $$ >$$__ $$ \____ $$
# | $$ $$| $$| $$ | $$| $$ | $$| $$ | $$ | $$ | $$ \ $$ /$$ \ $$
# | $$$$$$/| $$| $$$$$$/| $$$$$$/| $$$$$$$ /$$$$$$| $$$$$$/| $$$$$$/
# \______/ |__/ \______/ \______/ \_______/|______/ \______/ \______/
#
--------------------------------------------------------------------------
- cloud189-cli -
准备
-
Python 版本 >= 3.8
-
安装依赖
pip install -r requirements.txt
注意
pyreadline
是专门为Windows
设计的,*nix
中 python 标准库中一般默认包含readline
模块,没有请看这里。
- 配置
运行
python main.py
, 输入用户名与密码,
账号为自己的天翼云盘手机号,密码不会有回显,
也可以 直接两次回车后,输入clogin
按提示输入cookie
登录。
所有信息加密 保存至.config
文件。
功能
命令 | 描述 |
---|---|
help | 查看帮助文档 |
login | 用户名+密码 登录/添加用户 |
clogin | cookie 登录/添加用户 |
refresh | 刷新当前目录 |
setpath | 修改下载路径(默认 ./downloads) |
update | 检测软件更新 |
who/quota | 查看账户信息、空间大小 |
clear | 清屏 |
cdrec | 进入回收站 |
[cdrec] ls | 显示回收站目录 |
[cdrec] rec + 文件名
|
恢复文件 |
[cdrec] clean | 清空回收站 |
[cdrec] cd .. | 退出回收站 |
su + [-l/用户名]
|
列出用户/切换用户 |
ls + [-l] [文件夹]
|
列出文件与目录 |
cd + 文件夹名
|
切换工作目录 |
upload + 文件(夹)路径
|
上传文件(夹) |
down + 文件名/分享链接
|
下载文件/提取分享链接下载直链 |
mkdir + 文件夹名
|
创建文件夹 |
rm + 文件/文件夹
|
删除文件(夹) |
share + 文件/文件夹
|
分享文件(夹) |
shared + [2]
|
已经分享文件(夹)信息 |
jobs + [-f] [任务id]
|
查看后台上传下载任务 |
rename + 文件(夹)名 [新名]
|
重命名 |
mv + 文件名
|
移动文件 |
sign + [-a/--all]
|
签到抽奖 |
bye/exit | 退出 |
详细请移步 Wiki.
ll = ls -l
表示列出详细列表,ls
只显示文件(夹)名,都可以接一个一级子文件夹作为参数。
down
、upload
、rm
支持多个多个操作文件作为参数,如果文件名中有空格引号,使用 ''
、""
包裹文件名,或则在空格引号前使用转义符 \
。
jobs -f
、upload -f
、down -f
表示实时查看任务状态,类似于 Linux
中的 tail -f
,按任意键 + 回车 退出。
使用账号密码登录时,上传文件时会先进行文件秒传检测,目前使用 cookie 登录无法秒传。
下载支持断点续传。
注意:从 v0.0.4 起,.config
文件与以前版本不兼容!
使用
- 不加参数则进入交互模式
# 提示符为 >
python3 main.py
> cd '文件夹'
...
> ls
...
> bye
- 带上命令与参数进入单任务模式
python3 main.py upload '文件路径'
# 或者
./main.py upload '文件路径'
依赖
如果在 Linux 运行出现
import readline
ValueError: _type_ 'v' not supported
需要安装依赖,然后重新编译 Python
Ubuntu
sudo apt-get install libreadline-dev
CentOS
yum install readline-devel
License
致谢
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].