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
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 wedos_wapi_client-0.1.1.tar.gz.
File metadata
- Download URL: wedos_wapi_client-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-91-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc5aba04581cc5d98a165f683a282e4aa741a3a175c8d7671173e8d18bbfdd00
|
|
| MD5 |
83b46badfb4d161f31bf803b2eaba6eb
|
|
| BLAKE2b-256 |
3ba142bb46bcbda8b3d3f1d6fa4ace5ca866f87a255fc68083b29ae429eba3c9
|
File details
Details for the file wedos_wapi_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wedos_wapi_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-91-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c97609330a92d66dbbedbd764ee94af80afbc17708223c73fa3a62c1934b266
|
|
| MD5 |
36d7ab60d4abb09eb13f08bedd4bf6ce
|
|
| BLAKE2b-256 |
68c513f88a63ece801240dcfed3e627f7ba93f0c09550ce679bb92a8417489e0
|