腾讯云资源api,补充cns模块的api函数,实现动态域名解析。
Project description
腾讯Api的CNS模块补充
简介
腾讯云产品有提供支持多种语言的官方的SDK文档,也包括python,但是对于cns模块支持有限,目前(2020-6-3)并没有现成的python模块来操作腾讯云的域名管理。根据官方api文档,使用python访问腾讯云的cns资源,并实现ipv6动态域名解析功能。
安装
- pip工具安装
pip install tencentApi
- 源码安装
git clone https://github.com/shenchucheng/tencentapi.git tencentapi
cd tencentapi
python3 setup.py sdist bdist_wheel
python3 -m pip install dist/tencentApi*.tar.gz
cli工具
安装完成后可使用cns工具行命令
cns --help # 显示帮助信息
cns config # 进行ip环境检测
cns ddns run <flags>
cns profile ~/.cnsrc # 生成动态域名解析json文件
cns ddns run --profile ~/.cnsrc # 以配置文件的方式启动 !!!注意补充配置文件的信息
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 Distribution
tencentApi-0.1.0.tar.gz
(10.2 kB
view hashes)
Built Distribution
tencentApi-0.1.0-py3-none-any.whl
(13.6 kB
view hashes)
Close
Hashes for tencentApi-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9df8c9888f93e2ff106be83806a132e8763ffe5c63caa4a6a0d6cf073e5b03a |
|
MD5 | 914ed3a9e75516b8d4e26c6e0bac7c8f |
|
BLAKE2b-256 | 5d6e72b691c20b68d5a90c0cd0e4501fe990580fdb3663cf6d6aaf0a4294e130 |