qcs-python/main.py

20 lines
458 B
Python
Raw Normal View History

2023-04-30 22:13:02 +00:00
import json
import logging
2023-04-30 22:18:25 +00:00
import contentapi
2023-04-30 22:13:02 +00:00
# The entire config object with all defaults
config = {
2023-04-30 22:49:30 +00:00
"api" : "https://oboy.smilebasicsource.com/api",
"tokenfile" : ".qcstoken"
2023-04-30 22:13:02 +00:00
}
def main():
print("Program start")
logging.debug("Config: " + json.dumps(config, indent = 2))
2023-04-30 22:57:50 +00:00
context = contentapi.ApiContext(config["api"], logging)
2023-04-30 22:18:25 +00:00
print("Program end")
# Because python reasons
if __name__ == "__main__":
main()