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)
Metadata
Release files for shipyard-coalesce 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shipyard_coalesce-0.2.2.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shipyard_coalesce-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / shipyard_coalesce-0.2.2.tar.gz
| Download URL | shipyard_coalesce-0.2.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2665bdf634b49946bfb991f7c6dfea164d993590cc028b6722954fcc4ce15a2a
|
|
BLAKE2b-256 checksum How to use checksums |
88fb8bcc45ba5a5982d8348355b96ccee3a70accce9c504d1f917af922caaa33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.16 Darwin/22.5.0
|
Release files / shipyard_coalesce-0.2.2-py3-none-any.whl
| Download URL | shipyard_coalesce-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
798c205d6a8e1411fbc272d5990c235a2d3bb49fee747ac9dfc7f17f0eae6321
|
|
BLAKE2b-256 checksum How to use checksums |
b49e0a451b8802e9ce258f3566f876b04d5459850328fa426ffd7d814edd4f64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.16 Darwin/22.5.0
|