def download(self, url, destination):
     """
     Downloads the specified url and saves the result to the specified
     file.
     """
     fileDownloader = utils.FileDownloader(url, destination)
     fileDownloader.download()
示例#2
0
 def _compileSchemas(self):
     url = "http://www.carfab.com/apachesoftware/avro/stable/java/"\
         "avro-tools-1.7.7.jar"
     fileDownloader = utils.FileDownloader(url, self.avroJar)
     fileDownloader.download()
     cwd = os.getcwd()
     os.chdir(self.avdlDirectory)
     for avdlFile in glob.glob("*.avdl"):
         self._convertAvro(avdlFile)
     os.chdir(cwd)
示例#3
0
 def _compileSchemas(self):
     url = "http://central.maven.org/maven2/org/apache/avro/avro-tools/" \
           "1.8.0/avro-tools-1.8.0.jar"
     fileDownloader = utils.FileDownloader(url, self.avroJar)
     fileDownloader.download()
     cwd = os.getcwd()
     os.chdir(self.avdlDirectory)
     for avdlFile in glob.glob("*.avdl"):
         self._convertAvro(avdlFile)
     os.chdir(cwd)
示例#4
0
def downloadData():
    url = "http://www.well.ox.ac.uk/~jk/ga4gh-example-data.tar"
    fileDownloader = utils.FileDownloader(url, tarballPath)
    fileDownloader.download()
    utils.log("Downloading finished")