Name | shipyard-coalesce JSON |
Version |
0.2.2
JSON |
| download |
home_page | None |
Summary | A local client for connecting and working with Coalesce |
upload_time | 2024-07-01 15:14:31 |
maintainer | None |
docs_url | None |
author | wrp801 |
requires_python | <4.0,>=3.9 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
```python
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
```python
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.
```python
run_id = response['runCounter']
status = client.get_run_status(run_id)
print(status.text)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "shipyard-coalesce",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "wrp801",
"author_email": "wespoulsen@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/88/fb/8bcc45ba5a5982d8348355b96ccee3a70accce9c504d1f917af922caaa33/shipyard_coalesce-0.2.2.tar.gz",
"platform": null,
"description": "# shipyard-coalesce\n\n## Description \nA local client to trigger Coalesce job's and check statuses of past runs\n\nInstallation \n`python3 -m pip install shipyard-coalesce`\n\n## Usage\nEstablish the client by running the following\n\n```python\nfrom shipyard_coalesce import CoalesceClient\nclient = CoalesceClient(access_token = '<your_access_token>')\n```\n\n### Trigger syncs\nThe following arguments are required for the `trigger_sync` function:\n- environment_id \n- snowflake_username\n- snowflake_password\n- snowflake_role\n\nThe following arguments are optional:\n- snowflake_warehouse\n- include_nodes_selector\n- exclude_nodes_selector\n- parallelism\n- job_id\n\n```python\nresponse = client.trigger_sync(environment_id = environment_id, snowflake_username = snowflake_username, snowflake_password = snowflake_password, snowflake_role = snowflake_role)\nprint(response)\n```\n\n### Sync Status\nTo verify the sync status, you will need the `runID`, which is obtained in the response from the `trigger_sync` method. \n\n```python\nrun_id = response['runCounter']\nstatus = client.get_run_status(run_id)\nprint(status.text)\n```",
"bugtrack_url": null,
"license": null,
"summary": "A local client for connecting and working with Coalesce",
"version": "0.2.2",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b49e0a451b8802e9ce258f3566f876b04d5459850328fa426ffd7d814edd4f64",
"md5": "e8a9c2bc831f4878eda68d0398ca142d",
"sha256": "798c205d6a8e1411fbc272d5990c235a2d3bb49fee747ac9dfc7f17f0eae6321"
},
"downloads": -1,
"filename": "shipyard_coalesce-0.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e8a9c2bc831f4878eda68d0398ca142d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 6974,
"upload_time": "2024-07-01T15:14:30",
"upload_time_iso_8601": "2024-07-01T15:14:30.116713Z",
"url": "https://files.pythonhosted.org/packages/b4/9e/0a451b8802e9ce258f3566f876b04d5459850328fa426ffd7d814edd4f64/shipyard_coalesce-0.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "88fb8bcc45ba5a5982d8348355b96ccee3a70accce9c504d1f917af922caaa33",
"md5": "d25e265121a221b297d44d492c05b686",
"sha256": "2665bdf634b49946bfb991f7c6dfea164d993590cc028b6722954fcc4ce15a2a"
},
"downloads": -1,
"filename": "shipyard_coalesce-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "d25e265121a221b297d44d492c05b686",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 4981,
"upload_time": "2024-07-01T15:14:31",
"upload_time_iso_8601": "2024-07-01T15:14:31.047907Z",
"url": "https://files.pythonhosted.org/packages/88/fb/8bcc45ba5a5982d8348355b96ccee3a70accce9c504d1f917af922caaa33/shipyard_coalesce-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-01 15:14:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "shipyard-coalesce"
}