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'
}