Skip to main content

Thin wrapper around source control systems

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mayo-0.2.3.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file mayo-0.2.3.tar.gz.

File metadata

  • Download URL: mayo-0.2.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mayo-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ba1cd0bb0c107c3bbc8d1ab1498f53d0bf084632f6d310595ae6b2105db5eab1
MD5 497b87d36a861125ba4bfa032957ba01
BLAKE2b-256 5c61739205a9db3513e66233b0594f6862d3c3c6a036d973ea72012df27686c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page