Skip to main content

Domain monitoring & registration with AWS route53

Project description

Domain monitoring & registration with AWS route53

build License python_version pypi_v

Usage

Show help message and exit

dm53 --help

Check availability of a domain

dm53 check --domain-name example.com

Note: Make sure AWS credentials are configured, following example uses env variables

AWS_ACCESS_KEY_ID=my-access-key \
AWS_SECRET_ACCESS_KEY=my-secret-access-key \
dm53 check --domain-name example.com

for more details see boto3 docs

Keep checking with a 5 seconds interval until the domain becomes available

dm53 check --domain-name example.com --monitor --interval 5

Register a domain if available

dm53 check --domain-name example.com --register --path /path/to/registration-details.json

Note: Registration details must be provided through a JSON file, see this example or read more in AWS docs

Run in background to ignore hangup signal with nohup, forward output to examplecom.out

nohup dm53 check --domain-name example.com --monitor > examplecom.out 2>&1 &

Note: The nohup command prints a shell job ID and a process ID. Terminate the process with kill -9 <PID>.

Contributing

Contributions are welcome via pull requests.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Develop

Activate virtual environment

poetry shell

Install dependencies

poetry install --remove-untracked

Install git hooks

pre-commit install --hook-type pre-commit

Run linter

flake8 .

Format code

black .

Sort imports

isort .

Install current project from branch

poetry add git+https://github.com/MousaZeidBaker/dm53.git#branch-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

dm53-0.2.2.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

dm53-0.2.2-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

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