Skip to main content

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

History

0.2.4 (2011-03-31)

0.2.3 (2011-03-31)

  • Added Gist Comments support

0.2.2 (2011-01-10)

  • Updated filename handling for special filenames

0.2.1 (2010-09-01)

  • StringIO support for Files

  • Added Install Requirements for Pip

0.2.0 (2010-08-28)

  • Support for Add, Rename, Modify, and Delete of Files!

  • Proper Unicode Support

  • Proper DateTime Support

  • Improved Caching

  • Urllib2 Support

  • PEP 008/257 Compliance

  • Secret .pibb URL Attribute for gists :)

  • Misc. Refactors

0.1.4 (2010-08-18)

  • Python 2.5 fix

0.1.3 (2010-06-14)

  • Nose-test fix

0.1.2 (2010-05-16)

  • URL Generation BugFix

  • Updated versioning

  • Metadata refactoring

  • General Bugfixes

0.1.1 (2010-05-16)

  • PyPi Compatibility Changes

  • Documentation Updates

  • Added DocTests

0.1.0 (2010-05-16)

  • Initial Release

Release files for gistapi 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gistapi 0.2.4
File Size Uploaded
gistapi-0.2.4.tar.gz 4.5 kB Details

Release files / gistapi-0.2.4.tar.gz

Download URL gistapi-0.2.4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
67b73d25df129f624d539dd866c4ac8f2d641310cd0482a39bd28bd84f797206
BLAKE2b-256 checksum
How to use checksums
72652f3208416db0ee02ac173535bb4037838f206b0092e74ec4fc4306d38505
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page