GistAPI.py v0.1 Released

Today I released GistAPI.py v0.1.2. It features a highly-optimized Gist object model and API wrapper which allows you to consume Gists in your next Python application.

GitHub just rolled out a miniature pre-release of the Gist API last month, so API functionality is pretty limited at the moment. More features will be added as soon as the API is updated.

Usage

1
2
3
4
5
6
7
8
9
from gistapi import *
 
gist = Gist('d4507e882a07ac6f9f92')
 
gist.description          # 'Example Gist for gist.py'
gist.created_at           # '2010/05/16 10:51:15 -0700'
gist.public               # False
gist.filenames            # ['exampleEmptyFile', 'exampleFile']
gist.files['exampleFile'] # 'Example file content.'

Source on GitHub

2 Tweets

2 FEEDBACKS

  1. [...] This post was mentioned on Twitter by Planet Python. Planet Python said: Kenneth Reitz: GistAPI.py v0.1 Released http://bit.ly/bG6fXR [...]

LEAVE A COMMENT

Additional comments powered by BackType