qingstor-sdk


Nameqingstor-sdk JSON
Version 2.2.4 PyPI version JSON
download
home_pagehttps://github.com/yunify/qingstor-sdk-python
SummaryThe official QingStor SDK for the Python programming language.
upload_time2017-09-05 05:09:12
maintainer
docs_urlNone
authorYunify SDK Group
requires_python
licenseApache License 2.0
keywords
VCS
bugtrack_url
requirements PyYAML requests idna
Travis-CI
coveralls test coverage No coveralls.
            # QingStor SDK for Python

[![Build Status](https://travis-ci.org/yunify/qingstor-sdk-python.svg?branch=master)](https://travis-ci.org/yunify/qingstor-sdk-python)
[![API Reference](http://img.shields.io/badge/api-reference-green.svg)](https://docs.qingcloud.com/qingstor/)
[![License](http://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/yunify/qingstor-sdk-python/blob/master/LICENSE)

The official QingStor SDK for the Python programming language.

## Getting Started

### Installation

Refer to the [Installation Guide](docs/installation.md), and have this SDK installed.

### Preparation

Before your start, please python to [QingCloud Console](https://console.qingcloud.com/access_keys/) to create a pair of QingCloud API AccessKey.

___API AccessKey Example:___

``` yaml
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](https://github.com/yunify/qingstor-sdk-python/releases) and [change log](https://github.com/yunify/qingstor-sdk-python/blob/master/CHANGELOG.md) for information about the latest features, bug fixes and new ideas.

- [Configuration Guide](docs/configuration.md)
- [QingStor Service Usage Guide](docs/qingstor_service_usage.md)

___Quick Start Code Example:___

``` python
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

- [QingStor Documentation](https://docs.qingcloud.com/qingstor/index.html)
- [QingStor Guide](https://docs.qingcloud.com/qingstor/guide/index.html)
- [QingStor APIs](https://docs.qingcloud.com/qingstor/api/index.html)

## Contributing

Please see [*Contributing Guidelines*](https://github.com/yunify/qingstor-sdk-python/blob/master/CONTRIBUTING.md) of this project before submitting patches.

## LICENSE

The Apache License (Version 2.0, January 2004).



            

Raw data

            {
    "maintainer": "", 
    "docs_url": null, 
    "requires_python": "", 
    "maintainer_email": "", 
    "cheesecake_code_kwalitee_id": null, 
    "keywords": "", 
    "upload_time": "2017-09-05 05:09:12", 
    "requirements": [
        {
            "name": "PyYAML", 
            "specs": [
                [
                    ">=", 
                    "3.12"
                ]
            ]
        }, 
        {
            "name": "requests", 
            "specs": [
                [
                    ">=", 
                    "2.12.4"
                ]
            ]
        }, 
        {
            "name": "idna", 
            "specs": [
                [
                    ">=", 
                    "2.5"
                ], 
                [
                    "<", 
                    "2.6"
                ]
            ]
        }
    ], 
    "author": "Yunify SDK Group", 
    "home_page": "https://github.com/yunify/qingstor-sdk-python", 
    "github_user": "yunify", 
    "download_url": "https://pypi.python.org/packages/74/94/f496837a1b0e068a8434be986588971bf0b8e0cc0345f2c7c400f8f265fa/qingstor-sdk-2.2.4.tar.gz", 
    "platform": "", 
    "version": "2.2.4", 
    "cheesecake_documentation_id": null, 
    "description": "# QingStor SDK for Python\n\n[![Build Status](https://travis-ci.org/yunify/qingstor-sdk-python.svg?branch=master)](https://travis-ci.org/yunify/qingstor-sdk-python)\n[![API Reference](http://img.shields.io/badge/api-reference-green.svg)](https://docs.qingcloud.com/qingstor/)\n[![License](http://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/yunify/qingstor-sdk-python/blob/master/LICENSE)\n\nThe official QingStor SDK for the Python programming language.\n\n## Getting Started\n\n### Installation\n\nRefer to the [Installation Guide](docs/installation.md), and have this SDK installed.\n\n### Preparation\n\nBefore your start, please python to [QingCloud Console](https://console.qingcloud.com/access_keys/) to create a pair of QingCloud API AccessKey.\n\n___API AccessKey Example:___\n\n``` yaml\naccess_key_id: 'ACCESS_KEY_ID_EXAMPLE'\nsecret_access_key: 'SECRET_ACCESS_KEY_EXAMPLE'\n```\n\n### Usage\n\nNow 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.\n\nCheckout our [releases](https://github.com/yunify/qingstor-sdk-python/releases) and [change log](https://github.com/yunify/qingstor-sdk-python/blob/master/CHANGELOG.md) for information about the latest features, bug fixes and new ideas.\n\n- [Configuration Guide](docs/configuration.md)\n- [QingStor Service Usage Guide](docs/qingstor_service_usage.md)\n\n___Quick Start Code Example:___\n\n``` python\nfrom qingstor.sdk.service.qingstor import QingStor\nfrom qingstor.sdk.config import Config\n\nconfig = Config('ACCESS_KEY_ID_EXAMPLE', 'SECRET_ACCESS_KEY_EXAMPLE')\nqingstor = QingStor(config)\n\n# List all buckets.\noutput = qingstor.list_buckets()\n\n# Print HTTP status code.\nprint(output.status_code)\n\n# Print the count of buckets.\nprint(output['count'])\n\n# Print the first bucket name.\nprint(output['buckets'][0]['name'])\n\n# Print Content-Type header.\nprint(output.headers['Content-Type'])\n\n# Print whole content.\nprint(output.content)\n```\n\n## Reference Documentations\n\n- [QingStor Documentation](https://docs.qingcloud.com/qingstor/index.html)\n- [QingStor Guide](https://docs.qingcloud.com/qingstor/guide/index.html)\n- [QingStor APIs](https://docs.qingcloud.com/qingstor/api/index.html)\n\n## Contributing\n\nPlease see [*Contributing Guidelines*](https://github.com/yunify/qingstor-sdk-python/blob/master/CONTRIBUTING.md) of this project before submitting patches.\n\n## LICENSE\n\nThe Apache License (Version 2.0, January 2004).\n\n\n", 
    "tox": true, 
    "lcname": "qingstor-sdk", 
    "bugtrack_url": null, 
    "github": true, 
    "coveralls": false, 
    "name": "qingstor-sdk", 
    "license": "Apache License 2.0", 
    "travis_ci": true, 
    "github_project": "qingstor-sdk-python", 
    "summary": "The official QingStor SDK for the Python programming language.", 
    "split_keywords": [], 
    "author_email": "sdk_group@yunify.com", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2017-09-05T05:09:12", 
            "comment_text": "", 
            "python_version": "source", 
            "url": "https://pypi.python.org/packages/74/94/f496837a1b0e068a8434be986588971bf0b8e0cc0345f2c7c400f8f265fa/qingstor-sdk-2.2.4.tar.gz", 
            "md5_digest": "a07d968de099dfb6c9f62b2573bc21b9", 
            "downloads": 0, 
            "filename": "qingstor-sdk-2.2.4.tar.gz", 
            "packagetype": "sdist", 
            "path": "74/94/f496837a1b0e068a8434be986588971bf0b8e0cc0345f2c7c400f8f265fa/qingstor-sdk-2.2.4.tar.gz", 
            "size": 20329
        }, 
        {
            "has_sig": false, 
            "upload_time": "2017-09-05T05:09:11", 
            "comment_text": "", 
            "python_version": "py2.py3", 
            "url": "https://pypi.python.org/packages/a5/18/3aef2380fe93a1fbaca228cd6e4ac08e561fa06dd7c02ccde9b53c12eeb3/qingstor_sdk-2.2.4-py2.py3-none-any.whl", 
            "md5_digest": "3c5c9801da925aa5f58cb6b40bd6c1cf", 
            "downloads": 0, 
            "filename": "qingstor_sdk-2.2.4-py2.py3-none-any.whl", 
            "packagetype": "bdist_wheel", 
            "path": "a5/18/3aef2380fe93a1fbaca228cd6e4ac08e561fa06dd7c02ccde9b53c12eeb3/qingstor_sdk-2.2.4-py2.py3-none-any.whl", 
            "size": 24570
        }
    ], 
    "_id": null, 
    "cheesecake_installability_id": null
}