Commit b3d6d212 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

load modules

parent c379610a
Pipeline #11648 failed with stages
in 0 seconds
...@@ -2,11 +2,15 @@ from .version import __version__ ...@@ -2,11 +2,15 @@ from .version import __version__
from .common import request from .common import request
from io import BytesIO from io import BytesIO
from .exceptions.exception import AppError from .exceptions.exception import AppError
from . import level0, level1, other, plan, catalog, dag
__all__ = [ __all__ = [
"__version__", "__version__",
"download_file", "download_file",
"read_file", "read_file",
] ]
def download_file(file_path: str) -> bytes: def download_file(file_path: str) -> bytes:
""" """
下载文件。 下载文件。
...@@ -50,4 +54,4 @@ def get_free_header(file_path: str) -> dict: ...@@ -50,4 +54,4 @@ def get_free_header(file_path: str) -> dict:
result = request.get(f"/api/common/header?file_path={file_path}") result = request.get(f"/api/common/header?file_path={file_path}")
if result.success: if result.success:
return result.data return result.data
raise AppError("Failed to get free header. Reason: " + result.message) raise AppError("Failed to get free header. Reason: " + result.message)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment