Python client library for hps data transfer service
Project description
Overview
PyHPS Data Transfer is a Python client library for the Ansys HPC Platform Services (HPS) data transfer service.
Installation
You can use pip to install PyHPS Data Transfer in user mode:
pip install ansys-hps-data-transfer-client
To install the latest development version from the GitHub repository, run these commands:
git clone https://github.com/ansys/pyhps-data-transfer/
cd pyhps-data-transfer
pip install -e .
For more information, see Getting started.
Basic usage
The following sections show how to import PyHPS Data Transfer and use some basic capabilities.
Request access token
The client library requires an access token to connect to the HPS Data Transfer service.
from ansys.hps.data_transfer.client.authenticate import authenticate
auth_url = "https://localhost:8443/hps/auth/realms/rep"
token = authenticate(username="repadmin", password="repadmin", verify=False, url=auth_url)
token = token.get("access_token", None)
Connect to data transfer service client
After obtaining the access token, you can connect to the data transfer service client:
from ansys.hps.data_transfer.client import Client # Import the Client class
dt_url = f"https://localhost:8443/hps/dt/api/v1"
client = Client() # Create a client object
client.binary_config.update(verbosity=3, debug=True, insecure=True, token=token, data_transfer_url=dt_url, log=True)
client.start()
api = DataTransferApi(client)
api.status(wait=True)
For comprehensive usage information, see Examples.
Documentation and issues
Documentation for the latest stable release of PyHPS Data Transfer is hosted at PyHPS Data Transfer documentation.
In the upper right corner of the documentation’s title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions.
On the PyHPS Data Transfer Issues page, you can create issues to report bugs and request new features. On the PyHPS Data Transfer Discussions page or the Discussions page on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.
To reach the project support team, email pyansys.core@ansys.com.
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 ansys_hps_data_transfer_client-0.3.0.tar.gz.
File metadata
- Download URL: ansys_hps_data_transfer_client-0.3.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80dd41121ef4f62f2bf1f3a93c55d3f7dc2dcba6df596ebeaffa15272a920b68
|
|
| MD5 |
c612304d81b174f5b2a3c92add7d2fc7
|
|
| BLAKE2b-256 |
99167e0fc01faeb14cf31ae49a2bcd8d3c1212222f66bc5dddb13c6deabe7d6b
|
Provenance
The following attestation bundles were made for ansys_hps_data_transfer_client-0.3.0.tar.gz:
Publisher:
ci_cd.yml on ansys/pyhps-data-transfer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_hps_data_transfer_client-0.3.0.tar.gz -
Subject digest:
80dd41121ef4f62f2bf1f3a93c55d3f7dc2dcba6df596ebeaffa15272a920b68 - Sigstore transparency entry: 366265261
- Sigstore integration time:
-
Permalink:
ansys/pyhps-data-transfer@403246462fb64a1e32b6a718447cf95735850af5 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd.yml@403246462fb64a1e32b6a718447cf95735850af5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ansys_hps_data_transfer_client-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ansys_hps_data_transfer_client-0.3.0-py3-none-any.whl
- Upload date:
- Size: 45.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac4890c9c6629b9c6410d8eb2f386f6b4bb25c8f2d57f11f3cc5f784ee7e04c6
|
|
| MD5 |
1a691effc09b59d06bd2ac6057e904a4
|
|
| BLAKE2b-256 |
ee0e3c1cc760a4ec377ae8bd57d9c3f1d982a5666c17e0c8b70d89c569cbddea
|
Provenance
The following attestation bundles were made for ansys_hps_data_transfer_client-0.3.0-py3-none-any.whl:
Publisher:
ci_cd.yml on ansys/pyhps-data-transfer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_hps_data_transfer_client-0.3.0-py3-none-any.whl -
Subject digest:
ac4890c9c6629b9c6410d8eb2f386f6b4bb25c8f2d57f11f3cc5f784ee7e04c6 - Sigstore transparency entry: 366265275
- Sigstore integration time:
-
Permalink:
ansys/pyhps-data-transfer@403246462fb64a1e32b6a718447cf95735850af5 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd.yml@403246462fb64a1e32b6a718447cf95735850af5 -
Trigger Event:
push
-
Statement type: