mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
34 lines
788 B
Python
34 lines
788 B
Python
# -*- coding:utf-8 -*-
|
|
"""
|
|
@Author : g1879
|
|
@Contact : g1879@qq.com
|
|
"""
|
|
from pathlib import Path
|
|
from typing import Union
|
|
from types import FunctionType
|
|
|
|
|
|
def get_exe_from_port(port: Union[str, int]) -> Union[str, None]: ...
|
|
|
|
|
|
def get_pid_from_port(port: Union[str, int]) -> Union[str, None]: ...
|
|
|
|
|
|
def get_usable_path(path: Union[str, Path]) -> Path: ...
|
|
|
|
|
|
def make_valid_name(full_name: str) -> str: ...
|
|
|
|
|
|
def get_long(txt) -> int: ...
|
|
|
|
|
|
def port_is_using(ip: str, port: Union[str, int]) -> bool: ...
|
|
|
|
|
|
def clean_folder(folder_path: Union[str, Path], ignore: Union[tuple, list] = None) -> None: ...
|
|
|
|
|
|
def unzip(zip_path: str, to_path: str) -> Union[list, None]: ...
|
|
|
|
def wait_until(page, condition: Union[FunctionType, str, tuple], timeout: float, poll: float, raise_err: bool): ... |