{ "info": { "author": "Eduardo Cuducos", "author_email": "cuducos@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Utilities" ], "description": ".. image:: https://img.shields.io/travis/cuducos/getgist.svg?style=flat\n :target: https://travis-ci.org/cuducos/getgist\n.. image:: https://img.shields.io/coveralls/cuducos/getgist.svg?style=flat\n :target: https://coveralls.io/github/cuducos/getgist\n.. image:: https://img.shields.io/codeclimate/maintainability-percentage/cuducos/getgist.svg\n :target: https://codeclimate.com/github/cuducos/getgist\n.. image:: https://img.shields.io/pypi/v/getgist.svg?style=flat\n :target: https://pypi.python.org/pypi/getgist\n.. image:: https://img.shields.io/pypi/pyversions/getgist.svg?style=flat\n :target: https://pypi.python.org/pypi/getgist\n\nGetGist\n=======\n\nEasily download any file from a `GitHub\nGist `__, with *one single command*.\n\nWhy?\n----\n\nBecause of reasons I do not have a *dotfiles* repository. I prefer to\nstore my ``.vimrc``, ``.gitconfig``, ``.bash_profile`` etc. as\n`Gists `__.\n\nI wrote this script so I could update my *dotfiles* with one single\ncommand: ``getmy .vimrc``, for example \u2014 and it's done.\n\nInstall\n-------\n\n::\n\n $ pip install getgist\n\n*GetGist* works with Python 2.7+ or 3.4+.\n\nTo **update** just run ``$ pip install -U getgist``.\n\nUsage\n-----\n\nGetting Gists from GitHub\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nJust run ``getgist ``. For example:\n\n.. code:: console\n\n $ getgist cuducos .vimrc\n Fetching https://api.github.com/users/cuducos/gists\n Reading https://gist.githubusercontent.com/cuducos/409fac6ac23bf515f495/raw/666d7d01a0058e4fd898ff752db66160f10a60bb/.vimrc\n Saving .vimrc\n Done!\n\n*GetGist* asks you what to do when a local file (with the same name)\nexists. If you decide not to delete your local copy of the file, it will\nbe renamed with extensions such as ``.bkp``, ``.bkp1``, ``.bkp2`` etc.\n\nUpdating Gists at GitHub\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nJust run ``putgist `` to upate the remote Gist with\nthe contents of the local file. It requires an OAuth token (see *Using\nOAuth authentication* below). For example:\n\n.. code:: console\n\n $ putgist cuducos .vimrc\n User cuducos authenticated\n Fetching https://api.github.com/gists\n Sending contents of .vimrc to https://api.github.com/gists/409fac6ac23bf515f495\n Done!\n The URL to this Gist is: https://gist.github.com/cuducos/409fac6ac23bf515f495\n\n*GetGist* asks you what to do when it finds the different files with the\nsame name in different Gists.\n\nUsing OAuth authentication\n--------------------------\n\nWhy?\n~~~~\n\nAdd your `personal access token `__\nas as enviroment variable to allow:\n\n1. the download of private Gists\n2. the update of existing Gists\n\nHow?\n~~~~\n\n1. Get a personal access token with permission to manage your *gists*\n from `GitHub settings `__\n2. Set an environment variable called ``GETGIST_TOKEN`` with your\n personal access token\n\nExample\n~~~~~~~\n\n.. code:: console\n\n $ export GETGIST_TOKEN=whatever1234\n $ getgist cuducos .vimrc\n User cuducos authenticated\n Fetching https://api.github.com/gists\n Reading https://gist.githubusercontent.com/cuducos/409fac6ac23bf515f495/raw/666d7d01a0058e4fd898ff752db66160f10a60bb/.vimrc\n Saving .vimrc\n Done!\n The URL to this Gist is: https://gist.github.com/cuducos/409fac6ac23bf515f495\n\nThis will work even if the file you are trying to download is a private\ngist (surely the user name has to macth the ``GETGIST_TOKEN`` account).\n\nSetting a default user\n----------------------\n\nWhy?\n~~~~\n\nSet a default user to avoid typing your GitHub user name all the time\n\nHow?\n~~~~\n\n1. Set an environment variable called ``GETGIST_USER`` with your GitHub\n username\n2. Use the shortcut ``getmy `` or ``putmy ``\n\nExample\n~~~~~~~\n\n.. code:: console\n\n $ export GETGIST_USER=cuducos\n $ getmy .vimrc\n Fetching https://api.github.com/users/cuducos/gists\n Reading https://gist.githubusercontent.com/cuducos/409fac6ac23bf515f495/raw/666d7d01a0058e4fd898ff752db66160f10a60bb/.vimrc\n Saving .vimrc\n Done!\n The URL to this Gist is: https://gist.github.com/cuducos/409fac6ac23bf515f495\n\nContributing\n------------\n\nFeel free to `report an\nissue `__, `open a pull\nrequest `__, or `drop a\nline `__.\n\nThank you very much `@ddboline `_ and\n`/u/Sean1708 `_ for the contributions!\n\nDon't forget to format your code with `Black `_, and to write and run tests:\n\n.. code:: console\n\n $ pip install tox\n $ tox", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/cuducos/getgist", "keywords": "gist", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "getgist", "package_url": "https://pypi.org/project/getgist/", "platform": "", "project_url": "https://pypi.org/project/getgist/", "project_urls": { "Homepage": "http://github.com/cuducos/getgist" }, "release_url": "https://pypi.org/project/getgist/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "CLI to update local and remote files from GitHub gists", "version": "0.1.3" }, "last_serial": 5156984, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "522ccf9f20464347a8e0bb233764c47b", "sha256": "3011b6c53d05e8a84807ddd3f0c2dfea68f8f0ad84a73243bebf3355ca2f020e" }, "downloads": -1, "filename": "GetGist-0.0.1.tar.gz", "has_sig": false, "md5_digest": "522ccf9f20464347a8e0bb233764c47b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3263, "upload_time": "2015-04-14T21:31:16", "url": "https://files.pythonhosted.org/packages/88/25/9bce0b62d926e1c28b108aecdf7fcf74aa8ecb29b9738e07dce22e562f1b/GetGist-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "040512b3728c7b163757c73d67922c77", "sha256": "e6310ff8f3a722af40a514f11990f011cf9af2ff97bfe9dedf6ba86299c004d2" }, "downloads": -1, "filename": "GetGist-0.0.2.tar.gz", "has_sig": false, "md5_digest": "040512b3728c7b163757c73d67922c77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3434, "upload_time": "2015-07-06T16:39:14", "url": "https://files.pythonhosted.org/packages/95/03/764f3c93095673974fdde122d525d76d3131c954180892001c6cc6d8c960/GetGist-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "93ce42aa48222efcfd5a2d942e17bd2f", "sha256": "50d0ddcf979489fcc3982fa033de6e9e8c9c22fdd76720c8a73f92c11ad9086b" }, "downloads": -1, "filename": "getgist-0.0.3.tar.gz", "has_sig": false, "md5_digest": "93ce42aa48222efcfd5a2d942e17bd2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3852, "upload_time": "2015-07-06T21:43:34", "url": "https://files.pythonhosted.org/packages/d4/d5/c70bda9f0e4d92872d7fcab90b2f7be59c44e49dbffcad42b2a686779045/getgist-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "88c36f8f5b72d5a18ad0a6c7604cf355", "sha256": "2bca086fd52d0312f492898ad0e076bd0716cbee425a3885779095d46b6fdb7c" }, "downloads": -1, "filename": "getgist-0.0.4.tar.gz", "has_sig": false, "md5_digest": "88c36f8f5b72d5a18ad0a6c7604cf355", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2349, "upload_time": "2015-07-07T09:48:23", "url": "https://files.pythonhosted.org/packages/1b/5e/f53429293ce2ca5932401c3fb3b2a750cbefab320dfc8e54ef11b5c49225/getgist-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "2747e9d7b838f4662c319e422d2e8d7c", "sha256": "8a389e81b0f2e2ba481e0218f97251ce373581e1dd22cb03dde542609c9fd2c1" }, "downloads": -1, "filename": "getgist-0.0.5.tar.gz", "has_sig": false, "md5_digest": "2747e9d7b838f4662c319e422d2e8d7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3050, "upload_time": "2015-08-05T18:21:07", "url": "https://files.pythonhosted.org/packages/be/e7/58757954a3c5b9230d42c7aa9793f21cbd70e8aec4548ce869b8b8dea66d/getgist-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "af41dbfa7de59f67fc419e13abd86daf", "sha256": "a8247f65c1baa04190ed0a01c7d6e2b77654be5c80c476814047268010001383" }, "downloads": -1, "filename": "getgist-0.0.6.tar.gz", "has_sig": false, "md5_digest": "af41dbfa7de59f67fc419e13abd86daf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3228, "upload_time": "2015-08-06T18:41:53", "url": "https://files.pythonhosted.org/packages/1d/18/f7222216c26762d6773200393eb00e76a910d5ca01793cadae970e0a117b/getgist-0.0.6.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "2d9d71415f1325b4ecd7f94fc4b86e22", "sha256": "03f82b41b74def21359397d62c0f28769613d32353b3e87cc0124a25f8802acf" }, "downloads": -1, "filename": "getgist-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2d9d71415f1325b4ecd7f94fc4b86e22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6791, "upload_time": "2016-01-18T12:48:48", "url": "https://files.pythonhosted.org/packages/28/94/7fc106c29fdd9b866f31c0a52edcbcdf0bc91aceccad6eacde5d19a406f4/getgist-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "77ea49cf1075eedac4149e854f3473a2", "sha256": "a48a21e047b7f54534d220018cf88b900111a7c71c8a2940570c1a70293c24bf" }, "downloads": -1, "filename": "getgist-0.1.1.tar.gz", "has_sig": false, "md5_digest": "77ea49cf1075eedac4149e854f3473a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6792, "upload_time": "2016-07-30T16:45:47", "url": "https://files.pythonhosted.org/packages/60/5e/0d327ff54c7118147d3b80c0a0bf3aa77c7204fdd13d48934729a20fd298/getgist-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ddf50a6a56c7bed122be9e1b03b671cf", "sha256": "e8bbe8fa22373804281c3536a76a5fd5f22233bdc861c4130109d53e5a05e65a" }, "downloads": -1, "filename": "getgist-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ddf50a6a56c7bed122be9e1b03b671cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6832, "upload_time": "2017-07-01T12:42:13", "url": "https://files.pythonhosted.org/packages/ca/69/52c6a6a8c96eae294f5d4f7f653b429d2ca0c6a5188921625f3988c65fb0/getgist-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "cbb82ba3e5b6ebd5814a0089e854a821", "sha256": "78867e3fd937df6a57caa111dced51ec51cfb654708ec0d793ccf0c53861eafe" }, "downloads": -1, "filename": "getgist-0.1.3.tar.gz", "has_sig": false, "md5_digest": "cbb82ba3e5b6ebd5814a0089e854a821", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9670, "upload_time": "2019-04-17T20:39:52", "url": "https://files.pythonhosted.org/packages/76/77/dd3b376f2e33534316f61fe62c579e6b3c3fce75246c1292cf7dcffd3116/getgist-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cbb82ba3e5b6ebd5814a0089e854a821", "sha256": "78867e3fd937df6a57caa111dced51ec51cfb654708ec0d793ccf0c53861eafe" }, "downloads": -1, "filename": "getgist-0.1.3.tar.gz", "has_sig": false, "md5_digest": "cbb82ba3e5b6ebd5814a0089e854a821", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9670, "upload_time": "2019-04-17T20:39:52", "url": "https://files.pythonhosted.org/packages/76/77/dd3b376f2e33534316f61fe62c579e6b3c3fce75246c1292cf7dcffd3116/getgist-0.1.3.tar.gz" } ] }