{ "info": { "author": "Iacopo Spalletti", "author_email": "i.spalletti@nephila.it", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "===========\ngiturlparse\n===========\n\nParse & rewrite git urls (supports GitHub, Bitbucket, FriendCode, Assembla, Gitlab ...)\n\nThis is a fork of giturlparse.py with updated parsers.\n\nOriginal project can be found at https://github.com/FriendCode/giturlparse.py\n\n**********\nInstalling\n**********\n\n::\n\n pip install giturlparse\n\n********\nExamples\n********\n\nParse\n=====\n\n::\n\n from giturlparse import parse\n\n p = parse('git@bitbucket.org:AaronO/some-repo.git')\n\n p.host, p.owner, p.repo\n\n # => ('bitbucket.org', 'AaronO', 'some-repo')\n\n\nRewrite\n=======\n\n::\n\n from giturlparse import parse\n\n url = 'git@github.com:Org/Private-repo.git'\n\n p = parse(url)\n\n p.url2ssh, p.url2https, p.url2git, p.url2http\n # => ('git@github.com:Org/Private-repo.git', 'https://github.com/Org/Private-repo.git', 'git://github.com/Org/Private-repo.git', None)\n\n****\nURLS\n****\n\nAlternative URLs for same repo::\n\n from giturlparse import parse\n\n url = 'git@github.com:Org/Private-repo.git'\n\n parse(url).urls\n # => {\n # 'ssh': 'git@github.com:Org/Private-repo.git',\n # 'https': 'https://github.com/Org/Private-repo.git',\n # 'git': 'git://github.com/Org/Private-repo.git'\n # }\n\n\n********\nValidate\n********\n\n::\n\n from giturlparse import parse, validate\n\n url = 'git@github.com:Org/Private-repo.git'\n\n parse(url).valid\n # => True\n\n # Or\n\n validate(url)\n # => True\n\n\n\n*****\nTests\n*****\n\n::\n\n python setup.py test\n\n\n*******\nLicense\n*******\n\nApache v2 (Check out LICENSE file)\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nephila/giturlparse", "keywords": "git url parse ssh github bitbucket", "license": "Apache v2", "maintainer": "", "maintainer_email": "", "name": "giturlparse", "package_url": "https://pypi.org/project/giturlparse/", "platform": "", "project_url": "https://pypi.org/project/giturlparse/", "project_urls": { "Homepage": "https://github.com/nephila/giturlparse" }, "release_url": "https://pypi.org/project/giturlparse/0.9.2/", "requires_dist": null, "requires_python": "", "summary": "A Git URL parsing module (supports parsing and rewriting)", "version": "0.9.2" }, "last_serial": 4422017, "releases": { "0.9.1": [ { "comment_text": "", "digests": { "md5": "6b440f15c03b12d02ef2e4507e8b1f7e", "sha256": "867561d3bd11ce72779a372f4157f660d04e8deca559486bc7ebece827f32aa0" }, "downloads": -1, "filename": "giturlparse-0.9.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b440f15c03b12d02ef2e4507e8b1f7e", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14968, "upload_time": "2018-01-20T08:55:56", "url": "https://files.pythonhosted.org/packages/cc/42/acbb62e4c8b430ac340c20cebcce4eea9f7a39324c06b6284cc3efa56f04/giturlparse-0.9.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "acec24bf594baff0c5dbfc695d8d7748", "sha256": "9d99cb5eb05cef1417d5fb582ff37626150c5c535b9ad1bb39a87e303e87fcc4" }, "downloads": -1, "filename": "giturlparse-0.9.1.tar.gz", "has_sig": false, "md5_digest": "acec24bf594baff0c5dbfc695d8d7748", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9357, "upload_time": "2018-01-20T08:55:54", "url": "https://files.pythonhosted.org/packages/ac/a4/fab57d144e6b45229e5621ca08f32c6bee577c9f4a90cd153b3dca86ff7b/giturlparse-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "6b8f51c53a710cf15e33c6a1d0bc8f01", "sha256": "8025143dd297122d8ecf96006f85a9e81c3c491b0ec5eebbba608488edbb289b" }, "downloads": -1, "filename": "giturlparse-0.9.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b8f51c53a710cf15e33c6a1d0bc8f01", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 15016, "upload_time": "2018-10-27T13:31:05", "url": "https://files.pythonhosted.org/packages/1f/40/87895f66dbfdbdd765bfe0b6749d715960af93ec6764535a4153225d4509/giturlparse-0.9.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80365b82b261809914bb01064116feaf", "sha256": "7d923e9f4fa60b112cd306a19f5b4fe221a6f5fa9f34b48e6607e54ab7909cd4" }, "downloads": -1, "filename": "giturlparse-0.9.2.tar.gz", "has_sig": false, "md5_digest": "80365b82b261809914bb01064116feaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9418, "upload_time": "2018-10-27T13:31:02", "url": "https://files.pythonhosted.org/packages/f9/6b/3f85a366de4852ef4c197ae3a2de48501a64fdbccf7a0c22eba86ecf3e42/giturlparse-0.9.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b8f51c53a710cf15e33c6a1d0bc8f01", "sha256": "8025143dd297122d8ecf96006f85a9e81c3c491b0ec5eebbba608488edbb289b" }, "downloads": -1, "filename": "giturlparse-0.9.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b8f51c53a710cf15e33c6a1d0bc8f01", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 15016, "upload_time": "2018-10-27T13:31:05", "url": "https://files.pythonhosted.org/packages/1f/40/87895f66dbfdbdd765bfe0b6749d715960af93ec6764535a4153225d4509/giturlparse-0.9.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80365b82b261809914bb01064116feaf", "sha256": "7d923e9f4fa60b112cd306a19f5b4fe221a6f5fa9f34b48e6607e54ab7909cd4" }, "downloads": -1, "filename": "giturlparse-0.9.2.tar.gz", "has_sig": false, "md5_digest": "80365b82b261809914bb01064116feaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9418, "upload_time": "2018-10-27T13:31:02", "url": "https://files.pythonhosted.org/packages/f9/6b/3f85a366de4852ef4c197ae3a2de48501a64fdbccf7a0c22eba86ecf3e42/giturlparse-0.9.2.tar.gz" } ] }