Skip to content

Commit

Permalink
remove fsspec dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewitt1 committed Jul 14, 2024
1 parent ae4ff45 commit 25d12e5
Show file tree
Hide file tree
Showing 13 changed files with 813 additions and 273 deletions.
1 change: 0 additions & 1 deletion collect_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# required installs
"wheel",
"rich",
"fsspec",
"pyarrow",
"sshfs",
"typer",
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
python-dotenv
fastapi
fsspec<=2023.5.0
pexpect
pyopenssl>=23.3.0
ray[default] >= 2.2.0, != 2.6.0
Expand Down
2 changes: 1 addition & 1 deletion runhouse/resources/blobs/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def blob(
path (Optional[str or Path]): Path (or path) to the blob object. Specfying a path will force the blob to be
saved to the filesystem rather than persist in the cluster's object store.
system (Optional[str or Cluster]): File system or cluster name. If providing a file system this must be one of:
[``file``, ``github``, ``sftp``, ``ssh``, ``s3``, ``gs``, ``azure``].
[``file``, ``s3``, ``gs``].
We are working to add additional file system support. If providing a cluster, this must be a cluster object
or name, and whether the data is saved to the object store or filesystem depends on whether a path is
specified.
Expand Down
4 changes: 2 additions & 2 deletions runhouse/resources/blobs/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def exists_in_system(self):
>>> file = rh.file(data, path="saved/path")
>>> file.exists_in_system()
"""
return self._folder.fsspec_fs.exists(self.fsspec_url)
return self._folder.exists_in_system(self.fsspec_url)


def file(
Expand All @@ -196,7 +196,7 @@ def file(
name (Optional[str]): Name to give the file object, to be reused later on.
path (Optional[str]): Path (or path) of the file object.
system (Optional[str or Cluster]): File system or cluster name. If providing a file system this must be one of:
[``file``, ``github``, ``sftp``, ``ssh``, ``s3``, ``gs``, ``azure``].
[``file``, ``s3``, ``gs``].
We are working to add additional file system support.
data_config (Optional[Dict]): The data config to pass to the underlying fsspec handler.
dryrun (bool): Whether to create the File if it doesn't exist, or load a File object as a dryrun.
Expand Down
Loading

0 comments on commit 25d12e5

Please sign in to comment.