Skip to main content

Python Client SDK for Airbyte API

Project description

Programatically control Airbyte Cloud through an API.

Authentication

Developers will need to create an API Key within your Developer Portal to make API requests. You can use your existing Airbyte account to log in to the Developer Portal. Once you are in the Developer Portal, use the API Keys tab to create or remove API Keys. You can see a walkthrough demo here🎦

The Developer Portal UI can also be used to help build your integration by showing information about network requests in the Requests tab. API usage information is also available to you in the Usage tab.

SDK Installation

pip install airbyte-api

SDK Example Usage

import airbyte
from airbyte.models import shared

s = airbyte.Airbyte(
    security=shared.Security(
        basic_auth=shared.SchemeBasicAuth(
            password="",
            username="",
        ),
    ),
)

req = shared.ConnectionCreateRequest(
    configurations=shared.StreamConfigurations(
        streams=[
            shared.StreamConfiguration(
                cursor_field=[
                    'violet',
                ],
                name='Account',
                primary_key=[
                    [
                        'BMW',
                    ],
                ],
            ),
        ],
    ),
    destination_id='e362083e-afc8-4559-94e0-a570f6dd427d',
    namespace_format='${SOURCE_NAMESPACE}',
    schedule=shared.ConnectionSchedule(
        schedule_type=shared.ScheduleTypeEnum.CRON,
    ),
    source_id='3a555847-8358-4423-a5b6-c7b3fd2fd307',
)

res = s.connections.create_connection(req)

if res.connection_response is not None:
    # handle response
    pass

Available Resources and Operations

connections

destinations

jobs

sources

streams

workspaces

Pagination

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the returned response object will have a Next method that can be called to pull down the next group of results. If the return value of Next is None, then there are no more pages to be fetched.

Here's an example of one such pagination call:

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !

SDK Created by Speakeasy

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-0.40.0.tar.gz (169.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airbyte_api-0.40.0-py3-none-any.whl (395.1 kB view details)

Uploaded Python 3

File details

Details for the file airbyte-api-0.40.0.tar.gz.

File metadata

  • Download URL: airbyte-api-0.40.0.tar.gz
  • Upload date:
  • Size: 169.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for airbyte-api-0.40.0.tar.gz
Algorithm Hash digest
SHA256 3af82170dd878e16a30fe46337b1a8208e6f6d25efb34cd33a7ca2987aa15242
MD5 9465f57d961d9fe753b1a39e4d54d28a
BLAKE2b-256 77ed95474dc738c02456de3ac7cc591f750e11272acca8a9559f82faf8d4dd24

See more details on using hashes here.

File details

Details for the file airbyte_api-0.40.0-py3-none-any.whl.

File metadata

  • Download URL: airbyte_api-0.40.0-py3-none-any.whl
  • Upload date:
  • Size: 395.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for airbyte_api-0.40.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1712cbd14c340409ce721aea89b734e83928155618fb2ef2a366b09c110cc0b
MD5 e4135813e2b9f990a36285c9f7f27276
BLAKE2b-256 d89174674f22f74bc3b184b2cd5dc218e4c9bacf664dbfb87ddf947eedd63e68

See more details on using hashes here.

Supported by

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