After the launch of the API, Kingsoft kubernetes officially released Python and Java sdks, so you can choose to use them for the next time. But I still like to write it by myself. This time, I made a small update to my SDK. I corrected the problem that Chinese characters may go wrong. the URL of the quick drive is not allowed in Chinese, therefore, You Need To urllib the URL parameter values in Chinese. quote processing.
Address: http://mykuaipansdk.codeplex.com/
The following is a simple example:
# Coding = UTF-8
Import kuaipan
Kp = kuaipan. kuaipan ('user token', 'user token_secret ')
KP. create_folder ("/temppath ")
KP. Delete ("/temppath ")
KP. create_folder ("/Chinese directory ")
KP. Upload ('/mypic 2.jpg', u 'd: \ testkp \ .jpg ')
KP. Copy ('/mypic 2.jpg', '/mypic 22222.jpg ')
Kingsoft fast disk is quite useful, but there are too many files in it, and it is found that each time you start the fast disk, it will run for a period of time to find file changes, as the number of files increases, this time takes more and more time, and affects the boot speed.