comparison planemo/lib/python3.7/site-packages/galaxy/tool_util/locations/http.py @ 1:56ad4e20f292 draft

"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author guerler
date Fri, 31 Jul 2020 00:32:28 -0400
parents
children
comparison
equal deleted inserted replaced
0:d30785e31577 1:56ad4e20f292
1 from galaxy.util import download_to_file
2 from ..locations import (
3 ToolLocationResolver,
4 )
5
6
7 class HttpToolResolver(ToolLocationResolver):
8
9 scheme = "http"
10
11 def __init__(self, **kwds):
12 pass
13
14 def get_tool_source_path(self, uri_like):
15 tmp_path = self._temp_path(uri_like)
16 download_to_file(uri_like, tmp_path)
17 return tmp_path
18
19
20 class HttpsToolResolver(HttpToolResolver):
21
22 scheme = "https"
23
24
25 __all__ = ("HttpToolResolver", "HttpsToolResolver")