A local client for connecting and working with Coalesce
Project description
shipyard-coalesce
Description
A local client to trigger Coalesce job's and check statuses of past runs
Installation
python3 -m pip install shipyard-coalesce
Usage
Establish the client by running the following
from shipyard_coalesce import CoalesceClient
client = CoalesceClient(access_token = '<your_access_token>')
Trigger syncs
The following arguments are required for the trigger_sync
function:
- environment_id
- snowflake_username
- snowflake_password
- snowflake_role
The following arguments are optional:
- snowflake_warehouse
- include_nodes_selector
- exclude_nodes_selector
- parallelism
- job_id
response = client.trigger_sync(environment_id = environment_id, snowflake_username = snowflake_username, snowflake_password = snowflake_password, snowflake_role = snowflake_role)
print(response)
Sync Status
To verify the sync status, you will need the runID
, which is obtained in the response from the trigger_sync
method.
run_id = response['runCounter']
status = client.get_run_status(run_id)
print(status.text)
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
Built Distribution
Close
Hashes for shipyard_coalesce-0.2.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2136a9fac35b473ac00da51db6651944f6a0351e8d2c7f7dd271e088cfb24ea |
|
MD5 | 7234965c84f868ba08019128fc1a03d0 |
|
BLAKE2b-256 | 538afdf9037374e9609a608fae233112787fdffa8268836d9f592422dbd6f355 |
Close
Hashes for shipyard_coalesce-0.2.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dadc0532e1e5eff9af714ceb82d64f9fb570449e4d0d47917a11a50777b39bb6 |
|
MD5 | 6db3cc82f2d9f257c8c774b649c0bee5 |
|
BLAKE2b-256 | 9e245d81a7dfa47b03c9e429929af00c3080ad5df8fd3c81cad283bad2fb9ab6 |