Aliyun DDNS
A dynamic DNS client for Aliyun written in pure Python.
Install
Download and install the aliyunddns package for Python.
pip install aliyunddns
Usage:
There are two ways to pass arguments to the program:
- Passing a config file path with
-cargument. - Specify information using the command line arguments.
Note: when passing a config file, all the other arguments will be ignored.
Here are the full arguments list:
usage: ddns.py [-h] [-c CONFIG] [--access-key ACCESS_KEY]
[--secret-key SECRET_KEY] [--domain DOMAIN]
[--host-record HOST_RECORD] [--line LINE] [--ttl TTL]
[--log-file LOG_FILE]
Aliyun DDNS Client
optional arguments:
-h, --help show this help message and exit
-c CONFIG config file path (ignore other arguments)
--access-key ACCESS_KEY
access Key Id
--secret-key SECRET_KEY
secret Key
--domain DOMAIN domain name
--host-record HOST_RECORD
host record
--line LINE line <default|telecom|unicom|mobile|oversea|edu|drpeng
|btvn>
--ttl TTL TTL
--log-file LOG_FILE log file path
Config
The config file format is JSON. Create a config file with extension .json and convert the dash in command line arguments to underline.
For examples:
{
"access_key": "abc",
"secret_key": "abc",
"domain": "example.com",
"host_record": "@",
"line": "default",
"ttl": 600,
"log_file": "/var/log/ddns/ddns.log"
}
Examples
- Specify a config file.
aliyunddns -c config.json
- Using command line arguments.
aliyunddns --access-key=abc --secret-key=abc --domain=example.com --log-file=/var/log/ddns/ddns.log
Metadata
Release files for aliyunddns 1.0
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 | |
|---|---|---|---|---|
| aliyunddns-1.0.tar.gz | 4.0 kB | Without provenance | Details |
Release files / aliyunddns-1.0.tar.gz
| Download URL | aliyunddns-1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92cdba7e898efa46c3175e89e9be42540c437a3c11651f1699d6ddf8942d1998
|
|
BLAKE2b-256 checksum How to use checksums |
4d89aa3ad1d517ca5e4188ef56e175371c77622197270692b7db4773eeb92441
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
|
Security for aliyunddns 1.0
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.