Skip to main content

WEDOS WAPI client

Project description

wedos-wapi-client

Wrapper around WEDOS WAPI

(Note: WAPI must be enabled for your account 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wedos_wapi_client-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wedos_wapi_client-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file wedos_wapi_client-0.1.0.tar.gz.

File metadata

  • Download URL: wedos_wapi_client-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/5.15.0-89-generic

File hashes

Hashes for wedos_wapi_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d0066a708a72f6575354e21b245f3bf5ebb1aff1e47a1495b84b77c486c35743
MD5 167aa457629dcc6b7cd56e7ed54156f8
BLAKE2b-256 80eb700f4b756f2bf7995adfd790c50b6c77835a41f9d48cae10e2ed52ef6e00

See more details on using hashes here.

File details

Details for the file wedos_wapi_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wedos_wapi_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/5.15.0-89-generic

File hashes

Hashes for wedos_wapi_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 495c91a489cf6b1027ca8c8c8dc9f6d57e1ac24ad4254985bde08e5d06501822
MD5 4ff63f1888ea5fd867c5f0c717cf68eb
BLAKE2b-256 33f1ff7a96d5b3da6e20b2a5a5433a12719657f2ce019f22185a52bad54e6648

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page