Utils
- pymirokai.utils.async_wrapper.make_async(func)
Decorator to make a function asynchronous and handle both sync and async calls.
- Parameters:
func (Callable[..., Any]) – The function to make asynchronous.
- Return type:
Callable[...,Any]- Returns:
Callable[…, Any] – The asynchronous version of the function.
Get the local IP address of the machine.
- pymirokai.utils.get_local_ip.get_local_ip()
Get the local IPv4 address of the current machine using a dummy UDP connection.
- Return type:
str- Returns:
Local IP as a string, or ‘127.0.0.1’ if retrieval fails.