Skip to main content

腾讯云资源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


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)

Uploaded Source

Built Distribution

tencentApi-0.1.0-py3-none-any.whl (13.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page