feat: add main entrypoint with skeleton code
This commit is contained in:
parent
32ce865607
commit
ebfc2ededc
1 changed files with 27 additions and 0 deletions
27
dnsupdate.py
Normal file
27
dnsupdate.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""A script which sends a Dynamic DNS update to the Ionos API."""
|
||||
|
||||
from pathlib import Path
|
||||
import requests
|
||||
from yaml import load
|
||||
try:
|
||||
from yaml import CLoader as Loader
|
||||
except ImportError:
|
||||
from yaml import Loader
|
||||
|
||||
|
||||
def main():
|
||||
path_to_config_file = Path("config.yml").resolve()
|
||||
|
||||
# TODO Check if config file exists
|
||||
|
||||
# TODO parse config file
|
||||
|
||||
# TODO retrieve DNS update URL
|
||||
|
||||
# TODO send update
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Add table
Reference in a new issue