Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Download source control URIs in Python
tree: 64c88dbaa3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
blah
scripts
tests
.gitignore
LICENSE
MANIFEST.in
README.md
makefile
setup.py
test-requirements.txt

README.md

Blah: Download source control URIs

The main use of Blah is being able to download repositories from a URI that specifies what version control system (VCS) is being used:

import blah

blah.fetch("git+https://github.com/mwilliamson/blah.git", "/tmp/blah")
print open("/tmp/blah/README.md").read()

Blah can also be used as a script:

blah fetch git+https://github.com/mwilliamson/blah.git /tmp/blah

Specific commits can be selected by appending a hash to the URI, followed by the name of the commit:

blah.fetch("git+https://github.com/mwilliamson/blah.git#74d69b4", "/tmp/blah")

At the moment, git and hg URIs are supported.

Something went wrong with that request. Please try again.