pyrobale.objects.utils¶
Functions¶
|
|
|
|
|
|
|
|
|
Converts a dictionary with keys in snake_case to camelCase. |
|
|
|
|
|
Module Contents¶
- pyrobale.objects.utils.build_api_url(base, endpoint)[source]¶
- Parameters:
base (str)
endpoint (str)
- Return type:
str
- async pyrobale.objects.utils.make_post(url, data=None, headers=None)[source]¶
- Parameters:
url (str)
data (dict)
headers (dict)
- Return type:
dict
- async pyrobale.objects.utils.make_get(url, headers=None)[source]¶
- Parameters:
url (str)
headers (dict)
- Return type:
dict
- async pyrobale.objects.utils.make_via_multipart(url, data)[source]¶
- Parameters:
url (str)
data (aiohttp.FormData)
- Return type:
dict
- 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