GoDaddy v1 API implementation with secured auth token.
Project description
gopappy
Inspo from here.
Installation
python -m pip install -U gopappy
Usage
Authentication
- Run
gopappy
to setup authentication - Three values are needed to authenticate:
- API Key
- API Secret
- Domain
Adding a DNS record to a domain
# A record
gopappy add-record $DOMAIN -t A -n subdomain -d 127.0.0.1
# CNAME
gopappy add-record $DOMAIN -t CNAME -n www -d $DOMAIN
# TXT
gopappy add-record $DOMAIN -t TXT -n subdomain -d "some text here"
Deleting a DNS record from a domain
gopappy delete-record $DOMAIN -t A -n subdomain
Listing records of a domain
# list all records
gopappy records $DOMAIN
# filter by record type
gopappy records $DOMAIN -t cname
Listing all domains in godaddy account
gopappy domains
# mydomain1.com
# mydomain2.com
Check whether a domain is available to purchase or not
gopappy check $DOMAIN
TODO
- Control for no arguments (e.g., call
--help
)λ gopappy Failed to retrieve environment variables from keyring Enter your GoDaddy API Key: Enter your GoDaddy API Secret: Enter your GoDaddy Domain: testytesterson.com Successfully set environment variables in keyring! Usage: gopappy [OPTIONS] COMMAND [ARGS]... Try 'gopappy --help' for help. ╭─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Missing command. │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
- Add subcommand to manage
auth
- CRUD
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
gopappy-1.8.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file gopappy-1.8.0.tar.gz
.
File metadata
- Download URL: gopappy-1.8.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb1c98d3976135b2b5ac074f87653254dc24b14c7daed17768821755f6703865 |
|
MD5 | 7193042a7806b60bf366099e61b42e4c |
|
BLAKE2b-256 | 519e4836937dc0ef5d5512d1f12cd478c26b7cda1202a0c241c3bf9e8c3178a6 |
File details
Details for the file gopappy-1.8.0-py3-none-any.whl
.
File metadata
- Download URL: gopappy-1.8.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcc45779dd75644a91d07925ff23f9d0eaaf035678ec9871291a03823d0fbf5b |
|
MD5 | 45b41b7ed9a2992c374f8ffc6cc7e8d1 |
|
BLAKE2b-256 | f01dd267238b0b503435cdba9bcfc6d8797503b9619f5da8de386dd9a1bd279a |