{"id":19887963,"url":"https://github.com/wtsi-hgi/python-git-subrepo","last_synced_at":"2026-05-16T09:34:02.513Z","repository":{"id":57434830,"uuid":"95794514","full_name":"wtsi-hgi/python-git-subrepo","owner":"wtsi-hgi","description":"Provides access to `git subrepo` in Python","archived":false,"fork":false,"pushed_at":"2022-10-22T15:48:35.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-16T18:00:32.889Z","etag":null,"topics":["git","git-subrepo","library","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtsi-hgi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-29T15:57:40.000Z","updated_at":"2017-07-05T14:43:56.000Z","dependencies_parsed_at":"2022-09-04T15:32:23.497Z","dependency_job_id":null,"html_url":"https://github.com/wtsi-hgi/python-git-subrepo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/wtsi-hgi/python-git-subrepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fpython-git-subrepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fpython-git-subrepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fpython-git-subrepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fpython-git-subrepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtsi-hgi","download_url":"https://codeload.github.com/wtsi-hgi/python-git-subrepo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fpython-git-subrepo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33096934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-subrepo","library","python"],"created_at":"2024-11-12T18:05:32.761Z","updated_at":"2026-05-16T09:34:02.496Z","avatar_url":"https://github.com/wtsi-hgi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/wtsi-hgi/python-git-subrepo.svg?branch=master)](https://travis-ci.org/wtsi-hgi/python-git-subrepo)\n[![codecov](https://codecov.io/gh/wtsi-hgi/python-git-subrepo/branch/master/graph/badge.svg)](https://codecov.io/gh/wtsi-hgi/python-git-subrepo)\n[![PyPI version](https://badge.fury.io/py/gitsubrepo.svg)](https://badge.fury.io/py/gitsubrepo)\n\n# Git Subrepo Python Wrapper\nIn the same way that [`GitPython`](https://pypi.python.org/pypi/GitPython/) wraps `git`, this library provides easy \naccess to [git subrepo](https://github.com/ingydotnet/git-subrepo) in Python.\n\n\n## How to use\n### Prerequisites\n - git \u003e= 2.10.0 (on path)\n - git-subrepo \u003e= 0.3.1\n - python \u003e= 3.6\n\n\n### Installation\nStable releases can be installed via [PyPI](https://pypi.python.org/pypi/gitsubrepo):\n```bash\n$ pip install gitsubrepo\n```\n\nBleeding edge versions can be installed directly from GitHub:\n```bash\n$ pip install git+https://github.com/wtsi-hgi/python-git-subrepo.git@${commitIdBranchOrTag}#egg=gitsubrepo\n```\n\nTo declare this library as a dependency of your project, add it to your `requirement.txt` file.\n\n\n### API\nThe library currently supports 3 `git subrepo` operations: `clone`, `pull` and `status`. Please see the documentation \nfor specific information on how to use these methods.\n\nExample usage:\n```python\nimport gitsubrepo\n\nremote_repository = \"https://github.com/colin-nolan/test-repository.git\"\nrepository_location = \"/tmp/repo\"\nsubrepo_location = f\"{repository_location}/subrepo\"\nbranch = \"develop\"\n\ncommit_reference = gitsubrepo.clone(remote_repository, subrepo_location, branch=branch)\nupdated_commit_reference = gitsubrepo.pull(subrepo_location)\n\nsubrepo_remote, subrepo_branch, subrepo_commit = gitsubrepo.status(subrepo_location)\nassert subrepo_remote == remote_repository\nassert subrepo_branch == branch\n```\n\n\n## Development\n### Setup\nInstall both library dependencies and the dependencies needed for testing:\n```bash\n$ pip install -q -r requirements.txt\n$ pip install -q -r test_requirements.txt\n```\n\n### Testing\nTo run the tests and generate a coverage report with unittest:\n```bash\n./test-runner.sh\n```\nIf you wish to run the tests inside a Docker container, build `Docker.test`.\n\n\n## License\n[MIT license](LICENSE.txt).\n\nCopyright (c) 2017 Genome Research Limited\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtsi-hgi%2Fpython-git-subrepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtsi-hgi%2Fpython-git-subrepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtsi-hgi%2Fpython-git-subrepo/lists"}