The official QingStor SDK for the Python programming language.
Project description
QingStor SDK for Python
The official QingStor SDK for the Python programming language.
Getting Started
Installation
Refer to the Installation Guide, and have this SDK installed.
** Since v2.3.0, qingstor-sdk-python will only support python 3**
Preparation
Before your start, please python to QingCloud Console to create a pair of QingCloud API AccessKey.
API AccessKey Example:
access_key_id: 'ACCESS_KEY_ID_EXAMPLE'
secret_access_key: 'SECRET_ACCESS_KEY_EXAMPLE'
Usage
Now you are ready to code. You can read the detailed guides in the list below to have a clear understanding or just take the quick start code example.
Checkout our releases and change log for information about the latest features, bug fixes and new ideas.
Quick Start Code Example:
from qingstor.sdk.service.qingstor import QingStor
from qingstor.sdk.config import Config
config = Config('ACCESS_KEY_ID_EXAMPLE', 'SECRET_ACCESS_KEY_EXAMPLE')
qingstor = QingStor(config)
# List all buckets.
output = qingstor.list_buckets()
# Print HTTP status code.
print(output.status_code)
# Print the count of buckets.
print(output['count'])
# Print the first bucket name.
print(output['buckets'][0]['name'])
# Print Content-Type header.
print(output.headers['Content-Type'])
# Print whole content.
print(output.content)
Reference Documentations
Contributing
Please see Contributing Guidelines of this project before submitting patches.
LICENSE
The Apache License (Version 2.0, January 2004).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for qingstor_sdk-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f779de3989cd7f1d3ca967789709a68dc52505188dc35c452642a628d26f29c2 |
|
MD5 | 8aab8e1b82481ed0a62c5d9a6511bfeb |
|
BLAKE2b-256 | 2273bd4f724d944b0f78786a11ebe849ab6b4599513410ed7c00aba627fe4978 |