Submodules

airbyte_cdk.sources.declarative.decoders.decoder module

class airbyte_cdk.sources.declarative.decoders.decoder.Decoder

Bases: object

Decoder strategy to transform a requests.Response into a Mapping[str, Any]

abstract decode(response: requests.models.Response) Union[Mapping[str, Any], List]

Decodes a requests.Response into a Mapping[str, Any] or an array :param response: the response to decode :return: Mapping or array describing the response

airbyte_cdk.sources.declarative.decoders.json_decoder module

class airbyte_cdk.sources.declarative.decoders.json_decoder.JsonDecoder(parameters: dataclasses.InitVar[Mapping[str, Any]])

Bases: airbyte_cdk.sources.declarative.decoders.decoder.Decoder

Decoder strategy that returns the json-encoded content of a response, if any.

decode(response: requests.models.Response) Union[Mapping[str, Any], List]

Decodes a requests.Response into a Mapping[str, Any] or an array :param response: the response to decode :return: Mapping or array describing the response

parameters: dataclasses.InitVar[Mapping[str, Any]]

Module contents

class airbyte_cdk.sources.declarative.decoders.Decoder

Bases: object

Decoder strategy to transform a requests.Response into a Mapping[str, Any]

abstract decode(response: requests.models.Response) Union[Mapping[str, Any], List]

Decodes a requests.Response into a Mapping[str, Any] or an array :param response: the response to decode :return: Mapping or array describing the response

class airbyte_cdk.sources.declarative.decoders.JsonDecoder(parameters: dataclasses.InitVar[Mapping[str, Any]])

Bases: airbyte_cdk.sources.declarative.decoders.decoder.Decoder

Decoder strategy that returns the json-encoded content of a response, if any.

decode(response: requests.models.Response) Union[Mapping[str, Any], List]

Decodes a requests.Response into a Mapping[str, Any] or an array :param response: the response to decode :return: Mapping or array describing the response

parameters: dataclasses.InitVar[Mapping[str, Any]]