|
| 1 | +import logging |
| 2 | + |
| 3 | +from flask import Response |
| 4 | + |
| 5 | +from .input_fields import FieldId |
| 6 | + |
| 7 | +logger: logging.Logger | None |
| 8 | + |
| 9 | +HTML_HEAD: str |
| 10 | +HTML_TAIL: str |
| 11 | + |
| 12 | +class Executor: |
| 13 | + RAW_CMD_PATH: str |
| 14 | + |
| 15 | + def __init__(self) -> None: ... |
| 16 | + def exec(self, command_path: str) -> Response: ... |
| 17 | + def _exec_raw(self, command: list[str]) -> Response: ... # undocumented |
| 18 | + def _exec_html(self, command_path: str) -> Response: ... # undocumented |
| 19 | + def _run_script_and_generate_stream(self) -> None: ... # undocumented |
| 20 | + def _create_cmd_header(self, commands: list[CmdPart]) -> str: ... # undocumented |
| 21 | + def _create_result_footer(self) -> str: ... # undocumented |
| 22 | + |
| 23 | +def _get_download_link(field_info: FieldFileInfo) -> str: ... # undocumented |
| 24 | + |
| 25 | +class CommandLineRaw: |
| 26 | + def __init__(self, script_file_path: str, command: str) -> None: ... |
| 27 | + def append(self, part: str, secret: bool = False) -> None: ... |
| 28 | + def get_commandline(self, obfuscate: bool = False) -> list[str]: ... |
| 29 | + def get_download_field_infos(self) -> list[FieldInfo]: ... |
| 30 | + def after_script_executed(self) -> None: ... |
| 31 | + |
| 32 | +class CommandLineForm: |
| 33 | + def __init__(self, script_file_path: str, commands: list[str]) -> None: ... |
| 34 | + def append(self, part: str, secret: bool = False) -> None: ... |
| 35 | + def get_commandline(self, obfuscate: bool = False) -> list[str]: ... |
| 36 | + def get_download_field_infos(self) -> list[FieldInfo]: ... |
| 37 | + def after_script_executed(self) -> None: ... |
| 38 | + |
| 39 | +def _get_python_interpreter() -> str: ... |
| 40 | + |
| 41 | +class CmdPart: |
| 42 | + def __init__(self, part: str, secret: bool = False) -> None: ... |
| 43 | + |
| 44 | +class FormToCommandLineBuilder: |
| 45 | + def __init__(self, command_line: CommandLineForm) -> None: ... |
| 46 | + def add_command_args(self, command_index: int) -> None: ... |
| 47 | + @staticmethod |
| 48 | + def _is_option(cmd_option: str) -> bool: ... |
| 49 | + def _process_option(self, field_info: FieldInfo) -> None: ... |
| 50 | + |
| 51 | +class FieldInfo: |
| 52 | + @staticmethod |
| 53 | + def factory(key: str) -> FieldInfo: ... |
| 54 | + def __init__(self, param: FieldId) -> None: ... |
| 55 | + def before_script_execute(self) -> None: ... |
| 56 | + def after_script_executed(self) -> None: ... |
| 57 | + def __lt__(self, other: object) -> bool: ... |
| 58 | + def __eq__(self, other: object) -> bool: ... |
| 59 | + |
| 60 | +class FieldFileInfo(FieldInfo): |
| 61 | + def __init__(self, fimeta: FieldId) -> None: ... |
| 62 | + def before_script_execute(self) -> None: ... |
| 63 | + @classmethod |
| 64 | + def temp_dir(cls) -> str: ... |
| 65 | + def save(self) -> None: ... |
| 66 | + |
| 67 | +class FieldOutFileInfo(FieldFileInfo): |
| 68 | + def __init__(self, fimeta: FieldId) -> None: ... |
| 69 | + def save(self) -> None: ... |
| 70 | + |
| 71 | +class FieldPathInfo(FieldFileInfo): |
| 72 | + def save(self) -> None: ... |
| 73 | + def after_script_executed(self) -> None: ... |
| 74 | + |
| 75 | +class FieldPathOutInfo(FieldOutFileInfo): |
| 76 | + def save(self) -> None: ... |
| 77 | + def after_script_executed(self) -> None: ... |
| 78 | + |
| 79 | +def zip_folder(folder_path: str, out_folder: str, out_prefix: str) -> str: ... |
0 commit comments