-
Notifications
You must be signed in to change notification settings - Fork 64
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() → None
class_for_name(module_name: str, class_name: str) → Any
generate_urlsafe_hash(string: str) → str
get_absolute_path(path: str) → str
get_executable_path(exec_path: str) → Optional[str]
re_search_fail(expression: str, line: str) → Match
list_chunks(iterable: List, size: int) → Generator
chunk_list(iterable: Union[List, Iterable], size: int) → List[List]
get_pool_size() → int
check_single_not_none_var(**kwargs) → None
check_required_single_not_none_var(**kwargs) → None
is_platform(desired_platform: str) → bool
exec_by_platform(
fun_linux: Callable,
fun_windows: Callable,
fun_mac: Callable
) → Any
pywintypes_import_stub() → module
Stub module of pywintypes for Unix systems (so it won't raise any module not found
exception).
pywintypes_import_win() → module
import_pywintypes() → module
wait_user_input_linux() → list
Non-blocking input function for Linux and macOS.
wait_user_input_windows() → bool
Return 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() → bool
get_current_user_home() → str
get_current_user_uid_gid() → (<class 'int'>, <class 'int'>)
get_current_user_name() → str
get_current_user_info() → Any
get_architecture() → str
human_readable_bytes(size_bytes: int) → str
pack_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) → bytes
parse_cd_mac_address(value) → Tuple[str, str]
This file was automatically generated via lazydocs.
Website: kathara.org
Contact us: contact@kathara.org