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.3a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ae4f03eef7af59283fae384a0bda6b64b853bca772dd5f3b7d454cc22f64ced |
|
MD5 | e6f0e7f4513b0c9e58dc882ced38a12c |
|
BLAKE2b-256 | be4425b78c384e3ec44a3fd785fdcd9d04208caf4ca1f14b0a480449d7566b9a |
Close
Hashes for shipyard_coalesce-0.2.3a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2497e0438d5a6b9727a70870e4fbaff5075c43ac3061bb86454903e05a0d26 |
|
MD5 | 2817f3086efcc33ca18d1b639690c0cd |
|
BLAKE2b-256 | e53a4dde9f6b9df7480dae12b26ddf57787de18a2ff8a65f147546d6a26eab5f |