腾讯云资源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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tencentApi-0.1.0.tar.gz.
File metadata
- Download URL: tencentApi-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e52566c29a9142f9cf825c06e6298c15f6a80dd10cd0d3d1207493e95d05e20
|
|
| MD5 |
05c2a15f083ed3a02ed4f058e527f614
|
|
| BLAKE2b-256 |
f644a8cd89ad769ce55c71e50eafd0af90a7a53189ea8dd7ecd293737e9eb654
|
File details
Details for the file tencentApi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tencentApi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9df8c9888f93e2ff106be83806a132e8763ffe5c63caa4a6a0d6cf073e5b03a
|
|
| MD5 |
914ed3a9e75516b8d4e26c6e0bac7c8f
|
|
| BLAKE2b-256 |
5d6e72b691c20b68d5a90c0cd0e4501fe990580fdb3663cf6d6aaf0a4294e130
|