
一、写在前面


二、通过bypy使用百度云
# 安装bypypip install bypy# 配置账号密码:bypy info





bypy list
2、上传文件
bypy upload /path/to/local/file /remote/path3、下载文件
bypy download /remote/path /path/to/local/filebypy download test /home/biomamba
大文件建议大家挂载在后台下载:程序可以自己跑的,不用盯着
positional arguments:command operations (quota,list, etc)options:-h, --help show this helpmessage and exit-V, --version show program'sversion number andexit-d, --debug set debugging level(-dd to increasedebugging level,-ddd to enable HTPPtraffic debugging aswell (verytalkative))[default: 0]-v, --verbose set verbosity level[default: 0]-r RETRY, --retry RETRYnumber of retryattempts on networkerror [default: 5times]-q, --quit-when-failquit when maximumnumber of retryfailed [default:False]-t TIMEOUT, --timeout TIMEOUTnetwork timeout inseconds [default:300]-s SLICE, --slice SLICEsize of file uploadslice (can use'1024', '2k', '3MB',etc) [default: 20MB]--chunk CHUNK size of filedownload chunk (canuse'1024', '2k','3MB', etc)[default: 20 MB]-e, --verify verify upload /download [default :False]-f, --force-hash force file MD5 /CRC32 calculationinstead ofusingcached value--no-resume-downloadresume instead ofrestarting whendownloading iflocalfile already exists[default: True]--include-regex INCREGEXregular expressionof files to include.ifnot specified(default),everything isincluded. fordownload, the regexapplies to theremote files; forupload, the regexapplies to the localfiles. to excludefiles, think aboutyour regex, sometips here: https://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-a-word[default: ]--on-dup ONDUP what to do when thesame file / folderexists in thedestination:'overwrite', 'skip','prompt' [default:overwrite]--no-symlink DON'T follow symbollinks when uploading/ syncing up--disable-ssl-check DON'T verify hostSSL cerificate--cacerts CACERTS Specify the path forCA Bundle [default:None]--mirror MIRROR Specify the PCSmirror (e.g.bj.baidupcs.com.Open 'https://pcs.baidu.com/rest/2.0/pcs/manage?method=listhost' to get thelist) to use.[default:pcs.baidu.com]--select-fastest-mirrorLet the program runsome tests andselect the fastestPCS mirror itdetectes. [default:False]--rapid-upload-only only upload largefiles that can berapidly uploaded--resume-download-revert-back RCOUNTRevert back atleastRCOUNT downloadchunk(s) and aligntochunk boundarywhen resuming thedownload. A negativevalue means NOreverts. [default:1]--move Delete sourcefiles/directoriesafter download/upload/syncdown/syncup issuccessful (Thiswill forceverification of thefiles). [default:False]--processes PROCESSESNumberofparallelprocesses. (Onlyapplies to dirsync/dl/ul).[default: 1]--downloader DOWNLOADERdownloader touse(use python ifnotspecified). validvalues: ['aria2'][default: ]--downloader-arguments DOWNLOADER_ARGSarguments for thedownloader:normally, the stringis the arguments tobe passed to thedownloader. however,when it begins with'@', it will betreated as the nameoffile, whosecontents will beused as thedownloader arguments(example: whenspecifying'@args.txt', filecontentsof'args.txt' will beused as thedownloaderarguments, not thestring'@args.txt'itself). you canalso use environmentvariable'DOWNLOADER_ARGUMENTS'tospecify thedownloader arguments(the environmentvariable has lowerpriority compared tothis argument).defaultvalues:{'aria2': '-c -k10M-x4 -s4 --file-allocation=none'}--config-dir CONFIGDIRspecify the configpath [default: /home/biomamba/.bypy]-c, --clean remove the tokenfile (need re-auth)and upload progressfile, -cc: cleanhashcachefileaswellCommands:help <command> - provide some information for the commandcdl_add <source_url> [save_path] [timeout] - add an offline (cloud) download taskcdl_addmon <source_url> [save_path] [timeout] - add an offline (cloud) download task and monitor the download progresscdl_cancel <task_id> - cancel an offline (cloud) download taskcdl_list - listoffline (cloud) download taskscdl_query <task_ids> - query existing offline (cloud) download taskscleancache - remove invalid entries fromhashcachefilecombine <remotefile> [localfile] [md5s] - try tocreate a fileat PCS by combining slices, having MD5s specifiedcompare [remotedir] [localdir] - compare the remote directorywith the localdirectorycopy/cp <from> <to> - copy a file / dir remotely at Baidu Yundelete/remove/rm <remotepath> - delete a file / dir remotely at Baidu Yundowndir [remotedir] [localdir] - download a remote directory (recursively)downfile <remotefile> [localpath] - download a remote file.download [remotepath] [localpath] - download a remote directory (recursively) / filedumpcache - display filehashcachelist/ls [remotepath] [format] [sort] [order] - list the 'remotepath'directoryat Baidu PCSlistrecycle [start] [limit] - list the recyclecontentsmeta <remotepath> [format] - get information of the given path (dir / file) at Baidu Yun.mkdir <remotedir> - create a directoryat Baidu Yunmove/mv/rename/ren <from> <to> - move a file / dir remotely at Baidu Yunquota/info - display the quota informationrefreshtoken - refresh the access tokenrestore <remotepath> - restore a filefrom the recyclebinsearch <keyword> [remotepath] [recursive] - searchfor a fileusing keyword at Baidu Yunstream <remotefile> <localpipe> [format] [chunk] - stream a video / audio file converted to M3U formatat cloud side, to a pipe.syncdown [remotedir] [localdir] [deletelocal] - sync down from the remote directoryto the localdirectorysyncup [localdir] [remotedir] [deleteremote] - sync up from the localdirectoryto the remote directoryupload [localpath] [remotepath] [ondup] - upload a fileordirectory (recursively)whoami - display the user information


如何联系我们


已有生信基地联系方式的同学无需重复添加

