watdarepo

Determines type and host of a repo.


Keywords
watdarepo, git, hg, mercurial, svn, bzr
License
BSD-3-Clause
Install
pip install watdarepo==0.3.0

Documentation

watdarepo

https://badge.fury.io/py/watdarepo.png https://travis-ci.org/pydanny/watdarepo.png?branch=master https://pypip.in/d/watdarepo/badge.png https://coveralls.io/repos/audreyr/cookiecutter/badge.png?branch=master

Determines type and host of a repo.

Features

Works to some degree with the following VCS:

  • Git
  • Mercurial
  • SVN
  • BZR

Works to some degree with the following hosting services:

  • GitHub
  • BitBucket
  • GitLab
  • Gitorious
  • Sourceforge

Usage

>>> from watdarepo import watdarepo
>>> watdarepo("https://github.com/pydanny/watdarepo")
{
    u'vcs': u'git',
    u'hosting_service': u'github',
    u'repo_url': u'https://github.com/pydanny/watdarepo'
}

Related Projects

  • Dulwich is a Python Git API and does not have any discovery features.
  • VCS works with both Git and Mercurial, incorporates Dulwich, but does not appear to have any discovery features.