https://pypi.org/project/python-gist/
You will need an access token from GitHub for python-gist, you can get one under
Settings > Developper Settings > Personal access tokens
Create a .gist file under your HOME folder like this:
[gist]
token: yourtoken