Skip to main content

Python client library for hps data transfer service

Project description

PyAnsys Python PyPI GH-CI Codecov MIT Ruff

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansys_hps_data_transfer_client-0.5.dev0.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ansys_hps_data_transfer_client-0.5.dev0.tar.gz.

File metadata

File hashes

Hashes for ansys_hps_data_transfer_client-0.5.dev0.tar.gz
Algorithm Hash digest
SHA256 01bb43aed49fcc7f1dcc5ecb6c41c4ceb00f8d60769a1a9e26541ad95831b82d
MD5 e5a91c7ecec033b9563fb097b4924620
BLAKE2b-256 d58df726ab7b86dd11c300b6e6daaf3f7b8fe5f8529145a46f24363cd30cb6b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_hps_data_transfer_client-0.5.dev0.tar.gz:

Publisher: ci_cd.yml on ansys/pyhps-data-transfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ansys_hps_data_transfer_client-0.5.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_hps_data_transfer_client-0.5.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdbb5802f50b721b6126bf104162b1f62c8aef57ef0766d6436dfcd889525a00
MD5 49806033985d97fa11f131eeb3d19312
BLAKE2b-256 d0de8019ed05c6073c252b6cf4bcee4c87d6c31fa9659cb7500279a333d56b4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_hps_data_transfer_client-0.5.dev0-py3-none-any.whl:

Publisher: ci_cd.yml on ansys/pyhps-data-transfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page