I really am not a python programmer!!
This commit is contained in:
parent
ebb11e59c6
commit
fd72b7072f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
python34/
|
||||
junk/
|
||||
__pycache__/
|
4
contentapi.py
Normal file
4
contentapi.py
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
class ApiContext:
|
||||
def __init__(self, endpoint):
|
||||
self.endpoint = endpoint
|
8
main.py
8
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")
|
||||
context = contentapi.ApiContext(config["api"])
|
||||
print("Program end")
|
||||
|
||||
# Because python reasons
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Reference in New Issue
Block a user