Skip to main content

A wrapper for Airbyte API.

Project description

Python wrapper for API

Full API spec of the API can be found here:

https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html

How to use

Create client

from airbyte_python_helper import AirbyteHelper
import os

airbyte_url = os.environ["AIRBYTE_URL"]
airbyte_client_id = os.environ["CLIENT_ID"]
airbyte_client_secret = os.environ["CLIENT_SECRET"]

airbyte_client = AirbyteHelper(
airbyte_url, airbyte_client_id, airbyte_client_secret
)

Destinations

wid = airbyte_client.get_first_workspace_id()
print("workspaceId", wid)
print(airbyte_client.list_destinations(wid))

for destination in airbyte_client.list_destinations(wid):
    airbyte_client.delete_destination(destination["destinationId"])

sources = airbyte_client.list_sources(wid)

Sources

wid = airbyte_client.get_first_workspace_id()
print("workspaceId", wid)
sources = airbyte_client.list_sources(wid)
print(sources)
for source in sources:
    print(source["sourceId"])

Workspaces

workspaces = airbyte_client.list_workspaces()
print(workspaces)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airbyte-api-wrapper-0.0.3.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

airbyte_api_wrapper-0.0.3-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page