Пример #1
0
 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")