{ "info": { "author": "Petr Viktorin", "author_email": "encukou@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "gitpathlib\n==========\n\nAn read-only implementation of Python's `pathlib`_ that works on Git trees.\n\n.. _pathlib: https://docs.python.org/3/library/pathlib.html\n\nInstallation\n------------\n\nThis library requires `pygit2`_, which can be hard to install.\nYou may need to get it installed before installing gitpathlib.\n\n\nIn a Python 3 `virtual environment`_, do::\n\n python -m pip install gitpathlib\n\nTo install an editable from a Git checkout::\n\n python -m pip install -e.\n\nTo install without a virtual envitonment, add the ``--user`` option.\n\n.. _pygit2: http://www.pygit2.org/\n.. _virtual environment: https://docs.python.org/3/library/venv.html\n\n\nBasic Usage\n-----------\n\nA GitPath can be created from a path to a Git repository, and a commit\n(or tree) in it::\n\n from gitpathlib import GitPath\n\n head = GitPath('path/to/git/repo', 'HEAD')\n\nIt can then be used as a ``Path`` would::\n\n path = head / 'dir' / 'file.txt'\n with path.open() as f:\n contents = f.read()\n\nGitPath provides read-only access. Creating files, opening them in write\nmode, etc. are not supported.\n\n\nDevelopment\n-----------\n\nYou're welcome to join this project!\n\nIf you spot an issue, please report it at the `Issues page`_ on Github.\n\nIf you'd like to start changing the code or documentation, check out the code\nlocally using::\n\n git clone https://github.com/encukou/gitpathlib\n\nIf you're new to this, please read the `this guide`_ about collaborating\non Github-hosted projects like this one.\n\nIf that doesn't make sense, please `e-mail the author `_\nfor clarification. I'd be happy to help you get started.\n\n.. _Issues page: https://github.com/encukou/gitpathlib/issues\n.. _this guide: https://guides.github.com/activities/contributing-to-open-source/", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/encukou/gitpathlib", "keywords": "git,pathlib", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "gitpathlib", "package_url": "https://pypi.org/project/gitpathlib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gitpathlib/", "project_urls": { "Homepage": "https://github.com/encukou/gitpathlib" }, "release_url": "https://pypi.org/project/gitpathlib/0.2/", "requires_dist": [ "pygit2" ], "requires_python": "", "summary": "Object-oriented paths in Git repositories", "version": "0.2" }, "last_serial": 2839623, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0e40bb23a3f8f8905f2a711ca9a5d195", "sha256": "95abba8c493a3b0667f19ee5470daf82c0ad186140fa5ab3574e72cff1378f70" }, "downloads": -1, "filename": "gitpathlib-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0e40bb23a3f8f8905f2a711ca9a5d195", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8071, "upload_time": "2017-04-17T23:14:56", "url": "https://files.pythonhosted.org/packages/0e/96/e9abc62fc501e06e588e3cf87854e854dd1f69b6c6007f30022edc8e25c0/gitpathlib-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61c772b5905ba3f3047d83bb1b0c969f", "sha256": "254ac6b87c8ec7c38be915026d03b54c9326654ff65117ce0e24c91828fe3e87" }, "downloads": -1, "filename": "gitpathlib-0.1.tar.gz", "has_sig": false, "md5_digest": "61c772b5905ba3f3047d83bb1b0c969f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6705, "upload_time": "2017-04-17T23:14:58", "url": "https://files.pythonhosted.org/packages/b3/1e/3b9d96c807ee9e54d3e7bd67525bdf078c28a43faf45304fb3c670b91273/gitpathlib-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "00dbcafd240806712c545656d0378969", "sha256": "5ffae3205e391996ca8acb4bf81bc1cbfe6d0132a301ef573cb87d4b93f13106" }, "downloads": -1, "filename": "gitpathlib-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "00dbcafd240806712c545656d0378969", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15717, "upload_time": "2017-04-29T21:21:31", "url": "https://files.pythonhosted.org/packages/03/44/daff7481b2b95386e48b0b5ec6a811514cbbfbca5da5adc6d05e192bdd7e/gitpathlib-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "014aaa3d4939b20e46ba89c1bc96cb20", "sha256": "f36786d15095d30f6ebd1d4bda1396388d3c372503f0c671334db789a24f6150" }, "downloads": -1, "filename": "gitpathlib-0.2.tar.gz", "has_sig": false, "md5_digest": "014aaa3d4939b20e46ba89c1bc96cb20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14168, "upload_time": "2017-04-29T21:21:33", "url": "https://files.pythonhosted.org/packages/2f/8a/b4f29c1d177a33687bef1ba27eafc1d8062a71b3a304629e873c1c5f5b64/gitpathlib-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "00dbcafd240806712c545656d0378969", "sha256": "5ffae3205e391996ca8acb4bf81bc1cbfe6d0132a301ef573cb87d4b93f13106" }, "downloads": -1, "filename": "gitpathlib-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "00dbcafd240806712c545656d0378969", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15717, "upload_time": "2017-04-29T21:21:31", "url": "https://files.pythonhosted.org/packages/03/44/daff7481b2b95386e48b0b5ec6a811514cbbfbca5da5adc6d05e192bdd7e/gitpathlib-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "014aaa3d4939b20e46ba89c1bc96cb20", "sha256": "f36786d15095d30f6ebd1d4bda1396388d3c372503f0c671334db789a24f6150" }, "downloads": -1, "filename": "gitpathlib-0.2.tar.gz", "has_sig": false, "md5_digest": "014aaa3d4939b20e46ba89c1bc96cb20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14168, "upload_time": "2017-04-29T21:21:33", "url": "https://files.pythonhosted.org/packages/2f/8a/b4f29c1d177a33687bef1ba27eafc1d8062a71b3a304629e873c1c5f5b64/gitpathlib-0.2.tar.gz" } ] }