Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

bypy

Python client for Baidu Yun (Personal Cloud Storage) 百度云/百度网盘Python客户端

Subscribe to updates I use bypy


Statistics on bypy

Number of watchers on Github 3586
Number of open issues 12
Average time to close an issue 7 days
Main language Python
Average time to merge a PR 8 days
Open pull requests 4+
Closed pull requests 7+
Last commit over 1 year ago
Repo Created over 5 years ago
Repo Last Updated over 1 year ago
Size 1.89 MB
Organization / Authorhoutianze
Contributors16
Page Updated
Do you use bypy? Leave a review!
View open issues (12)
View bypy activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating bypy for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

bypy - Python client for Baidu Yun (Personal Cloud Storage) /Python

alt text alt text alt text Coverage Status Code Climate Join the chat at https://gitter.im/houtianze/bypy


  • : pip install bypy
  • : bypy

TL;DR:

  • To install: pip install bypy
  • To use: bypy

*bug __ *

This is project is now in maintenance mode: NO new features will be added, and may be updated only if critical bugs are found.


(English readme is at the bottom)

  • : //--processes

/PythonLinuxWindows2TBRaspberry Pi

PCS API/apps/bypy

~~PCS API1000 #285 )1000 / ~~

*: Unicode//; *

Raspberry Pi


UTF-8http://perlgeek.de/en/article/set-up-a-clean-utf8-environment)


  • pippip install bypy Python 2.7+, 3.3+)

  • : bypy (python -m bypypython3 -m bypy

  • : import bypy

bypygui


:

bypy

bypy info.

bypy help <command>
bypy list
bypy syncup

or

bypy upload
bypy syncdown

or

bypy downdir /

bypy compare

bypy


  • -v
  • -d
  • -dddHTTP****

wiki/

Python

from bypy import ByPy
bp=ByPy()
bp.list() # or whatever instance methods of ByPy class

: LICENSE


PCS API: http://developer.baidu.com/wiki/index.php?title=docs/pcs/rest/file_data_apis_list ( baidudoc directory)


Introduction

  • Latest feature: Multiprocessing added to directory upload / download / sync--processes

This is a Python client for Baidu Yun (a.k.a PCS - Personal Cloud Storage), an online storage website offering 2 TB (fast) free personal storage. This main purpose is to be able to utilize this stoarge service under Linux environment (console), e.g. Raspberry Pi.

Due to Baidu PC permission restrictions, this program can only access your /apps/bypy directoy at Baidu PCS

(Fixed) It's said the Baidu PCS API won't return more than 1000 items inside a directory ( #285 )if this is trueyou won't be able to see / download some files if you have a directory with more than 1000 files on Baidu Cloud

Features: Unicode / Chinese support; Retry on failures; Recursive down/up-load; Directory comparison; Hash caching.

Prerequisite

Important: You need to set you system locale encoding to UTF-8 for this to work (You can refere here: http://perlgeek.de/en/article/set-up-a-clean-utf8-environment)

Installation

  • pip install bypy (Supports Python 2.7+, 3.3+)

Usage

  • Standalone program

    • Simply run bypy (or python -m bypy, or python3 -m bypy You will see all the commands and parameters it supports
  • As a package in your code

    • import bypy

Simple GUI: Run bypygui

Getting started

To get help and a list of available commands:

bypy

To authorize for first time use, run any commands e.g. bypy info and follow the instructions (login etc). This is a one-time requirement only.

To get more details about certain command:

bypy help <command>

List files at (App's) root directory at Baidu PCS:

bypy list

To sync up to the cloud (from the current directory):

bypy syncup

or

bypy upload

To sync down from the cloud (to the current directory):

bypy syncdown

or

bypy downdir /

To compare the current directory to (App's) root directory at Baidu PCS (which I think is very useful):

bypy compare

To get more information about the commands, check the output of bypy.

Debug

  • Add in -v parameter, it will print more details about the progress.
  • Add in -d parameter, it will print some debug messages.
  • Add in -ddd, it will display HTTP messages as well (Warning: A lot

Tips / Sharing

Please go to wiki

To call from Python code

from bypy import ByPy
bp=ByPy()
bp.list() # or whatever instance methods of ByPy class

License

Please refer to LICENSE


PCS API Document (link dead 404): http://developer.baidu.com/wiki/index.php?title=docs/pcs/rest/file_data_apis_list (Offline pdf retrieved before: baidudoc directory)

bypy open issues Ask a question     (View All Issues)
  • almost 3 years Program authorization FAILED.
  • almost 3 years bypy upload not working with file name begin with -
  • almost 3 years 传一个40多G的大文件报错Error code 31363
  • almost 3 years API 访问出错
  • almost 3 years 超过20M的大文件上传无法正确建立文件夹
  • almost 3 years 上传好慢,几兆的东西也上传不上去
  • almost 3 years Cloud download not support torrent/magnet.
  • almost 3 years 可以并发吗
  • almost 3 years 关于使用 zipapp 构建可独立运行的方法
  • almost 3 years 登入了作者的百度账户
  • almost 3 years 本地文件,远程文件大小不匹配怎么回事?
  • almost 3 years request openssl 出错
  • almost 3 years `bypy list` capped at 1000 files maximum per directory?
  • almost 3 years 希望增加ftp/webdav服务支持
  • almost 3 years UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 18: ordinal not in range(128)
  • almost 3 years 楼主请问,wp2pcs方式,百度云离线下载提示用户未授权,怎么回事呢
  • about 3 years aria2下载过50%以上中断后无法续传
  • about 3 years 同步到本地时报错,程序中断
  • about 3 years Error accessing 'https://pcs.baidu.com/rest/2.0/pcs/file
  • about 3 years Unhandled exception while getting the help info about a command.
  • about 3 years syncup的时候deleteremote参数加不上
  • about 3 years 建议添加daemon选项
  • about 3 years 内层子文件夹被创建至外层
  • about 3 years bypy对大文件下载的支持不友善啊~
  • about 3 years file is not authorized
  • about 3 years 上传运行前报错,然后正常上传,文件未上传
  • about 3 years 提供多用户登陆
  • about 3 years <E> [21:11:20] Maximum number (1) of tries failed. <E> [21:11:20] Token-refreshing on all the servers failed
  • about 3 years 想问下有没有计划增加webui?
  • about 3 years 同步失败啊
bypy open pull requests (View All Pulls)
  • Because refresh_token doesn't work, I hope it would provide an interface to auto with auth_code.
  • wrap json.dumps with unicode to ensure type
  • Make the setup.py more friendly to pip
  • Fix `TypeError: b'xxxxxx' is not JSON serializable`
bypy list of languages used
Other projects in Python