Subpackages
- Submodules
- airbyte_cdk.destinations.destination module
- Module contents
- Submodules
- airbyte_cdk.models.airbyte_protocol module
- Module contents
- Subpackages
- Subpackages
- Submodules
- airbyte_cdk.sources.declarative.auth.oauth module
- airbyte_cdk.sources.declarative.auth.token module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.checks.check_stream module
- airbyte_cdk.sources.declarative.checks.connection_checker module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.datetime.datetime_parser module
- airbyte_cdk.sources.declarative.datetime.min_max_datetime module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.decoders.decoder module
- airbyte_cdk.sources.declarative.decoders.json_decoder module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.extractors.dpath_extractor module
- airbyte_cdk.sources.declarative.extractors.http_selector module
- airbyte_cdk.sources.declarative.extractors.record_extractor module
- airbyte_cdk.sources.declarative.extractors.record_filter module
- airbyte_cdk.sources.declarative.extractors.record_selector module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.interpolation.interpolated_boolean module
- airbyte_cdk.sources.declarative.interpolation.interpolated_mapping module
- airbyte_cdk.sources.declarative.interpolation.interpolated_string module
- airbyte_cdk.sources.declarative.interpolation.interpolation module
- airbyte_cdk.sources.declarative.interpolation.jinja module
- airbyte_cdk.sources.declarative.interpolation.macros module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.parsers.class_types_registry module
- airbyte_cdk.sources.declarative.parsers.config_parser module
- airbyte_cdk.sources.declarative.parsers.default_implementation_registry module
- airbyte_cdk.sources.declarative.parsers.factory module
- airbyte_cdk.sources.declarative.parsers.undefined_reference_exception module
- airbyte_cdk.sources.declarative.parsers.yaml_parser module
- Module contents
- Subpackages
- Subpackages
- Submodules
- airbyte_cdk.sources.declarative.requesters.error_handlers.backoff_strategy module
- airbyte_cdk.sources.declarative.requesters.error_handlers.composite_error_handler module
- airbyte_cdk.sources.declarative.requesters.error_handlers.default_error_handler module
- airbyte_cdk.sources.declarative.requesters.error_handlers.error_handler module
- airbyte_cdk.sources.declarative.requesters.error_handlers.http_response_filter module
- airbyte_cdk.sources.declarative.requesters.error_handlers.response_action module
- airbyte_cdk.sources.declarative.requesters.error_handlers.response_status module
- Module contents
- Subpackages
- Submodules
- airbyte_cdk.sources.declarative.requesters.paginators.limit_paginator module
- airbyte_cdk.sources.declarative.requesters.paginators.no_pagination module
- airbyte_cdk.sources.declarative.requesters.paginators.paginator module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.requesters.request_options.interpolated_request_input_provider module
- airbyte_cdk.sources.declarative.requesters.request_options.interpolated_request_options_provider module
- airbyte_cdk.sources.declarative.requesters.request_options.request_options_provider module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.requesters.http_requester module
- airbyte_cdk.sources.declarative.requesters.request_option module
- airbyte_cdk.sources.declarative.requesters.requester module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.retrievers.retriever module
- airbyte_cdk.sources.declarative.retrievers.simple_retriever module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.schema.json_schema module
- airbyte_cdk.sources.declarative.schema.schema_loader module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.stream_slicers.cartesian_product_stream_slicer module
- airbyte_cdk.sources.declarative.stream_slicers.datetime_stream_slicer module
- airbyte_cdk.sources.declarative.stream_slicers.list_stream_slicer module
- airbyte_cdk.sources.declarative.stream_slicers.single_slice module
- airbyte_cdk.sources.declarative.stream_slicers.stream_slicer module
- airbyte_cdk.sources.declarative.stream_slicers.substream_slicer module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.transformations.add_fields module
- airbyte_cdk.sources.declarative.transformations.remove_fields module
- airbyte_cdk.sources.declarative.transformations.transformation module
- Module contents
- Submodules
- airbyte_cdk.sources.declarative.create_partial module
- airbyte_cdk.sources.declarative.declarative_source module
- airbyte_cdk.sources.declarative.declarative_stream module
- airbyte_cdk.sources.declarative.exceptions module
- airbyte_cdk.sources.declarative.types module
- airbyte_cdk.sources.declarative.yaml_declarative_source module
- Module contents
- Submodules
- airbyte_cdk.sources.deprecated.base_source module
- airbyte_cdk.sources.deprecated.client module
- Module contents
- Submodules
- airbyte_cdk.sources.singer.singer_helpers module
- airbyte_cdk.sources.singer.source module
- Module contents
- Subpackages
- Subpackages
- Submodules
- airbyte_cdk.sources.streams.http.auth.core module
- airbyte_cdk.sources.streams.http.auth.oauth module
- airbyte_cdk.sources.streams.http.auth.token module
- Module contents
- Submodules
- airbyte_cdk.sources.streams.http.requests_native_auth.abstract_oauth module
- airbyte_cdk.sources.streams.http.requests_native_auth.abstract_token module
- airbyte_cdk.sources.streams.http.requests_native_auth.oauth module
- airbyte_cdk.sources.streams.http.requests_native_auth.token module
- Module contents
- Submodules
- airbyte_cdk.sources.streams.http.exceptions module
- airbyte_cdk.sources.streams.http.http module
- airbyte_cdk.sources.streams.http.rate_limiting module
- Module contents
- Subpackages
- Submodules
- airbyte_cdk.sources.streams.core module
- Module contents
- Submodules
- airbyte_cdk.sources.utils.casing module
- airbyte_cdk.sources.utils.catalog_helpers module
- airbyte_cdk.sources.utils.schema_helpers module
- airbyte_cdk.sources.utils.schema_models module
- airbyte_cdk.sources.utils.transform module
- Module contents
- Subpackages
- Submodules
- airbyte_cdk.sources.abstract_source module
- airbyte_cdk.sources.config module
- airbyte_cdk.sources.source module
- Module contents
- Submodules
- airbyte_cdk.utils.airbyte_secrets_utils module
- airbyte_cdk.utils.event_timing module
- airbyte_cdk.utils.traced_exception module
- Module contents
Submodules
airbyte_cdk.connector module
- class airbyte_cdk.connector.AirbyteSpec(spec_string)
Bases:
object
- static from_file(file_name: str)
- class airbyte_cdk.connector.BaseConnector
Bases:
abc.ABC
,Generic
[airbyte_cdk.connector.TConfig
]- abstract check(logger: logging.Logger, config: airbyte_cdk.connector.TConfig) airbyte_protocol.models.airbyte_protocol.AirbyteConnectionStatus
Tests if the input configuration can be used to successfully connect to the integration e.g: if a provided Stripe API token can be used to connect to the Stripe API.
- check_config_against_spec: bool = True
- abstract configure(config: Mapping[str, Any], temp_dir: str) airbyte_cdk.connector.TConfig
Persist config in temporary directory to run the Source job
- static read_config(config_path: str) Mapping[str, Any]
- spec(logger: logging.Logger) airbyte_protocol.models.airbyte_protocol.ConnectorSpecification
Returns the spec for this integration. The spec is a JSON-Schema object describing the required configurations (e.g: username and password) required to run this integration. By default, this will be loaded from a “spec.yaml” or a “spec.json” in the package root.
- static write_config(config: airbyte_cdk.connector.TConfig, config_path: str)
- class airbyte_cdk.connector.Connector
Bases:
airbyte_cdk.connector.DefaultConnectorMixin
,airbyte_cdk.connector.BaseConnector
[Mapping
[str
,Any
]],abc.ABC
- class airbyte_cdk.connector.DefaultConnectorMixin
Bases:
object
- configure(config: Mapping[str, Any], temp_dir: str) Mapping[str, Any]
- airbyte_cdk.connector.load_optional_package_file(package: str, filename: str) Optional[bytes]
Gets a resource from a package, returning None if it does not exist
airbyte_cdk.entrypoint module
- class airbyte_cdk.entrypoint.AirbyteEntrypoint(source: airbyte_cdk.sources.source.Source)
Bases:
object
- static airbyte_message_to_string(airbyte_message: airbyte_protocol.models.airbyte_protocol.AirbyteMessage) Any
- check(source_spec: airbyte_protocol.models.airbyte_protocol.ConnectorSpecification, config: airbyte_cdk.connector.TConfig) Iterable[airbyte_protocol.models.airbyte_protocol.AirbyteMessage]
- discover(source_spec: airbyte_protocol.models.airbyte_protocol.ConnectorSpecification, config: airbyte_cdk.connector.TConfig) Iterable[airbyte_protocol.models.airbyte_protocol.AirbyteMessage]
- classmethod extract_catalog(args: List[str]) Optional[Any]
- classmethod extract_config(args: List[str]) Optional[Any]
- classmethod extract_state(args: List[str]) Optional[Any]
- static parse_args(args: List[str]) argparse.Namespace
- read(source_spec: airbyte_protocol.models.airbyte_protocol.ConnectorSpecification, config: airbyte_cdk.connector.TConfig, catalog: Any, state: Union[list[Any], MutableMapping[str, Any]]) Iterable[airbyte_protocol.models.airbyte_protocol.AirbyteMessage]
- run(parsed_args: argparse.Namespace) Iterable[str]
- static set_up_secret_filter(config: airbyte_cdk.connector.TConfig, connection_specification: Mapping[str, Any]) None
- static validate_connection(source_spec: airbyte_protocol.models.airbyte_protocol.ConnectorSpecification, config: airbyte_cdk.connector.TConfig) None
- airbyte_cdk.entrypoint.launch(source: airbyte_cdk.sources.source.Source, args: List[str]) None
- airbyte_cdk.entrypoint.main() None
airbyte_cdk.exception_handler module
- airbyte_cdk.exception_handler.assemble_uncaught_exception(exception_type: type[BaseException], exception_value: BaseException) airbyte_cdk.utils.traced_exception.AirbyteTracedException
- airbyte_cdk.exception_handler.init_uncaught_exception_handler(logger: logging.Logger) None
Handles uncaught exceptions by emitting an AirbyteTraceMessage and making sure they are not printed to the console without having secrets removed.
airbyte_cdk.logger module
- class airbyte_cdk.logger.AirbyteLogFormatter(fmt=None, datefmt=None, style='%', validate=True)
Bases:
logging.Formatter
Output log records using AirbyteMessage
- static extract_extra_args_from_record(record: logging.LogRecord)
The python logger conflates default args with extra args. We use an empty log record and set operations to isolate fields passed to the log record via extra by the developer.
- format(record: logging.LogRecord) str
Return a JSON representation of the log message
- level_mapping = {10: 'DEBUG', 20: 'INFO', 30: 'WARN', 40: 'ERROR', 50: 'FATAL'}
- class airbyte_cdk.logger.AirbyteLogger(*args, **kwargs)
Bases:
object
- debug(message)
- error(message)
- exception(message)
- fatal(message)
- info(message)
- log(level, message)
- trace(message)
- warn(message)
- airbyte_cdk.logger.init_logger(name: Optional[str] = None)
Initial set up of logger
- airbyte_cdk.logger.log_by_prefix(msg: str, default_level: str) Tuple[int, str]
Custom method, which takes log level from first word of message
Module contents
- class airbyte_cdk.AirbyteEntrypoint(source: airbyte_cdk.sources.source.Source)
Bases:
object
- static airbyte_message_to_string(airbyte_message: airbyte_protocol.models.airbyte_protocol.AirbyteMessage) Any
- check(source_spec: airbyte_protocol.models.airbyte_protocol.ConnectorSpecification, config: airbyte_cdk.connector.TConfig) Iterable[airbyte_protocol.models.airbyte_protocol.AirbyteMessage]
- discover(source_spec: airbyte_protocol.models.airbyte_protocol.ConnectorSpecification, config: airbyte_cdk.connector.TConfig) Iterable[airbyte_protocol.models.airbyte_protocol.AirbyteMessage]
- classmethod extract_catalog(args: List[str]) Optional[Any]
- classmethod extract_config(args: List[str]) Optional[Any]
- classmethod extract_state(args: List[str]) Optional[Any]
- static parse_args(args: List[str]) argparse.Namespace
- read(source_spec: airbyte_protocol.models.airbyte_protocol.ConnectorSpecification, config: airbyte_cdk.connector.TConfig, catalog: Any, state: Union[list[Any], MutableMapping[str, Any]]) Iterable[airbyte_protocol.models.airbyte_protocol.AirbyteMessage]
- run(parsed_args: argparse.Namespace) Iterable[str]
- static set_up_secret_filter(config: airbyte_cdk.connector.TConfig, connection_specification: Mapping[str, Any]) None
- static validate_connection(source_spec: airbyte_protocol.models.airbyte_protocol.ConnectorSpecification, config: airbyte_cdk.connector.TConfig) None
- class airbyte_cdk.AirbyteLogger(*args, **kwargs)
Bases:
object
- debug(message)
- error(message)
- exception(message)
- fatal(message)
- info(message)
- log(level, message)
- trace(message)
- warn(message)
- class airbyte_cdk.Connector
Bases:
airbyte_cdk.connector.DefaultConnectorMixin
,airbyte_cdk.connector.BaseConnector
[Mapping
[str
,Any
]],abc.ABC