A local client to work with Airbyte Cloud
Project description
shipyard-airbyte
Description
A local client to trigger Airbyte syncs and check statuses of past jobs
Installation
python3 -m pip install shipyard-airbyte
Usage
Establish the client by running the following
from shipyard_airbyte import AirbyteClient
ac = AirbyteClient(access_token = '<your_api_token>')
Trigger Syncs
To trigger a sync, you will need to provide the connector id to the trigger_sync
method, which will return the json response from the API
sync_response = ac.trigger_sync(connection_id = '<your_connection_id>')
print(sync_response)
Sync Status
To verify the status of a past sync, you will need the jobId
. This can be found from the sync_response shown above:
sync_response = ac.trigger_sync(connection_id = '<your_connection_id>')
job_id = sync_response['jobId']
sync_status = ac.get_sync_status(job_id)
print(sync_status)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shipyard_airbyte-0.1.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for shipyard_airbyte-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ce6d4959face5363c89df0c9aba1f6cb02bc5861c696c2bf25adf478aacf95 |
|
MD5 | 2308eb5cd01d0f934978ff18410daea3 |
|
BLAKE2b-256 | 5727a2b163d4baf7d04028d7a80e8f4cf37167f3aa77e1d3d21f178085a36341 |