Modifying PyAirbyte Source Configuration

Summary

User seeks guidance on customizing a PyAirbyte integration by replacing the ‘source-faker’ example with a custom source configuration that includes specific parameters for connecting to Redshift.


Question

I’m looking for guidance on using PyAirbyte as an integration tool to easily connect multiple data sources, such as Redshift.

I reviewed the demo, but I want to replace the source-faker example with a custom source configuration that includes parameters like:

  • endpoint
  • username
  • password
  • database
  • table

Here’s the demo code for context:

import airbyte as ab

source = ab.get_source(
    "source-faker",
    config={"count": 5_000},
    install_if_missing=True,
)
source.check()
source.select_all_streams()
result = source.read()

for name, records in result.streams.items():
    print(f"Stream {name}: {len(list(records))} records")

How can I modify this to use my own source with the specified parameters? Any help would be greatly appreciate



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

['pyairbyte', 'source-configuration', 'redshift', 'custom-source', 'integration']