cterasdk.clients.common module#
- class cterasdk.clients.common.MultipartForm#
Bases:
object
Multipart Request Form
- add(name, value, filename=None, content_transfer_encoding=None)#
- property data#
- class cterasdk.clients.common.Serializers#
Bases:
object
- class FormData(fields: Iterable[Any] = (), quote_fields: bool = True, charset: str | None = None, *, default_to_multipart: bool = False)#
Bases:
FormData
Class representing URL-encoded form data
- JSON(pretty_print=True, no_log=True)#
Convert a Python object to a JSON string.
- Parameters:
obj (object) – the Python object
pretty_print (bool) – Whether to format the JSON string, defaults to
True
no_log (book) – Hide sensitive values in the log messages
- Returns:
JSON string of the object
- Return type:
str
- XML(pretty_print=False)#
Convert a Python object to an XML string
- Parameters:
obj (object) – the Python object
pretty_print (bool) – whether to format the XML string, defaults to
False
- Returns:
XML string of the object
- Return type:
str