Skip to content
Python wrapper for GitHub's Gist API
Failed to load latest commit information.
gistapi still need urllib2 for quoting Mar 31, 2011
.gitignore no MANIFEST Mar 31, 2011
AUTHORS Added Tim Julien to AUTHORS. Jan 10, 2011
HISTORY.rst v0.2.4 Mar 31, 2011
LICENSE New year! Jan 10, 2011 PyPi compatilibity May 16, 2010
README.rst Version Bump! (v0.2.3) Mar 31, 2011 v0.2.4 Mar 31, 2011 (very) basic unit testing Mar 31, 2011
tox.ini no more python3 Mar 31, 2011


This is a Python wrapper for GitHub's Gist API.

Example Usage

from gistapi import Gist, Gists

gist = Gist('d4507e882a07ac6f9f92')
gist.description        # 'Example Gist for'

gist.created_at         # '2010/05/16 10:51:15 -0700'
gist.public             # False
gist.filenames          # ['exampleEmptyFile', 'exampleFile']
gist.files              # {'exampleFile': 'Example file content.', 'exampleEmptyFile': ''}
gist.comments[0].body   # Test Comment.

Gists.fetch_by_user('kennethreitz')[-1].description    # 'My .bashrc configuration'


pip install gistapi

Or, if you must:

easy_install gistapi


  • Implement Gist API methods as they are introduced

  • Possibly use other hacks in the meantime
    • Gist's New Gist method? (Post to web form?)
  • Possibly add command line gist interface

Something went wrong with that request. Please try again.