Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install simplegist

How to install simplegist

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install simplegist
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.3.2 Available View build log
Linux (64-bit)
0.3.2 Available View build log
 
License
MIT
Dependencies
Imports
Lastest release
version 0.3.2 on Jul 23rd, 2013

Python wrapper for GitHub's Gist.

Features

  • Creating gists returning the url, script and clone link for copy-paste purpose
  • Checkout one's gists - Name(s), Description and Content
  • Edit and Delete a gist
  • Search GitHub user's gist - fork, star and unstar them
  • List-all comments of any gist, make/edit a comment on a gist, delete a comment

Installation

System Message: ERROR/3 (<string>, line 17)

Unknown directive type "code-block".

.. code-block:: bash

    $ pip install 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

System Message: ERROR/3 (<string>, line 29)

Unknown directive type "code-block".

.. code-block:: python

    from simplegist import SimpleGist

    GHgist = Simplegist(username='USERNAME',api_token='API_TOKEN')
    # or provide USERNAME and API_TOKEN in config.py file, so just, GHgist = Gist()

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

    # Lists all the names of authenticated user's gists
    GHgist.profile().listall()

    # Lists only the names of recent two gists of user '_USERNAME'
    GHgist.search('_USERNAME').list(2)

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

    # ...and many more...

Full Usage and Documentation

Visit here READTHEDOCS

Patches and suggestions are welcomed

System Message: ERROR/3 (<string>, line 58)

Unknown directive type "code-block".

.. code-block:: bash

   $ git clone https://github.com/softvar/GistApi-Wrapper-python.git
   $ cd GistApi-Wrapper-python

Subscribe to package updates

Last updated Jul 23rd, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.