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 computer’s IP on local network.

Return type:

str

Returns:

str – The local IP address or the hostname if no IP address is found.