Skip to content
This repository

Download source control URIs in Python

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 mayo
Octocat-spinner-32 scripts
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.md
Octocat-spinner-32 makefile
Octocat-spinner-32 setup.py
Octocat-spinner-32 test-requirements.txt
Octocat-spinner-32 tox.ini
README.md

Mayo: Download source control URIs

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

import mayo

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

Mayo can also be used as a script:

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

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

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

At the moment, git and hg URIs are supported.

Something went wrong with that request. Please try again.