{ "info": { "author": "Pradipta Bora", "author_email": "pradd@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "PythonGists: A Python Module to create and access GitHub Gists\n--------------------------------------------------------------\n\nPythonGists is a Python 2/3 module to create, view and access data from\nGitHub Gists. It uses requests and oauth to function and is based on the\nGitHub v3 API.\n\nWhy PythonGists?\n~~~~~~~~~~~~~~~~\n\nThere are numerous Python modules available for the GitHub v3 API but\nPythonGists is different. For starters, it is aimed only at the Gists\npart of the GitHub API and not the entire API. And it will never feature\nnon Gists part of the GitHub API.\n\nSo you might be thinking that you could have used python3-github or any\nother module for Gists. Technically, you could but PythonGistss is more\nspecific. In Systems where saving even a tiny amount of space matters\n(like your VPS), PythonGistss will take less space and do the same\n(provided you only want GitHub Gists Access).\n\nNote\n~~~~\n\nThis module is not to be confused with PyGist which is just a CLI. This\nis a python module (actually I would have picked up a different name if\nI knew about that module)\n\nInstallation\n~~~~~~~~~~~~\n\nInstallation is done through PIP:\n\n::\n\n pip install PythonGists\n\nUsage\n~~~~~\n\nYou can use PythonGists either by signing into GitHub or anonymously.\nNote that the syntax for logged in usage and anonymous usage is\ndifferent. Here are some demos:\n\nCreate Gist Anonymously\n'''''''''''''''''''''''\n\n.. code:: python\n\n from PythonGists import PythonGists\n link = PythonGists.Gist(description='a sample gist',content='Hey GitHub',name='demo.txt')\n\n print(\"The link is {0}\".format(link))\n\nCreate Gist as a logged in user\n'''''''''''''''''''''''''''''''\n\n.. code:: python\n\n from PythonGists import PythonGists\n gistObject=PythonGists(username='youruser',password='somepass')\n print(gistObject.createGist(description='a sample gist',content='Hey GitHub',name='demo.txt'))\n 'This will print the link'\n\nCreate Gist from File Anonymously\n'''''''''''''''''''''''''''''''''\n\n.. code:: python\n\n from PythonGists import PythonGists\n link = PythonGists.GistFromFile(description='a sample gist',file='demo.py')\n\n print(\"The link is {0}\".format(link))\n\nCreate Gist from File (logged in)\n'''''''''''''''''''''''''''''''''\n\n.. code:: python\n\n from PythonGists import PythonGists\n gistObject=PythonGists(username='youruser',password='somepass')\n print(gistObject.createGistFromFile(description='a sample gist',file='demo.py'))\n 'This will print the link'\n\nGet User Gists Links (same for both)\n''''''''''''''''''''''''''''''''''''\n\nHere just replace GitHubGist in the print line with your gistObject for\nlogged in users.\n\n.. code:: python\n\n from PythonGists import PythonGists\n print(PythonGists.getGistsLinks('geekpradd'))\n\nGet User Gists Data (same for both)\n'''''''''''''''''''''''''''''''''''\n\nHere just replace GitHubGist in the print line with your gistObject for\nlogged in users.\n\n.. code:: python\n\n from PythonGists import PythonGists\n gistArray = PythonGists.getGistsData('geekpradd')\n\nNote that gistArray will contain objects of the Gist Class which has\naccess to the Gist data. Now, I'll show you how to access Gist data from\nthe Gist Object.\n\nGet Single Gist Data\n''''''''''''''''''''\n\n``python from PythonGists import Gist gistObj = Gist('https://gist.github.com/geekpradd/a3e7a590887cf7bbf161') print (gistObj.getFileContent()) #Will retutn a Dictionary with keys = File names and values = file content``\n\nAbout\n~~~~~\n\nThis module is created by Pradipta (geekpradd) using the GitHub API and\nrequests.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/geekpradd/PythonGists", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "PythonGists", "package_url": "https://pypi.org/project/PythonGists/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PythonGists/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/geekpradd/PythonGists" }, "release_url": "https://pypi.org/project/PythonGists/1.1.3/", "requires_dist": null, "requires_python": null, "summary": "A Python Module to create and access GitHub Gists", "version": "1.1.3" }, "last_serial": 1421857, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "1ffe6fb9d472f9c5e83c6cd20e5d299c", "sha256": "dc3774babc48353c24c4875d24bf2a61e736b5be03f821c31f216a4a3ac6909a" }, "downloads": -1, "filename": "PythonGists-1.0.3.tar.gz", "has_sig": false, "md5_digest": "1ffe6fb9d472f9c5e83c6cd20e5d299c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2409, "upload_time": "2015-02-13T06:53:10", "url": "https://files.pythonhosted.org/packages/58/db/a55e51ce46d85ed7cfa4e4eff0d5d164bce759b64a232942a500e7851e41/PythonGists-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "40c70801c0aa95ddb2c3944439748cc8", "sha256": "b8ac6ba3a11d7c84ae4dc3c89629718387d80537ec949a1a8954e3851590e722" }, "downloads": -1, "filename": "PythonGists-1.0.4.tar.gz", "has_sig": false, "md5_digest": "40c70801c0aa95ddb2c3944439748cc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2411, "upload_time": "2015-02-13T07:03:28", "url": "https://files.pythonhosted.org/packages/bd/85/5f7db0550b05770cbe8370ee653f01f325c9a75f3dff7e05f33f6a6aad99/PythonGists-1.0.4.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "6a038df9c05983761bc835f032dcaa55", "sha256": "b1858d4a8af0be577f56cdda3972f95a4a11bfd01b28a141bac562358b4d62b8" }, "downloads": -1, "filename": "PythonGists-1.1.tar.gz", "has_sig": false, "md5_digest": "6a038df9c05983761bc835f032dcaa55", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2567, "upload_time": "2015-02-13T07:39:31", "url": "https://files.pythonhosted.org/packages/17/13/e953728d23d48246df630c5c436cb1fde1e78bf302f3394cc3867f3718ee/PythonGists-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "50d1a5aabdbafb452e728d90e475fa13", "sha256": "a2e2c95a04f055752effc7fae620bd26f6de46e09bc98c8c30b252c28dc518eb" }, "downloads": -1, "filename": "PythonGists-1.1.1.tar.gz", "has_sig": false, "md5_digest": "50d1a5aabdbafb452e728d90e475fa13", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3797, "upload_time": "2015-02-13T07:40:23", "url": "https://files.pythonhosted.org/packages/26/d2/ded987c6c454523a98ebcf860b6d24ce996cf64039cee38f473af2f08ec0/PythonGists-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "a17d06938cb9c6c37a589ba2067e5b00", "sha256": "cd0be232ac731ef2b966b772018e9f2064dac721e52d6a611a452d91ef09a130" }, "downloads": -1, "filename": "PythonGists-1.1.2.tar.gz", "has_sig": false, "md5_digest": "a17d06938cb9c6c37a589ba2067e5b00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3790, "upload_time": "2015-02-13T07:42:19", "url": "https://files.pythonhosted.org/packages/69/47/1d96b19bedd12ceb0b974389c1ffacd341b182a74dc232088f431737063e/PythonGists-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "cfd0a8f61f35a2b753e70d50154235f0", "sha256": "e9e4e087ef9286d7b648fceab2c004502e3ea7edb9deec5328f8a73934554bd8" }, "downloads": -1, "filename": "PythonGists-1.1.3.tar.gz", "has_sig": false, "md5_digest": "cfd0a8f61f35a2b753e70d50154235f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3794, "upload_time": "2015-02-13T11:05:46", "url": "https://files.pythonhosted.org/packages/b1/49/e2f51f644adfe74f99b26da843c98c2e68b46aee1f45282e86ee98a801f2/PythonGists-1.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cfd0a8f61f35a2b753e70d50154235f0", "sha256": "e9e4e087ef9286d7b648fceab2c004502e3ea7edb9deec5328f8a73934554bd8" }, "downloads": -1, "filename": "PythonGists-1.1.3.tar.gz", "has_sig": false, "md5_digest": "cfd0a8f61f35a2b753e70d50154235f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3794, "upload_time": "2015-02-13T11:05:46", "url": "https://files.pythonhosted.org/packages/b1/49/e2f51f644adfe74f99b26da843c98c2e68b46aee1f45282e86ee98a801f2/PythonGists-1.1.3.tar.gz" } ] }