pyrobale.objects.utilsΒΆ

FunctionsΒΆ

pythonize(dictionary)

Converts a dictionary with keys in snake_case to camelCase.

sync_to_async(func)

async_to_sync(func)

smart_method(…)

Module ContentsΒΆ

pyrobale.objects.utils.pythonize(dictionary)[source]ΒΆ

Converts a dictionary with keys in snake_case to camelCase.

Parameters:

dictionary (dict)

Return type:

dict

pyrobale.objects.utils.sync_to_async(func)[source]ΒΆ
Parameters:

func (Callable)

Return type:

Callable

pyrobale.objects.utils.async_to_sync(func)[source]ΒΆ
Parameters:

func (Callable[Ellipsis, Awaitable[Any]])

Return type:

Callable[Ellipsis, Any]

pyrobale.objects.utils.smart_method(func: Callable[Ellipsis, Awaitable[Any]]) Callable[Ellipsis, Awaitable[Any]][source]ΒΆ
pyrobale.objects.utils.smart_method(func: Callable[Ellipsis, Any]) Callable[Ellipsis, Any]