pyrobale.objects.utils

Functions

build_api_url(base, endpoint)

make_post(url[, data, headers])

make_get(url[, headers])

make_via_multipart(url, data)

pythonize(dictionary)

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)

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

Converts a dictionary with keys in snake_case to camelCase.

Parameters:

dictionary (dict)

Return type:

dict