Use this module to interact with (mostly yours) gists!
Require Python >=3.6 (f-strings)
pip3 install gist-control
# app.py
import os
from dotenv import load_dotenv
load_dotenv()
from gist_control import Gist
gctrl = Gist( os.getenv("oauth-token") )
# .env
oauth-token=ghp_bozbegz...ege
Check examples here