-
-
Notifications
You must be signed in to change notification settings - Fork 80
Kathara.utils
Tommaso Caiazzi edited this page Mar 18, 2024
·
2 revisions
- MAC_OS
- WINDOWS
- LINUX
- LINUX2
- EXCLUDED_FILES
- RESERVED_MACHINE_NAMES
check_python_version() → Noneclass_for_name(module_name: str, class_name: str) → Anygenerate_urlsafe_hash(string: str) → strget_absolute_path(path: str) → strget_executable_path(exec_path: str) → Optional[str]re_search_fail(expression: str, line: str) → Matchlist_chunks(iterable: List, size: int) → Generatorchunk_list(iterable: Union[List, Iterable], size: int) → List[List]get_pool_size() → intcheck_single_not_none_var(**kwargs) → Nonecheck_required_single_not_none_var(**kwargs) → Noneis_platform(desired_platform: str) → boolexec_by_platform(
fun_linux: Callable,
fun_windows: Callable,
fun_mac: Callable
) → Anypywintypes_import_stub() → moduleStub module of pywintypes for Unix systems (so it won't raise any module not found exception).
pywintypes_import_win() → moduleimport_pywintypes() → modulewait_user_input_linux() → listNon-blocking input function for Linux and macOS.
wait_user_input_windows() → boolReturn True if an Enter keypress is waiting to be read. Only for Windows.
convert_win_2_linux(filename: str, write: bool = False) → Optional[bytes]is_admin() → boolget_current_user_home() → strget_current_user_uid_gid() → (<class 'int'>, <class 'int'>)get_current_user_name() → strget_current_user_info() → Anyget_architecture() → strhuman_readable_bytes(size_bytes: int) → strpack_file_for_tar(
file_obj: Union[str, io.IOBase],
arc_name: str
) → (<class 'tarfile.TarInfo'>, <class 'bytes'>)pack_files_for_tar(guest_to_host: Dict) → bytesparse_cd_mac_address(value) → Tuple[str, str]This file was automatically generated via lazydocs.
Website: kathara.org
Contact us: contact@kathara.org