The SDK for Kingsoft fast disk was slightly updated.

Source: Internet
Author: User

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.

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.