bypy-使用方法


预计阅读时间:3 分钟

```bash

宿主机安装

pip install bypy

首次授权

bypy info

根据终端提示, 粘贴 url 地址并在浏览器中打开, 复制授权码即可.

个人首选码: xxx

加速下载

sudo apt-get install aria2 bypy --downloader aria2 download software/Python-3.9.1.tgz

nano ~/.bashrc alias dw='bypy --downloader aria2 download ' source ~/.bashrc

常用命令

显示云盘(程序)根目录文件列表

bypy list bypy list software(指定文件夹)

把当前目录同步到云盘

bypy syncup

把云盘内容同步到本地

bypy syncdown

or

bypy downdir /

比较本地当前目录和云盘(程序的)根目录

bypy compare

下载数据集

bypy download datasets

下载单个文件xxx

bypy downfile xxx bypy --downloader aria2 download software/Python-3.9.1.tgz

上次单个文件

bypy upload model_v5.tar project/x-ray

登出, 下次重新授权

rm ~/.bypy/xx.json ```

参数说明

  • refreshtoken - refresh the access token
  • cdl_add [save_path] [timeout] - add an offline (cloud) download task
  • cdl_addmon [save_path] [timeout] - add an offline (cloud) download task and monitor the download progress
  • cdl_cancel - cancel an offline (cloud) download task
  • cdl_list - list offline (cloud) download tasks
  • cdl_query - query existing offline (cloud) download tasks
  • cleancache - remove invalid entries from hash cache file
  • combine [localfile] [md5s] - try to create a file at PCS by combining slices, having MD5s specified
  • compare [remotedir] [localdir] - compare the remote directory with the local directory
  • copy/cp - copy a file / dir remotely at Baidu Yun
  • delete/remove/rm - delete a file / dir remotely at Baidu Yun
  • downdir [remotedir] [localdir] - download a remote directory (recursively)
  • downfile [localpath] - download a remote file.
  • download [remotepath] [localpath] - download a remote directory (recursively) / file
  • dumpcache - display file hash cache
  • list/ls [remotepath] [format] [sort] [order] - list the 'remotepath' directory at Baidu PCS
  • listrecycle [start] [limit] - list the recycle contents
  • meta [format] - get information of the given path (dir / file) at Baidu Yun.
  • mkdir - create a directory at Baidu Yun
  • move/mv/rename/ren - move a file / dir remotely at Baidu Yun
  • quota/info - display the quota information
  • restore - restore a file from the recycle bin
  • search [remotepath] [recursive] - search for a file using keyword at Baidu Yun
  • stream [format] [chunk] - stream a video / audio file converted to M3U format at cloud side, to a pipe.
  • syncdown [remotedir] [localdir] [deletelocal] - sync down from the remote directory to the local directory
  • syncup [localdir] [remotedir] [deleteremote] - sync up from the local directory to the remote directory
  • upload [localpath] [remotepath] [ondup] - upload a file or directory (recursively)
  • whoami - display the user information

本文由 admin 原创,转载请注明出处。若存在侵权请联系删除。