Skip to content

668/bypy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bypy

Finally, Unicode / Chinese file names are properly supported. 终于全面支持Unicode / 中文了。

Important You need to set you system locale encoding to UTF-8 for this to work

重要 想要支持中文,你要把系统的区域编码设置为UTF-8。

Python client for Baidu Yun 百度云盘的Python客户端

Copyright 2013 Hou Tianze (GitHub: houtianze, Twitter: @ibic, G+: +TianzeHou)

[English]

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.

This program uses the REST APIs to access the files at Baidu PCS. You can list, download, upload, compare, sync-up/down, etc.

Quick start:

To use this program, you need to install the Python Requests library. In Debian / Ubuntu / Raspbian, you just run the following command:

sudo pip install requests

To get help and a list of available commands:

bypy.py

To get more details about certain command:

bypy.py help <command>

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

bypy.py list

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

bypy.py syncup

or

bypy.py upload

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

bypy.py syncdown

or

bypy.py downdir /

To compare the current directory to (App's) root directory at Baidu PCS:

bypy.py compare

And there are more commands ...

Btw, hash caching is also implemented.


[中文]

这是一个百度云盘的Python客户端。主要的目的就是在Linux环境下(命令行)使用百度云盘的2TB的巨大空间。比如,你可以用在Raspberry Pi树莓派上。它提供文件列表、下载、上传、比较、向上同步、向下同步,等等。

界面是英文的,主要是因为这个是为了Raspberry Pi树莓派开发的。 第一次运行的时候要通过百度的网页进行授权(一次就好)

上手:

你需要安装Python Requests 库. 在 Debian / Ubuntu / Raspbian 环境下,只需执行如下命令一次:

sudo pip install requests

显示使用帮助和所有命令(英文):

bypy.py

更详细的了解某一个命令:

bypy.py help <command>

显示在云盘(程序的)根目录下文件列表:

bypy.py list

把当前目录同步到云盘:

bypy.py syncup

or

bypy.py upload

把云盘内容同步到本地来:

bypy.py syncdown

or

bypy.py downdir /

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

bypy.py compare

还有一些其他命令 ...

顺道,哈希值的计算加入了缓存处理,使得第一次以后的计算速度有所提高。

==== Unicode file names now supported。 支持Unicode文件名。

About

Python client for Baidu Yun (Personal Cloud Storage)

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors