Add metrics_show to dvc.api (#9042)

* refactor: add metrics_show, rename module to show

* tests: add functional tests for metrics_show

* api.show: return empty dict for no params/metrics

* test_show: Return relpaths in `metrics_repo`.

---------

Co-authored-by: codamuse <[email protected]>
Co-authored-by: David de la Iglesia Castro <[email protected]>
This commit is contained in:
Adam Liter
2023-02-20 21:53:38 +00:00
committed by GitHub
co-authored by codamuse David de la Iglesia Castro
parent 09ccd9c7e4
commit 47208533a2
4 changed files with 515 additions and 241 deletions
+2 -1
View File
@@ -3,13 +3,14 @@ from dvc.fs.dvc import _DVCFileSystem as DVCFileSystem
from .data import open # pylint: disable=redefined-builtin
from .data import get_url, read
from .experiments import make_checkpoint
from .params import params_show
from .show import metrics_show, params_show
__all__ = [
"get_url",
"make_checkpoint",
"open",
"params_show",
"metrics_show",
"read",
"DVCFileSystem",
]