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.3a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95a4a22fd4992ff6a275e992010035a7c99237a849711e5632f359eadfe14c9b |
|
MD5 | 4705c814e151333a27ef5b5e9771056a |
|
BLAKE2b-256 | 490a01744157a4b25ab09d8fd679d63e38d0e6b99a8bab8a310cbd4e74301788 |
Close
Hashes for shipyard_coalesce-0.2.3a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26c3ed0073b3217eb75498acc6287b71789068be42f1d836a948bcc3949411a7 |
|
MD5 | 7633d8f91e11edafcfded80a99bc3cc9 |
|
BLAKE2b-256 | 884d834d8c6584f84694a6af3068fb5c4f562e4c297b9dbf082849c494701222 |