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.1.3a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e94381856b53155f7c45a2d6e376bcac0e55b4066f05517c08c9f5185982d6b3 |
|
MD5 | 81d30d60662f01b6e21fa9b4e93e7626 |
|
BLAKE2b-256 | f5bba7c796be3ace91b8de8edd982d4053d116f495bcdee7d95827036f3ee992 |
Close
Hashes for shipyard_coalesce-0.1.3a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69715f42bf48d4eab7744861212963c777319a1922bdaa34da1a378e28e9308 |
|
MD5 | c4b1fddb0a963c6ec1f59b7b38463673 |
|
BLAKE2b-256 | 9e1a00a48c64b3a8e6ece9f8a21e375ff046ac9a64e53c7594110ffb763da6aa |