Skip to content

Commit a679f53

Browse files
committed
a final release of 0.1
1 parent 262abf9 commit a679f53

14 files changed

+113
-16
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Installation
1616
-------------
1717
.. code-block:: bash
1818
19-
$ pip install gists
19+
$ pip install simplegist
2020
2121
Generating Github API Access Token
2222
----------------------------------

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.rst

setup.py

+21-15
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11

22
import sys
3-
from distutils.core import setup
3+
from setuptools import setup
44

55
required = ['requests']
66

77

88
if sys.version_info[:2] < (2,6):
99
required.append('simplejson')
1010

11-
setup(
12-
name = 'gist',
13-
packages = ['gist'],
14-
version = '0.1',
15-
install_requires=required,
16-
description = 'Python wrapper for Gist ',
17-
long_description=open('README.rst').read(),
18-
author = 'Varun Malhotra',
19-
author_email = '[email protected]',
20-
url = 'https://github.com/softvar/gist',
21-
download_url = 'https://github.com/softvar/GistApi-Wrapper-python/tarball/0.1', keywords = ['gist', 'github', 'API'], # arbitrary keywords
22-
license = 'MIT',
23-
classifiers = [],
24-
)
11+
setup(
12+
name = 'simplegist',
13+
packages = ['simplegist'],
14+
version = '0.1',
15+
install_requires=required,
16+
description = 'Python wrapper for Gist ',
17+
long_description=open('README.rst').read(),
18+
author = 'Varun Malhotra',
19+
author_email = '[email protected]',
20+
url = 'https://github.com/softvar/gist',
21+
download_url = 'https://github.com/softvar/GistApi-Wrapper-python/tarball/0.1',
22+
keywords = ['gist', 'github', 'API'],
23+
license = 'MIT',
24+
classifiers = (
25+
"Programming Language :: Python",
26+
"Programming Language :: Python :: 2.5",
27+
"Programming Language :: Python :: 2.6",
28+
"Programming Language :: Python :: 2.7",
29+
),
30+
)

simplegist.egg-info/PKG-INFO

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
Metadata-Version: 1.1
2+
Name: simplegist
3+
Version: 0.1
4+
Summary: Python wrapper for Gist
5+
Home-page: https://github.com/softvar/gist
6+
Author: Varun Malhotra
7+
Author-email: [email protected]
8+
License: MIT
9+
Download-URL: https://github.com/softvar/GistApi-Wrapper-python/tarball/0.1
10+
Description: GistApi-Wrapper-python
11+
======================
12+
13+
Python wrapper for ``GitHub's Gist``.
14+
15+
Features
16+
--------
17+
18+
* Creating gists returning the url, script and clone link for copy-paste purpose
19+
* Checkout one's gists - Name(s), Description and Content
20+
* Edit and Delete a gist
21+
* Search GitHub user's gist - fork, star and unstar them
22+
* List-all comments of any gist, make/edit a comment on a gist, delete a comment
23+
24+
Installation
25+
-------------
26+
.. code-block:: bash
27+
28+
$ pip install simplegist
29+
30+
Generating Github API Access Token
31+
----------------------------------
32+
Go to Github's Account settings > Applications
33+
``Create a new token`` and use it for making API requests instead of password
34+
35+
Example Usage
36+
-------------
37+
38+
.. code-block:: python
39+
40+
from gist import Gist
41+
42+
GHgist = Gist(username='USERNAME',api_token='API_TOKEN')
43+
# or provide USERNAME and API_TOKEN in config.py file, so just, GHgist = Gist()
44+
45+
# creating gist and returning url, script, clone link
46+
GHgist.create(name='Test.py', description='just testing it', public=1, content='print "Yay! Test Passed" ')
47+
48+
# Lists all the names of authenticated user's gists
49+
GHgist.profile().listall()
50+
51+
# Lists only the names of recent two gists of user 'softvar'
52+
GHgist.search('softvar').list(2)
53+
54+
# Lists all the comments on gist named 'bootstrap-min.css' of user 'softvar'
55+
GHgist.comments().listall(user='softvar',name='bootstrap-min.css')
56+
57+
# ...and many more...
58+
59+
Patches and suggestions are welcomed
60+
------------------------------------
61+
62+
.. code-block:: bash
63+
64+
$ git clone https://github.com/softvar/GistApi-Wrapper-python.git
65+
$ cd GistApi-Wrapper-python
66+
Keywords: gist,github,API
67+
Platform: UNKNOWN
68+
Classifier: Programming Language :: Python
69+
Classifier: Programming Language :: Python :: 2.5
70+
Classifier: Programming Language :: Python :: 2.6
71+
Classifier: Programming Language :: Python :: 2.7

simplegist.egg-info/SOURCES.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
MANIFEST.in
2+
README.rst
3+
setup.cfg
4+
setup.py
5+
simplegist/__init__.py
6+
simplegist/comments.py
7+
simplegist/config.py
8+
simplegist/do.py
9+
simplegist/gist.py
10+
simplegist/mygist.py
11+
simplegist.egg-info/PKG-INFO
12+
simplegist.egg-info/SOURCES.txt
13+
simplegist.egg-info/dependency_links.txt
14+
simplegist.egg-info/requires.txt
15+
simplegist.egg-info/top_level.txt
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

simplegist.egg-info/requires.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
requests

simplegist.egg-info/top_level.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
simplegist
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)