diff --git a/scripts/loggorilla.py b/scripts/loggorilla.py new file mode 100644 index 0000000..ea76d63 --- /dev/null +++ b/scripts/loggorilla.py @@ -0,0 +1,13 @@ +import datetime + +def prcss(loc, msg): + print(f"[loggorilla][{datetime.datetime.now()}][\033[32mprcss\033[39m][\033[95m{loc}\033[39m] {msg}", flush=True) + +def accss(loc, msg): + print(f"[loggorilla][{datetime.datetime.now()}][\033[36maccss\033[39m][\033[95m{loc}\033[39m] {msg}", flush=True) + +def fyinf(loc, msg): + print(f"[loggorilla][{datetime.datetime.now()}][\033[93mfyinf\033[39m][\033[95m{loc}\033[39m] {msg}", flush=True) + +def error(loc, msg): + print(f"[loggorilla][{datetime.datetime.now()}][\033[31merror\033[39m][\033[95m{loc}\033[39m] {msg}", flush=True) diff --git a/scripts/synthesai.py b/scripts/synthesai.py new file mode 100644 index 0000000..53fcde1 --- /dev/null +++ b/scripts/synthesai.py @@ -0,0 +1,14 @@ +import requests + +def generate(auth, payload): + url = "https://api.synthesia.io/v2/videos" + headers = { "Authorization" : auth, "accept" : "application/json", "content-type" : "application/json" } + response = requests.post(url, json=payload, headers=headers) + return response + +def retrieve(auth, video_id): + url = f"https://api.synthesia.io/v2/videos/{video_id}" + headers = { "Authorization": auth, "accept": "application/json" } + response = requests.get(url, headers=headers) + return response +