Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Python wrapper for Gist

Project description

Python wrapper for GitHub's Gist API.

Latest Version Downloads


  • Create Gists and get url, script and clone link on success (can be used for copy-paste purpose too)
  • View one’s Gist(s) - name, description and it’s content
  • Edit and Delete a gist
  • Search Gist(s) of any user; fork, star and unstar them
  • List all comments on any Gist, put/edit/delete a comment on a Gist


$ pip install simplegist

Download here and run python install after changing directory to /simplegist

Generating Github API Access Token

Go to Github’s Account settings > Applications Create a new token and use it for making API requests instead of password

Example Usage

from simplegist import Simplegist

ghGist = Simplegist(username='USERNAME', api_token='API_TOKEN')
# or provide USERNAME and API_TOKEN in file, so just, ghGist = Gist()

# creating gist and getting url, script and clone link
ghGist.create(name='_GISTNAME', description='_ANY_DESCRIPTION', public=1, content='_CONTENT_GOES_HERE')

# List down all the names of authenticated user's Gists

# List down only the names of recent two Gists of user '_USERNAME''_USERNAME').list(2)

# List down all the comments on gist named '_GISTNAME' of user 'USERNAME'
ghGist.comments().listall(user='_USERNAME', name='_GISTNAME')

# ...and many more...

Full Usage and Documentation


Patches and suggestions are welcome

$ git clone
$ cd simplegist

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for simplegist, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size simplegist-1.0.1.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page