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