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 20, 2024
1 parent ac08679 commit 20760de
Show file tree
Hide file tree
Showing 4 changed files with 587 additions and 0 deletions.
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,5 +60,8 @@
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
)

HTTP_AUTH_HEADERS = ("Authorization", "Www-Authenticate", "Cookie", "Cookie2")
Loading

0 comments on commit 20760de

Please sign in to comment.