expose dvcfs in dvc.api and add to fsspec's registry (#8287)

* expose dvcfs in dvc.api and add to fsspec's registry

* readd __all__ to avoid exposing modules
This commit is contained in:
skshetry
2022-09-14 20:02:56 +05:45
committed by GitHub
parent 3b532b7d59
commit fdc18d5483
2 changed files with 14 additions and 6 deletions
+12 -6
View File
@@ -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",
]
+2
View File
@@ -146,6 +146,8 @@ exclude =
[options.entry_points]
console_scripts =
dvc = dvc.cli:main
fsspec.specs =
dvc = dvc.api:DvcFileSystem
[flake8]
ignore=