Wrk Platform SDK
Project description
Wrk Platform SDK
A Python Wrk Platform SDK. It is a library that provides a set of tools to interact with the Wrk Platform.
Requirements.
Python 3.8+
Installation & Usage
pip install wrk-platform-sdk
Then import the package:
import wrk_platform_sdk
Getting Started
Please follow the installation procedure and then run the following:
import wrk_platform_sdk
from wrk_platform_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://account.wrk.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = wrk_platform_sdk.Configuration(
host = "https://account.wrk.com/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key_prefix['ApiKeyAuth'] = 'Api-Key'
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Enter a context with an instance of the API client
with wrk_platform_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wrk_platform_sdk.LaunchesApi(api_client)
launch_id = 'launch_id_example' # str |
try:
# Fetch a specific Wrkflow Launch
api_response = api_instance.get_launch_by_id(launch_id)
print("The response of LaunchesApi->get_launch_by_id:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling LaunchesApi->get_launch_by_id: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://account.wrk.com/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| LaunchesApi | get_launch_by_id | GET /launch/{launch_id} | Fetch a specific Wrkflow Launch |
| LaunchesApi | get_launches | GET /launch | Fetch multiple Wrkflow Launches |
| LaunchesApi | launch_wrkflow | POST /wrkflow/{wrkflow_uuid}/launch | Launch a Wrkflow |
| LaunchesApi | pause_launch | POST /launch/{launch_id}/pause | Pause a Wrkflow Launch |
| LaunchesApi | resume_launch | POST /launch/{launch_id}/resume | Resume a Wrkflow Launch |
| WrkflowsApi | get_wrkflow_by_uuid | GET /wrkflow/{wrkflow_uuid} | Fetch a specific Wrkflow |
| WrkflowsApi | get_wrkflows | GET /wrkflow | Fetch multiple Wrkflows |
Documentation For Models
- GetLaunchByIdResponse
- GetLaunchesResponse
- GetWrkflowByUuidResponse
- GetWrkflowsResponse
- Launch
- LaunchState
- LaunchWrkflowRequest
- LaunchWrkflowResponse
- WrkError
- WrkErrorDetails
- Wrkflow
- WrkflowSchedule
Documentation For Authorization
Authentication schemes defined for the API:
ApiKeyAuth
- Type: API key
- API key parameter name: Authorization
- API key prefix: Api-Key
- Location: HTTP header
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wrk_platform_sdk-2.5.0.tar.gz.
File metadata
- Download URL: wrk_platform_sdk-2.5.0.tar.gz
- Upload date:
- Size: 49.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf8bdb8928b58f6a7b41ab0363a607a2936131aa4a8321df9ddbd9af8b468c5d
|
|
| MD5 |
d9762ce62d375feb657c5a84e152e320
|
|
| BLAKE2b-256 |
20a24fc1ab71dc613f0f5c1fd6aef02e08ac260d918a154e80517f0da7afdd8a
|
File details
Details for the file wrk_platform_sdk-2.5.0-py3-none-any.whl.
File metadata
- Download URL: wrk_platform_sdk-2.5.0-py3-none-any.whl
- Upload date:
- Size: 99.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bfe43c5302290fedfbb484871ac9da97530c692052423199663dca61fcaba21
|
|
| MD5 |
7cf65bbd6d7cceafea6198c3229d5054
|
|
| BLAKE2b-256 |
653726d5155217c5da6c7999eeafaeb83f56f74cc4d143d10bc17e7aa9affc5d
|