CDDNS
支持Dnspod, 自动更新IP
开始使用
-
安装
pip install cddns或者clone https://github.com/chr233/pyddns -
修改配置文件,填写域名和dnspod API token
[dnspod] token = '' [[domains]] domain = 'chrxw.com' sub = 'test'
完整配置参考example.config.toml
-
运行
python3 ddns.py或者自己调用
cddns.ddns:from cddns import ddns ddns('config.toml', 'ip.txt') # 自行修改配置文件路径
-
建议使用
corntab来定时运行例如每30分钟运行一次:
*/30 * * * * python3 /root/ddns/ddns.py > /dev/null 2>&1 &
-
更新脚本方法:
pip3 install cddns --upgrade
Metadata
Release files for cddns 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cddns-0.1.tar.gz | 7.2 kB | Without provenance | Details for cddns-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cddns-0.1-py3-none-any.whl | Python 3 | none | any | Details for cddns-0.1-py3-none-any.whl |
Total release size: 28.0 kB
Release files / cddns-0.1.tar.gz
| Download URL | cddns-0.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f341fc34a7202d894e4ddbb073123a054ab8c7879aec8c59f2c4b69ba67beb49
|
|
BLAKE2b-256 checksum How to use checksums |
d168037010272283d86a6acf56a94bc22523666a0d6826cace9bdfacbf633a13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1
|
Release files / cddns-0.1-py3-none-any.whl
| Download URL | cddns-0.1-py3-none-any.whl |
|---|---|
| Size | 20.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2404eb2bb6f3b255e41f93b47925bfd00c197252dda07583eab6e3a5c850f3f1
|
|
BLAKE2b-256 checksum How to use checksums |
cda2d887ec07bb02628c66243085af60e71fa75aadfac021cefcd937e261a864
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1
|
Security for cddns 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.