{ "info": { "author": "Kirill Sulim", "author_email": "kirillsulim@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Version Control :: Git" ], "description": "# gitsnapshot\n\n[![Build Status](https://travis-ci.org/kirillsulim/gitsnapshot.svg?branch=master)](https://travis-ci.org/kirillsulim/gitsnapshot)\n[![PyPI version](https://badge.fury.io/py/gitsnapshot.svg)](https://badge.fury.io/py/gitsnapshot)\n\nA simple library to load snapshots of git repository.\n\n## Usage\n\nTo load git repository call `load_repo` as follows:\n\n```python\nfrom gitsnapshot import load_repo\n\nload_repo('~/target/directory', 'git@github.com/test/repo')\n```\n\nThis code creates folder `~/target/directory` if this folder doesn't exists, and then\nclone shallow copy of repository `git@github.com/test/repo`. \nBy default this function loads current `master` branch.\n\nTo load another branch (i.e. `develop`) pass branch name in `branch` parameter:\n\n```python\nfrom gitsnapshot import load_repo\n\nload_repo('~/target/directory', 'git@github.com/test/repo', branch='develop')\n``` \n\nAlso you can load snapshot by tag:\n\n```python\nfrom gitsnapshot import load_repo\n\nload_repo('~/target/directory', 'git@github.com/test/repo', tag='v0.1.2')\n```\n\nOr by commit hash:\n\n```python\nfrom gitsnapshot import load_repo\n\nload_repo('~/target/directory', 'git@github.com/test/repo', commit='abcdef')\n```\n\n## Errors\n\n`load_repo` function return optional string with error description.\nIf `load_repo` returned `None` then no errors was happened.\n\n## Reusing of directory\n\nIf you try to load repository snapshot into existing directory with another snapshot \nof the same repository, `load_repo` will return error. \nTo avoid this behavior pass `use_existing=True` as argument.\n\n```python\nfrom gitsnapshot import load_repo\n\nload_repo('~/target/directory', 'git@github.com/test/repo', use_existing=True)\n```\n\nIn this case `load_repo` will load repository index and will checkout to specified \nbranch, tag or commit.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kirillsulim/gitsnapshot", "keywords": "git snapshot load download delivery config", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "gitsnapshot", "package_url": "https://pypi.org/project/gitsnapshot/", "platform": "", "project_url": "https://pypi.org/project/gitsnapshot/", "project_urls": { "Homepage": "https://github.com/kirillsulim/gitsnapshot" }, "release_url": "https://pypi.org/project/gitsnapshot/0.1.1.post1/", "requires_dist": null, "requires_python": "", "summary": "Python module to simplify loading of snapshot of git repository", "version": "0.1.1.post1" }, "last_serial": 5200510, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "05108f379d6eb6722b6df0b395486829", "sha256": "f61380b4780a38dc52030a64914bbd2734b599c5cfb462eec562714092f97225" }, "downloads": -1, "filename": "gitsnapshot-0.1.0.tar.gz", "has_sig": false, "md5_digest": "05108f379d6eb6722b6df0b395486829", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 881, "upload_time": "2019-04-21T16:19:35", "url": "https://files.pythonhosted.org/packages/fa/49/f474fcc8e4fbd1207d682ca42913102f51ab5ab23b62af1135981fa6d708/gitsnapshot-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3937d1f0013929798b1282912c65c930", "sha256": "ee621d940dbb64320fca3a39438d5a816758407ec2ea3646971afaa7f3ef8905" }, "downloads": -1, "filename": "gitsnapshot-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3937d1f0013929798b1282912c65c930", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2562, "upload_time": "2019-04-26T12:01:08", "url": "https://files.pythonhosted.org/packages/ed/1e/2d175f085a111d337a1449637609d7736a44dc7ce2297acd3c15156ec25f/gitsnapshot-0.1.1.tar.gz" } ], "0.1.1.post1": [ { "comment_text": "", "digests": { "md5": "ddb7ad64a9ff483a770ed3517a814533", "sha256": "cc9f20fdb4ba48db189047a74c9553e4749e674fac3a0314ab0282d3dc8365e5" }, "downloads": -1, "filename": "gitsnapshot-0.1.1.post1.tar.gz", "has_sig": false, "md5_digest": "ddb7ad64a9ff483a770ed3517a814533", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3300, "upload_time": "2019-04-28T19:23:16", "url": "https://files.pythonhosted.org/packages/b1/fc/0b567c06faf315c1866e815fa46a75c2476bcfd676defa7d5c45e438b890/gitsnapshot-0.1.1.post1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ddb7ad64a9ff483a770ed3517a814533", "sha256": "cc9f20fdb4ba48db189047a74c9553e4749e674fac3a0314ab0282d3dc8365e5" }, "downloads": -1, "filename": "gitsnapshot-0.1.1.post1.tar.gz", "has_sig": false, "md5_digest": "ddb7ad64a9ff483a770ed3517a814533", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3300, "upload_time": "2019-04-28T19:23:16", "url": "https://files.pythonhosted.org/packages/b1/fc/0b567c06faf315c1866e815fa46a75c2476bcfd676defa7d5c45e438b890/gitsnapshot-0.1.1.post1.tar.gz" } ] }