cterasdk.clients.common module#
- class cterasdk.clients.common.Deserializers#
Bases:
object- DAV()#
Convert an WebdAV XML String to a Python Object.
- Parameters:
s (str) – String
- JSON()#
- XML()#
Convert an XML String to a Python Object.
- Parameters:
s (str) – String
- class cterasdk.clients.common.MultipartForm#
Bases:
objectMultipart 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:
FormDataClass 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
Trueno_log (book) – Hide sensitive values in the log messages
- Returns:
JSON string of the object
- Return type:
str