I really am not a python programmer!!

This commit is contained in:
Carlos Sanchez 2023-04-30 18:18:25 -04:00
parent ebb11e59c6
commit fd72b7072f
3 changed files with 12 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
python34/
junk/
__pycache__/

4
contentapi.py Normal file
View File

@ -0,0 +1,4 @@
class ApiContext:
def __init__(self, endpoint):
self.endpoint = endpoint

View File

@ -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))
context = contentapi.ApiContext(config["api"])
print("Program end")
# Because python reasons
if __name__ == "__main__":
main()