Skip to content

Commit

Permalink
feat: introduce HFPath
Browse files Browse the repository at this point in the history
  • Loading branch information
liyang committed Nov 1, 2024
1 parent 300eb9a commit 1f75833
Show file tree
Hide file tree
Showing 5 changed files with 614 additions and 1 deletion.
2 changes: 2 additions & 0 deletions megfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
is_hdfs,
)
from megfile.hdfs_path import HdfsPath
from megfile.hf_path import HFPath
from megfile.http import (
http_exists,
http_getmtime,
Expand Down Expand Up @@ -396,6 +397,7 @@
"hdfs_makedirs",
"S3Path",
"FSPath",
"HFPath",
"HttpPath",
"HttpsPath",
"StdioPath",
Expand Down
3 changes: 3 additions & 0 deletions megfile/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@
SFTP_MAX_RETRY_TIMES = int(
os.getenv("MEGFILE_SFTP_MAX_RETRY_TIMES") or DEFAULT_MAX_RETRY_TIMES
)
HF_MAX_RETRY_TIMES = int(
os.getenv("MEGFILE_HF_MAX_RETRY_TIMES") or DEFAULT_MAX_RETRY_TIMES
)
Loading

0 comments on commit 1f75833

Please sign in to comment.