{ "info": { "author": "Kenny Zhang", "author_email": "sphy@foxmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools" ], "description": "gitcmd\n===================\n\n.. image:: https://img.shields.io/pypi/v/gitcmd.svg\n :target: https://pypi.python.org/pypi/gitcmd\n :alt: PyPI Version\n\n.. image:: https://img.shields.io/pypi/dm/gitcmd.svg\n :target: https://pypi.python.org/pypi/gitcmd\n :alt: PyPI Monthly downloads\n\n.. image:: https://travis-ci.org/philoprove/gitcmd.svg?branch=master\n :target: https://travis-ci.org/philoprove/gitcmd\n :alt: Build Status\n\n.. image:: https://img.shields.io/badge/wheel-yes-brightgreen.svg\n :target: https://pypi.python.org/pypi/gitcmd\n :alt: Wheel Status\n\n.. image:: https://img.shields.io/codecov/c/github/philoprove/gitcmd/master.svg\n :target: http://codecov.io/github/philoprove/gitcmd?branch=master\n :alt: Coverage report\n\nOverview\n===================\n\ngitcmd is a wrapper of 'git' command , it can interact with git command where need username and password.\n\n\nInstallation\n===================\n\nThe quick way::\n\n pip install gitcmd\n\n\n\nUsage\n===================\n\n**Clone git respositroy**\n::\n\n from gitcmd import GitCmd\n clone_to = 'mydir'\n url = \"https://github.com/philoprove/gitcmd.git\"\n ge = GitCmd(work_dir=clone_to, url=url)\n\nif you clone with ssh, you may need config ssh key at first.\n\n**Clone gitlab with username,password**\n::\n\n from gitcmd import GitCmd\n import os\n ge = GitCmd(work_dir=\"clone_to_where\", url=\"\", user=\"user\",pwd=\"pwd\")\n\n # work dir should be either empty or not exists\n ge.clone()\n\n\n # after repository was cloned to local , you can execute other commands\n ge.checkout()\n ge.pull()\n ge.execute(\"git diff ...\")", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/philoprove/gitcmd", "keywords": "git gitlab github", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "gitcmd", "package_url": "https://pypi.org/project/gitcmd/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gitcmd/", "project_urls": { "Homepage": "https://github.com/philoprove/gitcmd" }, "release_url": "https://pypi.org/project/gitcmd/1.1.1/", "requires_dist": [ "pexpect" ], "requires_python": "", "summary": "a wrapper of git command", "version": "1.1.1" }, "last_serial": 1793299, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "346111e76d823e712c0aa92fe5161349", "sha256": "a6fba991cc4e5f28064b249d05948e7f38602c5fe807943182d3ff176d60b636" }, "downloads": -1, "filename": "gitcmd-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "346111e76d823e712c0aa92fe5161349", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4305, "upload_time": "2015-10-29T05:48:54", "url": "https://files.pythonhosted.org/packages/1b/fa/6e82b80628edcfa65d934bf10622925763871940d967845f24e685f5347f/gitcmd-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "de5084fbd27c4d568b3e8270db196f12", "sha256": "c67d948ccf7c20b1768df6e4063976be8ca047167533f89c8a3cde0cb41dd661" }, "downloads": -1, "filename": "gitcmd-1.1.0.tar.gz", "has_sig": false, "md5_digest": "de5084fbd27c4d568b3e8270db196f12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2939, "upload_time": "2015-10-29T05:48:59", "url": "https://files.pythonhosted.org/packages/b9/77/0fdbc5466385973e588763f9e3815e98fee9a24173223f0d17500686f19b/gitcmd-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "24642c99b91314da61a18be0b3a36d2e", "sha256": "828d6582f823e439807389ed37d6fea284b3c15d5bba370f46702d4df4275b58" }, "downloads": -1, "filename": "gitcmd-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "24642c99b91314da61a18be0b3a36d2e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4906, "upload_time": "2015-10-30T10:06:20", "url": "https://files.pythonhosted.org/packages/66/d5/8548543c14e4e85bc394fe1de6d691de8c57b23a9d15f0bf85a7b2a6358c/gitcmd-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8d6ef94a73a43c9cae3526c2322eba2", "sha256": "0e1bd80e12c93c2c1cd1647647524ae20a4596340f34138ea6b0a61545a99dd3" }, "downloads": -1, "filename": "gitcmd-1.1.1.tar.gz", "has_sig": false, "md5_digest": "c8d6ef94a73a43c9cae3526c2322eba2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3541, "upload_time": "2015-10-30T10:06:24", "url": "https://files.pythonhosted.org/packages/3e/df/fb63e2beb6fe4e5ccdc42eac0cf063f81a282eb02d7506fd346ea413b1b0/gitcmd-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "24642c99b91314da61a18be0b3a36d2e", "sha256": "828d6582f823e439807389ed37d6fea284b3c15d5bba370f46702d4df4275b58" }, "downloads": -1, "filename": "gitcmd-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "24642c99b91314da61a18be0b3a36d2e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4906, "upload_time": "2015-10-30T10:06:20", "url": "https://files.pythonhosted.org/packages/66/d5/8548543c14e4e85bc394fe1de6d691de8c57b23a9d15f0bf85a7b2a6358c/gitcmd-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8d6ef94a73a43c9cae3526c2322eba2", "sha256": "0e1bd80e12c93c2c1cd1647647524ae20a4596340f34138ea6b0a61545a99dd3" }, "downloads": -1, "filename": "gitcmd-1.1.1.tar.gz", "has_sig": false, "md5_digest": "c8d6ef94a73a43c9cae3526c2322eba2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3541, "upload_time": "2015-10-30T10:06:24", "url": "https://files.pythonhosted.org/packages/3e/df/fb63e2beb6fe4e5ccdc42eac0cf063f81a282eb02d7506fd346ea413b1b0/gitcmd-1.1.1.tar.gz" } ] }