comparison env/lib/python3.9/site-packages/galaxy/tool_util/locations/http.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
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")