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

Function _parse_named

dvc/config.py:393–404  ·  view source on GitHub ↗
(conf)

Source from the content-addressed store, hash-verified

391
392
393def _parse_named(conf):
394 result: dict[str, dict] = {"remote": {}, "machine": {}, "db": {}}
395
396 for section, val in conf.items():
397 match = re_find(r'^\s*(remote|machine|db)\s*"(.*)"\s*$', section)
398 if match:
399 key, name = match
400 result[key][name] = val
401 else:
402 result[section] = val
403
404 return result
405
406
407def _pack_named(conf):

Callers 1

load_fileMethod · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected