bypy-cmd指令合集.txt 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <W> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  2. <W> You are running Python on Windows, which doesn't support Unicode so well.
  3. Files with non-ASCII names may not be handled correctly.
  4. <W> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  5. <W> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  6. <W> WARNING: System locale is not 'UTF-8'.
  7. Files with non-ASCII names may not be handled correctly.
  8. You should set your System Locale to 'UTF-8'.
  9. Current locale is 'cp65001'
  10. <W> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  11. usage: bypy [-h] [-V] [-d] [-v] [-r RETRY] [-q] [-t TIMEOUT] [-s SLICE] [--chunk CHUNK] [-e] [-f]
  12. [--no-resume-download] [--include-regex INCREGEX] [--on-dup ONDUP] [--no-symlink] [--disable-ssl-check]
  13. [--cacerts CACERTS] [--mirror MIRROR] [--select-fastest-mirror] [--rapid-upload-only]
  14. [--resume-download-revert-back RCOUNT] [--move] [--processes PROCESSES] [--downloader DOWNLOADER]
  15. [--downloader-arguments DOWNLOADER_ARGS] [--config-dir CONFIGDIR] [-c]
  16. [command ...]
  17. bypy v1.8.5 - Python client for Baidu Yun (Personal Cloud Storage) 百度云/百度网盘 Python 客户端
  18. positional arguments:
  19. command operations (quota, list, etc)
  20. options:
  21. -h, --help show this help message and exit
  22. -V, --version show program's version number and exit
  23. -d, --debug set debugging level (-dd to increase debugging level, -ddd to enable HTPP traffic debugging as
  24. well (very talkative)) [default: 0]
  25. -v, --verbose set verbosity level [default: 0]
  26. -r, --retry RETRY number of retry attempts on network error [default: 5 times]
  27. -q, --quit-when-fail quit when maximum number of retry failed [default: False]
  28. -t, --timeout TIMEOUT
  29. network timeout in seconds [default: 300]
  30. -s, --slice SLICE size of file upload slice (can use '1024', '2k', '3MB', etc) [default: 20 MB]
  31. --chunk CHUNK size of file download chunk (can use '1024', '2k', '3MB', etc) [default: 20 MB]
  32. -e, --verify verify upload / download [default : False]
  33. -f, --force-hash force file MD5 / CRC32 calculation instead of using cached value
  34. --no-resume-download resume instead of restarting when downloading if local file already exists [default: True]
  35. --include-regex INCREGEX
  36. regular expression of files to include. if not specified (default), everything is included.
  37. for download, the regex applies to the remote files; for upload, the regex applies to the
  38. local files. to exclude files, think about your regex, some tips here:
  39. https://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-
  40. a-word [default: ]
  41. --on-dup ONDUP what to do when the same file / folder exists in the destination: 'overwrite', 'skip',
  42. 'prompt' [default: overwrite]
  43. --no-symlink DON'T follow symbol links when uploading / syncing up
  44. --disable-ssl-check DON'T verify host SSL cerificate
  45. --cacerts CACERTS Specify the path for CA Bundle [default: None]
  46. --mirror MIRROR Specify the PCS mirror (e.g. bj.baidupcs.com. Open
  47. 'https://pcs.baidu.com/rest/2.0/pcs/manage?method=listhost' to get the list) to use. [default:
  48. pcs.baidu.com]
  49. --select-fastest-mirror
  50. Let the program run some tests and select the fastest PCS mirror it detectes. [default: False]
  51. --rapid-upload-only only upload large files that can be rapidly uploaded
  52. --resume-download-revert-back RCOUNT
  53. Revert back at least RCOUNT download chunk(s) and align to chunk boundary when resuming the
  54. download. A negative value means NO reverts. [default: 1]
  55. --move Delete source files/directories after download/upload/syncdown/syncup is successful (This will
  56. force verification of the files). [default: False]
  57. --processes PROCESSES
  58. Number of parallel processes. (Only applies to dir sync/dl/ul). [default: 1]
  59. --downloader DOWNLOADER
  60. downloader to use (use python if not specified). valid values: ['aria2'] [default: ]
  61. --downloader-arguments DOWNLOADER_ARGS
  62. arguments for the downloader: normally, the string is the arguments to be passed to the
  63. downloader. however, when it begins with '@', it will be treated as the name of file, whose
  64. contents will be used as the downloader arguments (example: when specifying '@args.txt', file
  65. contents of 'args.txt' will be used as the downloader arguments, not the string '@args.txt'
  66. itself). you can also use environment variable 'DOWNLOADER_ARGUMENTS' to specify the
  67. downloader arguments (the environment variable has lower priority compared to this argument).
  68. default values: {'aria2': '-c -k10M -x4 -s4 --file-allocation=none'}
  69. --config-dir CONFIGDIR
  70. specify the config path [default: C:\Users\EDY\.bypy]
  71. -c, --clean remove the token file (need re-auth) and upload progress file, -cc: clean hash cache file as
  72. well
  73. Commands:
  74. help <command> - provide some information for the command
  75. cdl_add <source_url> [save_path] [timeout] - add an offline (cloud) download task
  76. cdl_addmon <source_url> [save_path] [timeout] - add an offline (cloud) download task and monitor the download progress
  77. cdl_cancel <task_id> - cancel an offline (cloud) download task
  78. cdl_list - list offline (cloud) download tasks
  79. cdl_query <task_ids> - query existing offline (cloud) download tasks
  80. cleancache - remove invalid entries from hash cache file
  81. combine <remotefile> [localfile] [md5s] - try to create a file at PCS by combining slices, having MD5s specified
  82. compare [remotedir] [localdir] - compare the remote directory with the local directory
  83. copy/cp <from> <to> - copy a file / dir remotely at Baidu Yun
  84. delete/remove/rm <remotepath> - delete a file / dir remotely at Baidu Yun
  85. downdir [remotedir] [localdir] - download a remote directory (recursively)
  86. downfile <remotefile> [localpath] - download a remote file.
  87. download [remotepath] [localpath] - download a remote directory (recursively) / file
  88. dumpcache - display file hash cache
  89. list/ls [remotepath] [format] [sort] [order] - list the 'remotepath' directory at Baidu PCS
  90. listrecycle [start] [limit] - list the recycle contents
  91. meta <remotepath> [format] - get information of the given path (dir / file) at Baidu Yun.
  92. mkdir <remotedir> - create a directory at Baidu Yun
  93. move/mv/rename/ren <from> <to> - move a file / dir remotely at Baidu Yun
  94. quota/info - display the quota information
  95. refreshtoken - refresh the access token
  96. restore <remotepath> - restore a file from the recycle bin
  97. search <keyword> [remotepath] [recursive] - search for a file using keyword at Baidu Yun
  98. stream <remotefile> <localpipe> [format] [chunk] - stream a video / audio file converted to M3U format at cloud side, to a pipe.
  99. syncdown [remotedir] [localdir] [deletelocal] - sync down from the remote directory to the local directory
  100. syncup [localdir] [remotedir] [deleteremote] - sync up from the local directory to the remote directory
  101. upload [localpath] [remotepath] [ondup] - upload a file or directory (recursively)
  102. whoami - display the user information