Skip to main content

腾讯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  # 以配置文件的方式启动 !!!注意补充配置文件的信息

Release files for tencentApi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tencentApi 0.1.0
File Size Uploaded
tencentApi-0.1.0.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tencentApi 0.1.0
File Interpreter ABI Platform
tencentApi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / tencentApi-0.1.0.tar.gz

Download URL tencentApi-0.1.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e52566c29a9142f9cf825c06e6298c15f6a80dd10cd0d3d1207493e95d05e20
BLAKE2b-256 checksum
How to use checksums
f644a8cd89ad769ce55c71e50eafd0af90a7a53189ea8dd7ecd293737e9eb654
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Release files / tencentApi-0.1.0-py3-none-any.whl

Download URL tencentApi-0.1.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9df8c9888f93e2ff106be83806a132e8763ffe5c63caa4a6a0d6cf073e5b03a
BLAKE2b-256 checksum
How to use checksums
5d6e72b691c20b68d5a90c0cd0e4501fe990580fdb3663cf6d6aaf0a4294e130
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page