Thin wrapper around source control systems
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:
At the moment, git and hg URIs are supported.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.