WEDOS WAPI client
Project description
wedos-wapi-client
Wrapper around WEDOS WAPI
(Note: WAPI must be enabled for your account and your IP must be authorized to access it.)
Example usage for DNS:
from wedos_wapi_client import WapiClient
old_ip = "1.2.3.4"
new_ip = "10.20.30.40"
wapi = WapiClient(user="your-email@domain.tld", password="secret-password")
for domain in wapi.domains_list().data["domain"].values():
for row in wapi.dns_rows_list(domain["name"]).data["row"]:
if row["rdtype"] == "A" and row["rdata"] == old_ip:
wapi.dns_row_update(domain=domain["name"], row_id=row["ID"], rdata=new_ip)
wapi.dns_domain_commit(name=domain["name"])
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
Built Distribution
Close
Hashes for wedos_wapi_client-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c97609330a92d66dbbedbd764ee94af80afbc17708223c73fa3a62c1934b266 |
|
MD5 | 36d7ab60d4abb09eb13f08bedd4bf6ce |
|
BLAKE2b-256 | 68c513f88a63ece801240dcfed3e627f7ba93f0c09550ce679bb92a8417489e0 |