{ "info": { "author": "Noah Gilmore", "author_email": "noah.w.gilmore@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools" ], "description": "# simplegit\nA python module for simple interaction with git via subprocess.\n\n### How?\n```\n# pip install simplegit\n```\n(note: this doesn't work via pip yet. Working on that.)\n```python\nfrom simplegit import Git\ngit = Git()\noutput_lines, returncode, error_lines = git.status()\n```\n\n### Why?\nIn personal projects, I always find myself writing scripts to automate parts of the development process. One example is checking out a `gh-pages` branch for a Github Pages website, pushing to `gh-pages`, then checking out `master` again - usually I have a script called `push.py` which automates this. If you're conditionally ignoring files based on the branch, you have even more processing to do (including extra commits). It's kind of clumsy to execute these git commands using python's `subprocess`, so simplegit provides a nice wrapper.\n\n### How does it work?\nThe `Git` class form simplegit simply takes a call to it (for example `Git().status(\"-s\")`), builds a subprocess command, executes it, and returns the relevant information. Any git command (e.g. status, commit, push, pull) is available, since the python object blindly proxies the function name to build the command (e.g. `git.add(\"-A\")` -> `git add -A`). Some examples:\n\n```python\nlines, rtncode, err_lines = git.status(\"-s\")\nlines, rtncode, err_lines = git.commit(\"-m 'A fun message'\")\n```\n\nIf you need to call a git command that would produce a python syntax error, like ls-files, you can use `Git().call`:\n\n```python\ngit.call(\"ls-files\", \"--others --exclude-standard\")\n```\n\n### Contributing\nRight now, this is just a one-off side project that I started. If you'd like to contribute or have ideas, pull requests are welcome!", "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/noahsark769/simplegit", "keywords": "git build tools", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "simplegit", "package_url": "https://pypi.org/project/simplegit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/simplegit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/noahsark769/simplegit" }, "release_url": "https://pypi.org/project/simplegit/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "A python module for simple interaction with git via subprocess", "version": "0.0.1" }, "last_serial": 1909477, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c7a9e4947a565961a3d1a389a0a119cb", "sha256": "194692972e98a84bb8d0ef023de9204fefe97461ffa84eb462d5ee39ce3d921a" }, "downloads": -1, "filename": "simplegit-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c7a9e4947a565961a3d1a389a0a119cb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4562, "upload_time": "2016-01-18T08:11:05", "url": "https://files.pythonhosted.org/packages/a3/08/6a0d8c2cf15c4635cafcd1c9bd1351c251c6e0a9ddbff9db5d288ad1fd95/simplegit-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b660ec979e792888da2bd09e40e650f9", "sha256": "49a1257bc7c0b60b66fb6399292c91b11dca16fcde202fa4b49ed1826936479e" }, "downloads": -1, "filename": "simplegit-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b660ec979e792888da2bd09e40e650f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3105, "upload_time": "2016-01-18T08:11:11", "url": "https://files.pythonhosted.org/packages/a1/e3/caecf11eabed0a21883aab19ee25950988d330141f34a89bf82f1b77c57a/simplegit-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c7a9e4947a565961a3d1a389a0a119cb", "sha256": "194692972e98a84bb8d0ef023de9204fefe97461ffa84eb462d5ee39ce3d921a" }, "downloads": -1, "filename": "simplegit-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c7a9e4947a565961a3d1a389a0a119cb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4562, "upload_time": "2016-01-18T08:11:05", "url": "https://files.pythonhosted.org/packages/a3/08/6a0d8c2cf15c4635cafcd1c9bd1351c251c6e0a9ddbff9db5d288ad1fd95/simplegit-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b660ec979e792888da2bd09e40e650f9", "sha256": "49a1257bc7c0b60b66fb6399292c91b11dca16fcde202fa4b49ed1826936479e" }, "downloads": -1, "filename": "simplegit-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b660ec979e792888da2bd09e40e650f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3105, "upload_time": "2016-01-18T08:11:11", "url": "https://files.pythonhosted.org/packages/a1/e3/caecf11eabed0a21883aab19ee25950988d330141f34a89bf82f1b77c57a/simplegit-0.0.1.tar.gz" } ] }