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.3a3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24e2448bff3cc4f91e60040950d195bd396c663b70082a16d9a66aa8715f9c90 |
|
MD5 | f74cac71ddcbaa51275898f7a9fed3b8 |
|
BLAKE2b-256 | d53719fa2be2ceb2978cb0d691b4b9f72562e5aa0f89df5459b078d8209ac91c |
Close
Hashes for shipyard_coalesce-0.2.3a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14fd77787fb33a73d405f0f5eef755d64d4dd09e2ea2bc868546ea1f4f2fb0c1 |
|
MD5 | a64a6e0f2b9d0a02ba009982774c1a04 |
|
BLAKE2b-256 | ddef455b48d7d387c49c7f42a439456fba8832dbc2c5ab78303ea5860e209a27 |