# HuaweiCloud Python Software Development Kit (Python SDK)
The HuaweiCloud Python SDK allows you to easily work with Huawei Cloud services such as Elastic Compute Service (ECS) and Virtual Private Cloud(VPC) without the need to handle API related tasks.
This document introduces how to obtain and use HuaweiCloud Python SDK.
## Getting Started
- To use HuaweiCloud Python SDK, you must have Huawei Cloud account as well as the Access Key and Secret key of the HuaweiCloud account.
The accessKey is required when initializing `{Service}Client`. You can create an AccessKey in the Huawei Cloud console. For more information, see [My Credentials](https://support.huaweicloud.com/en-us/usermanual-ca/en-us_topic_0046606340.html).
- HuaweiCloud Python SDK requires python 3 or later.
## Install Python SDK
HuaweiCloud Python SDK supports Python 3 or later. Run ``python --version`` to check the version of Python.
- Use python pip
Run the following command to install the individual libraries of HuaweiCloud services:
```bash
# Install the core library
pip install huaweicloudsdkcore
# Install the VPC management library
pip install huaweicloudsdkvpc
```
- Install from [source](https://github.com/huaweicloud/huaweicloud-sdk-python-v3)
Run the following command to install the individual libraries of HuaweiCloud services:
```bash
# Install the core library
cd huaweicloudsdkcore-${version}
python setup.py install
# Install the VPC management library
cd huaweicloudsdkvpc-${version}
python setup.py install
```
## Use Python SDK
1. Import the required modules as follows:
```python
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkcore.http.http_config import HttpConfig
After enabled log, the SDK will print the access log by default, every request will be recorded in console like: '%(asctime)s %(thread)d %(name)s %(filename)s %(lineno)d %(levelname)s %(message)s'
In some situation, you may need to debug your http requests, original http request and response information will be needed. The SDK provides a listener function to obtain the original encrypted http request and response information.
**Warning:** The original http log can only be used in troubleshooting scenarios, please do not print the original http header or body in the production environment. The log content is not encrypted and may contain sensitive information such as the password of your ECS or the password of your IAM user account, etc. When the response body is binary content, the body will be printed as "***" without detailed information.