MCPcopy
hub / github.com/treeverse/dvc / parse_external_url

Function parse_external_url

dvc/fs/__init__.py:91–96  ·  view source on GitHub ↗
(url, fs_config=None, config=None)

Source from the content-addressed store, hash-verified

89
90
91def parse_external_url(url, fs_config=None, config=None):
92 remote_config = dict(fs_config) if fs_config else {}
93 remote_config["url"] = url
94 fs_cls, resolved_fs_config, fs_path = get_cloud_fs(config, **remote_config)
95 fs = fs_cls(**resolved_fs_config)
96 return fs, fs_path
97
98
99def get_fs_config(config, **kwargs):

Callers 6

_show_treeMethod · 0.90
ls_urlFunction · 0.90
get_urlFunction · 0.90
test_fileMethod · 0.85
test_dirMethod · 0.85
test_recursiveMethod · 0.85

Calls 2

dictClass · 0.85
get_cloud_fsFunction · 0.85

Tested by 3

test_fileMethod · 0.68
test_dirMethod · 0.68
test_recursiveMethod · 0.68