Back to Airbyte

Using PyAirbyte

docusaurus/platform_versioned_docs/version-1.7/using-airbyte/pyairbyte/getting-started.mdx

2.0.02.1 KB
Original Source

Using PyAirbyte

PyAirbyte brings the power of Airbyte to every Python and AI developer.

Installation

bash
pip install airbyte

Quickstarts

Demos

Please check out this YouTube video on how to get started with PyAirbyte!

PyAirbyte API Reference

Please refer to our PyAirbyte API Reference for a full list of classes, methods, and usage examples.

Usage

Data can be extracted from sources and loaded into caches:

<a href="https://colab.research.google.com/github/airbytehq/quickstarts/blob/master/pyairbyte_notebooks/PyAirbyte_Basic_Features_Demo.ipynb" target="_parent"></a>

python
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")