Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennethreitz/gistapi.py
Python wrapper for GitHub's Gist API
https://github.com/kennethreitz/gistapi.py
Last synced: about 2 months ago
JSON representation
Python wrapper for GitHub's Gist API
- Host: GitHub
- URL: https://github.com/kennethreitz/gistapi.py
- Owner: kennethreitz
- License: mit
- Created: 2010-05-07T19:46:48.000Z (over 14 years ago)
- Default Branch: develop
- Last Pushed: 2022-04-12T19:20:54.000Z (over 2 years ago)
- Last Synced: 2024-06-28T22:04:11.535Z (3 months ago)
- Language: Python
- Homepage: http://gist.github.com
- Size: 1.34 MB
- Stars: 57
- Watchers: 4
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE
Awesome Lists containing this project
README
GistAPI.py
==========This is a Python wrapper for GitHub's Gist API.
http://develop.github.com/p/gist.html
Example Usage
-------------::
from gistapi import Gist, Gists
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.', 'exampleEmptyFile': ''}
gist.comments[0].body # Test Comment.Gists.fetch_by_user('kennethreitz')[-1].description # 'My .bashrc configuration'
Installation
------------pip install gistapi
Or, if you must:easy_install gistapi
Roadmap
-------* 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