Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-client
Commits
b3d6d212
Commit
b3d6d212
authored
Dec 28, 2025
by
BO ZHANG
🏀
Browse files
load modules
parent
c379610a
Pipeline
#11648
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/__init__.py
View file @
b3d6d212
...
...
@@ -2,11 +2,15 @@ from .version import __version__
from
.common
import
request
from
io
import
BytesIO
from
.exceptions.exception
import
AppError
from
.
import
level0
,
level1
,
other
,
plan
,
catalog
,
dag
__all__
=
[
"__version__"
,
"download_file"
,
"read_file"
,
]
def
download_file
(
file_path
:
str
)
->
bytes
:
"""
下载文件。
...
...
@@ -50,4 +54,4 @@ def get_free_header(file_path: str) -> dict:
result
=
request
.
get
(
f
"/api/common/header?file_path=
{
file_path
}
"
)
if
result
.
success
:
return
result
.
data
raise
AppError
(
"Failed to get free header. Reason: "
+
result
.
message
)
\ No newline at end of file
raise
AppError
(
"Failed to get free header. Reason: "
+
result
.
message
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment