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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file airbyte-api-wrapper-0.0.3.tar.gz.

File metadata

  • Download URL: airbyte-api-wrapper-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for airbyte-api-wrapper-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c3224fb3629dfdde042ebc34d43399b2ec03e1febde403943a742a34ead5ba27
MD5 c3d27f3363fc78cbb59de2211fa85062
BLAKE2b-256 633d7e868a92f28cfc45c8e86db343ce11af0ae136314609305e7a86a98351fd

See more details on using hashes here.

File details

Details for the file airbyte_api_wrapper-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for airbyte_api_wrapper-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1e457325ad828fd4f93c5f48e0b136e7db2a353d534531be06a0c39c633b7802
MD5 d537096b24b1a73709ada2883b5502d3
BLAKE2b-256 a265f5dc6fd19183e66e4d3598802ed0146ef3698b0985902cac1246a1171f66

See more details on using hashes here.

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