TWS client for Python.
Project description
tws-py
Python client for TWS.
Installation
pip install tws-sdk
Usage
The library provides both synchronous and asynchronous clients for interacting with TWS.
The primary API is run_workflow, which executes a workflow configured via the TWS UI, waits for completion,
and returns the result.
Synchronous Usage
from tws import create_client
# Create a client instance
client = create_client(
public_key="your_public_key",
secret_key="your_secret_key",
api_url="your_api_url"
)
# Run a workflow and wait for completion
result = client.run_workflow(
workflow_definition_id="your_workflow_id",
workflow_args={
"param1": "value1",
"param2": "value2"
},
)
Asynchronous Usage
The signatures are exactly the same for async usage, but the client is created using create_async_client and client
methods are awaited.
from tws import create_async_client
async def main():
# Create an async client instance
client = await create_async_client(
public_key="your_public_key",
secret_key="your_secret_key",
api_url="your_api_url"
)
# Run a workflow and wait for completion
result = await client.run_workflow(
workflow_definition_id="your_workflow_id",
workflow_args={
"param1": "value1",
"param2": "value2"
},
)
Project details
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 tws_sdk-0.1.0.tar.gz.
File metadata
- Download URL: tws_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4d6039a50c6d3838db93b9884f8ca85fff59596b6eb6d7af9ed09b84740dd24
|
|
| MD5 |
6889266f827b26e526cefc24eeab1da7
|
|
| BLAKE2b-256 |
4bf26f0d40e726af30237cdea629366963cce1dd32fbef884c1fbd0535fe6827
|
Provenance
The following attestation bundles were made for tws_sdk-0.1.0.tar.gz:
Publisher:
publish.yaml on Fireline-Science/tws-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tws_sdk-0.1.0.tar.gz -
Subject digest:
e4d6039a50c6d3838db93b9884f8ca85fff59596b6eb6d7af9ed09b84740dd24 - Sigstore transparency entry: 158974576
- Sigstore integration time:
-
Permalink:
Fireline-Science/tws-py@b309a1654cef71a4f53861c41f0704a0a7ed8105 -
Branch / Tag:
refs/tags/v0.1.0-rc.1 - Owner: https://github.com/Fireline-Science
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@b309a1654cef71a4f53861c41f0704a0a7ed8105 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tws_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tws_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
812c707c0c6fd46320c27879846eb5e69162059f7e21c18138a8e02048915dae
|
|
| MD5 |
688d3a2d80a69957768ff24908595baa
|
|
| BLAKE2b-256 |
ca23c099a8788a02774e68ff9d8d35bc84f1203bd41d170cc4f1befb45c0ac62
|
Provenance
The following attestation bundles were made for tws_sdk-0.1.0-py3-none-any.whl:
Publisher:
publish.yaml on Fireline-Science/tws-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tws_sdk-0.1.0-py3-none-any.whl -
Subject digest:
812c707c0c6fd46320c27879846eb5e69162059f7e21c18138a8e02048915dae - Sigstore transparency entry: 158974577
- Sigstore integration time:
-
Permalink:
Fireline-Science/tws-py@b309a1654cef71a4f53861c41f0704a0a7ed8105 -
Branch / Tag:
refs/tags/v0.1.0-rc.1 - Owner: https://github.com/Fireline-Science
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@b309a1654cef71a4f53861c41f0704a0a7ed8105 -
Trigger Event:
push
-
Statement type: