diff --git a/dvc/api/__init__.py b/dvc/api/__init__.py index dde993ec7..e1421a087 100644 --- a/dvc/api/__init__.py +++ b/dvc/api/__init__.py @@ -1,9 +1,15 @@ -from .data import ( # noqa, pylint: disable=redefined-builtin - get_url, - open, - read, -) +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 -__all__ = ["get_url", "make_checkpoint", "open", "params_show", "read"] +__all__ = [ + "get_url", + "make_checkpoint", + "open", + "params_show", + "read", + "DvcFileSystem", +] diff --git a/setup.cfg b/setup.cfg index 791643a57..dbca53575 100644 --- a/setup.cfg +++ b/setup.cfg @@ -146,6 +146,8 @@ exclude = [options.entry_points] console_scripts = dvc = dvc.cli:main +fsspec.specs = + dvc = dvc.api:DvcFileSystem [flake8] ignore=