From fd72b7072fd1b97131b976ba42779400af8640e7 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Sun, 30 Apr 2023 18:18:25 -0400 Subject: [PATCH] I really am not a python programmer!! --- .gitignore | 1 + contentapi.py | 4 ++++ main.py | 8 +++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 contentapi.py diff --git a/.gitignore b/.gitignore index e0cd98a..766b870 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ python34/ junk/ +__pycache__/ \ No newline at end of file diff --git a/contentapi.py b/contentapi.py new file mode 100644 index 0000000..8ad47b0 --- /dev/null +++ b/contentapi.py @@ -0,0 +1,4 @@ + +class ApiContext: + def __init__(self, endpoint): + self.endpoint = endpoint diff --git a/main.py b/main.py index a2b2eef..c011919 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,7 @@ import json import logging +import contentapi # The entire config object with all defaults config = { @@ -10,4 +11,9 @@ config = { def main(): print("Program start") logging.debug("Config: " + json.dumps(config, indent = 2)) - print("Program end") \ No newline at end of file + context = contentapi.ApiContext(config["api"]) + print("Program end") + +# Because python reasons +if __name__ == "__main__": + main() \ No newline at end of file