官方SDK文档:https://github.com/KscSDK/ksc-sdk-python
安装
pip install ksc-sdk-python
使用
from kscore.session import get_session
# 密钥
ACCESS_KEY_ID = "your ak"
SECRET_ACCESS_KEY = "your sk"
s = get_session()
client = s.create_client(
"iam", ks_access_key_id=ACCESS_KEY_ID, ks_secret_access_key=SECRET_ACCESS_KEY
)
if __name__ == "__main__":
s = get_session()
client = s.create_client("kec", "cn-beijing-6", use_ssl=False)
client.[your method]()