Python client of Baidu cloud in Linux (Unicode supported)

Source: Internet
Author: User

Bypy-Python client of Baidu cloud/Baidu Network Disk

: Https://github.com/houtianze/bypy

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

This is a Python client of Baidu cloud/Baidu Network Disk. The main purpose is to use 2 TB of Baidu cloud disk in Linux (command line. For example, you can use it on the Raspberry Pi. It provides file list, download, upload, comparison, up synchronization, down synchronization, and so on.

Full support for Unicode/Chinese. Error retry, recursive upload/download, directory comparison, and hash cache.

The interface is in English, mainly because it was developed for Raspberry Pi.

The first time you run the task, you must use Baidu's webpage for authorization (once)

 

Important 1 to support Chinese, you need to set the system's locale to UTF-8.

Important 2 you need to install the Python Requests library. In the Debian/Ubuntu/Raspbian environment, you only need to execute the following command once:

sudo pip install requests

Getting Started:

Show Help and all commands ):

bypy.py

To learn more about a command:

bypy.py help <command>

The file list is displayed in the root directory of the cloud disk (Program:

bypy.py list

Synchronize the current directory to the cloud Disk:

bypy.py syncup

Or

bypy.py upload

Synchronize the cloud disk content to the local disk:

bypy.py syncdown

Or

bypy.py downdir /

Compare the current local directory and the root directory of the cloud disk (Program) (this is useful ):

bypy.py compare 

There are other commands...

The hash value calculation is added to the cache, which improves the computing speed after the first time.

When the-v parameter is added, the program displays the progress details. When the-d parameter is added, the program displays some debugging information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.