ansys-hps-data-transfer-client 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ansys_hps_data_transfer_client-0.2.0/LICENSE +21 -0
- ansys_hps_data_transfer_client-0.2.0/PKG-INFO +156 -0
- ansys_hps_data_transfer_client-0.2.0/README.rst +92 -0
- ansys_hps_data_transfer_client-0.2.0/pyproject.toml +173 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/__init__.py +27 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/__version__.py +32 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/api/__init__.py +24 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/api/api.py +327 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/api/async_api.py +249 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/api/retry.py +95 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/authenticate.py +122 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/binary.py +407 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/client.py +618 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/exceptions.py +150 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/__init__.py +29 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/common.py +38 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/core.py +31 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/metadata.py +43 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/msg.py +142 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/ops.py +57 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/permissions.py +71 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/rest.py +31 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/models/storage.py +34 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/token.py +31 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/utils/__init__.py +22 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/utils/jitter.py +48 -0
- ansys_hps_data_transfer_client-0.2.0/src/ansys/hps/data_transfer/client/utils/otel_config.py +47 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 ANSYS, Inc. and/or its affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
10
|
+
so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: ansys-hps-data-transfer-client
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Python client library for hps data transfer service
|
|
5
|
+
Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
6
|
+
Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
7
|
+
Requires-Python: >=3.10,<4.0
|
|
8
|
+
Description-Content-Type: text/x-rst
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Requires-Dist: pydantic>=2.7.1
|
|
16
|
+
Requires-Dist: httpx>=0.27.0,<0.28.0
|
|
17
|
+
Requires-Dist: backoff>=2.2.1
|
|
18
|
+
Requires-Dist: humanfriendly>=10.0
|
|
19
|
+
Requires-Dist: requests>=2.21.0
|
|
20
|
+
Requires-Dist: portend>=3.2.0
|
|
21
|
+
Requires-Dist: filelock>=3.14.0
|
|
22
|
+
Requires-Dist: psutil>=5.9.1
|
|
23
|
+
Requires-Dist: asyncio-atexit>=1.0.0
|
|
24
|
+
Requires-Dist: build==1.2.2.post1 ; extra == "build"
|
|
25
|
+
Requires-Dist: twine==6.1.0 ; extra == "build"
|
|
26
|
+
Requires-Dist: wheel ; extra == "build"
|
|
27
|
+
Requires-Dist: datamodel-code-generator==0.26.3 ; extra == "build"
|
|
28
|
+
Requires-Dist: pre-commit==4.2.0 ; extra == "build"
|
|
29
|
+
Requires-Dist: importlib_metadata>=7.0 ; extra == "build"
|
|
30
|
+
Requires-Dist: ansys-sphinx-theme==1.2.6 ; extra == "doc"
|
|
31
|
+
Requires-Dist: autodoc_pydantic==2.2.0 ; extra == "doc"
|
|
32
|
+
Requires-Dist: jupyter_sphinx==0.5.3 ; extra == "doc"
|
|
33
|
+
Requires-Dist: nbsphinx==0.9.6 ; extra == "doc"
|
|
34
|
+
Requires-Dist: numpydoc==1.8.0 ; extra == "doc"
|
|
35
|
+
Requires-Dist: myst-parser==4.0.0 ; extra == "doc"
|
|
36
|
+
Requires-Dist: Sphinx==8.2.3 ; extra == "doc"
|
|
37
|
+
Requires-Dist: sphinx-autoapi==3.6.0 ; extra == "doc"
|
|
38
|
+
Requires-Dist: sphinx-autodoc-typehints==3.0.1 ; extra == "doc"
|
|
39
|
+
Requires-Dist: sphinxcontrib-globalsubs==0.1.2 ; extra == "doc"
|
|
40
|
+
Requires-Dist: sphinxcontrib-httpdomain==1.8.1 ; extra == "doc"
|
|
41
|
+
Requires-Dist: sphinx-copybutton==0.5.2 ; extra == "doc"
|
|
42
|
+
Requires-Dist: sphinx_design==0.6.1 ; extra == "doc"
|
|
43
|
+
Requires-Dist: sphinx-jinja==2.0.2 ; extra == "doc"
|
|
44
|
+
Requires-Dist: sphinxnotes-strike==1.2.1 ; extra == "doc"
|
|
45
|
+
Requires-Dist: sphinx-tabs==3.4.7 ; extra == "doc"
|
|
46
|
+
Requires-Dist: sphinx-gallery==0.19.0 ; extra == "doc"
|
|
47
|
+
Requires-Dist: pytest==8.3.5 ; extra == "tests"
|
|
48
|
+
Requires-Dist: pytest-cov==6.0.0 ; extra == "tests"
|
|
49
|
+
Requires-Dist: pytest-timeout==2.3.1 ; extra == "tests"
|
|
50
|
+
Requires-Dist: pytest-mock-resources[redis]==2.12.2 ; extra == "tests"
|
|
51
|
+
Requires-Dist: pytest-rerunfailures==15.0 ; extra == "tests"
|
|
52
|
+
Requires-Dist: pytest-asyncio==0.25.3 ; extra == "tests"
|
|
53
|
+
Requires-Dist: python-keycloak==5.3.1 ; extra == "tests"
|
|
54
|
+
Requires-Dist: python-slugify>=8.0.4 ; extra == "tests"
|
|
55
|
+
Requires-Dist: tox==4.24.2 ; extra == "tests"
|
|
56
|
+
Project-URL: Documentation, https://data-transfer.hps.docs.pyansys.com
|
|
57
|
+
Project-URL: Homepage, https://github.com/ansys/pyhps-data-transfer/
|
|
58
|
+
Project-URL: Source, https://github.com/ansys/pyhps-data-transfer/
|
|
59
|
+
Project-URL: Tracker, https://github.com/ansys/pyhps-data-transfer/issues
|
|
60
|
+
Provides-Extra: build
|
|
61
|
+
Provides-Extra: doc
|
|
62
|
+
Provides-Extra: tests
|
|
63
|
+
|
|
64
|
+
PyHPS Data Transfer
|
|
65
|
+
==========================
|
|
66
|
+
|pyansys| |python| |pypi| |GH-CI| |codecov| |MIT| |ruff|
|
|
67
|
+
|
|
68
|
+
.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC
|
|
69
|
+
:target: https://docs.pyansys.com/
|
|
70
|
+
:alt: PyAnsys
|
|
71
|
+
|
|
72
|
+
.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-hps-data-transfer-client?logo=pypi
|
|
73
|
+
:target: https://pypi.org/project/ansys-hps-data-transfer-client/
|
|
74
|
+
:alt: Python
|
|
75
|
+
|
|
76
|
+
.. |pypi| image:: https://img.shields.io/pypi/v/ansys-hps-data-transfer-client.svg?logo=python&logoColor=white
|
|
77
|
+
:target: https://pypi.org/project/ansys-hps-data-transfer-client
|
|
78
|
+
:alt: PyPI
|
|
79
|
+
|
|
80
|
+
.. |codecov| image:: https://codecov.io/gh/ansys/hps-data-transfer-client/branch/main/graph/badge.svg
|
|
81
|
+
:target: https://codecov.io/gh/ansys/pyhps-data-transfer
|
|
82
|
+
:alt: Codecov
|
|
83
|
+
|
|
84
|
+
.. |GH-CI| image:: https://github.com/ansys/hps-data-transfer-client/actions/workflows/ci_cd.yml/badge.svg
|
|
85
|
+
:target: https://github.com/ansys/pyhps-data-transfer/actions/workflows/ci_cd.yml
|
|
86
|
+
:alt: GH-CI
|
|
87
|
+
|
|
88
|
+
.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
|
|
89
|
+
:target: https://opensource.org/licenses/MIT
|
|
90
|
+
:alt: MIT
|
|
91
|
+
|
|
92
|
+
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
|
93
|
+
:target: https://github.com/astral-sh/ruff
|
|
94
|
+
:alt: Ruff
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
Overview
|
|
98
|
+
--------
|
|
99
|
+
|
|
100
|
+
Python client library for HPS Data Transfer Service
|
|
101
|
+
|
|
102
|
+
.. contribute_start
|
|
103
|
+
|
|
104
|
+
Installation
|
|
105
|
+
^^^^^^^^^^^^
|
|
106
|
+
|
|
107
|
+
You can use `pip <https://pypi.org/project/pip/>`_ to install PyHPS Data Transfer.
|
|
108
|
+
Note: This will be available only after released. For now, please install from git
|
|
109
|
+
|
|
110
|
+
.. code:: bash
|
|
111
|
+
|
|
112
|
+
pip install ansys-hps-data-transfer-client
|
|
113
|
+
|
|
114
|
+
To install the latest development version, run these commands:
|
|
115
|
+
|
|
116
|
+
.. code:: bash
|
|
117
|
+
|
|
118
|
+
git clone https://github.com/ansys/pyhps-data-transfer/
|
|
119
|
+
cd pyhps-data-transfer
|
|
120
|
+
pip install -e .
|
|
121
|
+
|
|
122
|
+
For more information, see `Getting Started`_.
|
|
123
|
+
|
|
124
|
+
Basic usage
|
|
125
|
+
^^^^^^^^^^^
|
|
126
|
+
|
|
127
|
+
This code shows how to import PyHPS Data Transfer and use some basic capabilities:
|
|
128
|
+
|
|
129
|
+
.. code:: python
|
|
130
|
+
|
|
131
|
+
from ansys.hps.data_transfer.client import Client # Import the Client class
|
|
132
|
+
client = Client() # Create a client object
|
|
133
|
+
|
|
134
|
+
For comprehensive usage information, see `Examples`_ in the `PyHPS Data Transfer documentation`_.
|
|
135
|
+
|
|
136
|
+
Documentation and issues
|
|
137
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
138
|
+
Documentation for the latest stable release of PyHPS Data Transfer is hosted at `PyHPS Data Transfer documentation`_.
|
|
139
|
+
|
|
140
|
+
In the upper right corner of the documentation's title bar, there is an option for switching from
|
|
141
|
+
viewing the documentation for the latest stable release to viewing the documentation for the
|
|
142
|
+
development version or previously released versions.
|
|
143
|
+
|
|
144
|
+
On the `PyHPS Data Transfer Issues <https://github.com/ansys/pyhps-data-transfer/issues>`_ page,
|
|
145
|
+
you can create issues to report bugs and request new features. On the `PyHPS Data Transfer Discussions
|
|
146
|
+
<https://github.com/ansys/pyhps-data-transfer/projects>`_ page or the `Discussions <https://discuss.ansys.com/>`_
|
|
147
|
+
page on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.
|
|
148
|
+
|
|
149
|
+
To reach the project support team, email `pyansys.core@ansys.com <mailto:pyansys.core@ansys.com>`_.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
.. LINKS AND REFERENCES
|
|
153
|
+
.. _Getting Started: https://hps.docs.pyansys.com/version/stable/getting_started/index.html
|
|
154
|
+
.. _Examples: https://hps.docs.pyansys.com/version/stable/examples.html
|
|
155
|
+
.. _PyHPS Data Transfer documentation: https://hps.docs.pyansys.com/version/stable/index.html
|
|
156
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
PyHPS Data Transfer
|
|
2
|
+
==========================
|
|
3
|
+
|pyansys| |python| |pypi| |GH-CI| |codecov| |MIT| |ruff|
|
|
4
|
+
|
|
5
|
+
.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC
|
|
6
|
+
:target: https://docs.pyansys.com/
|
|
7
|
+
:alt: PyAnsys
|
|
8
|
+
|
|
9
|
+
.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-hps-data-transfer-client?logo=pypi
|
|
10
|
+
:target: https://pypi.org/project/ansys-hps-data-transfer-client/
|
|
11
|
+
:alt: Python
|
|
12
|
+
|
|
13
|
+
.. |pypi| image:: https://img.shields.io/pypi/v/ansys-hps-data-transfer-client.svg?logo=python&logoColor=white
|
|
14
|
+
:target: https://pypi.org/project/ansys-hps-data-transfer-client
|
|
15
|
+
:alt: PyPI
|
|
16
|
+
|
|
17
|
+
.. |codecov| image:: https://codecov.io/gh/ansys/hps-data-transfer-client/branch/main/graph/badge.svg
|
|
18
|
+
:target: https://codecov.io/gh/ansys/pyhps-data-transfer
|
|
19
|
+
:alt: Codecov
|
|
20
|
+
|
|
21
|
+
.. |GH-CI| image:: https://github.com/ansys/hps-data-transfer-client/actions/workflows/ci_cd.yml/badge.svg
|
|
22
|
+
:target: https://github.com/ansys/pyhps-data-transfer/actions/workflows/ci_cd.yml
|
|
23
|
+
:alt: GH-CI
|
|
24
|
+
|
|
25
|
+
.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
|
|
26
|
+
:target: https://opensource.org/licenses/MIT
|
|
27
|
+
:alt: MIT
|
|
28
|
+
|
|
29
|
+
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
|
30
|
+
:target: https://github.com/astral-sh/ruff
|
|
31
|
+
:alt: Ruff
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Overview
|
|
35
|
+
--------
|
|
36
|
+
|
|
37
|
+
Python client library for HPS Data Transfer Service
|
|
38
|
+
|
|
39
|
+
.. contribute_start
|
|
40
|
+
|
|
41
|
+
Installation
|
|
42
|
+
^^^^^^^^^^^^
|
|
43
|
+
|
|
44
|
+
You can use `pip <https://pypi.org/project/pip/>`_ to install PyHPS Data Transfer.
|
|
45
|
+
Note: This will be available only after released. For now, please install from git
|
|
46
|
+
|
|
47
|
+
.. code:: bash
|
|
48
|
+
|
|
49
|
+
pip install ansys-hps-data-transfer-client
|
|
50
|
+
|
|
51
|
+
To install the latest development version, run these commands:
|
|
52
|
+
|
|
53
|
+
.. code:: bash
|
|
54
|
+
|
|
55
|
+
git clone https://github.com/ansys/pyhps-data-transfer/
|
|
56
|
+
cd pyhps-data-transfer
|
|
57
|
+
pip install -e .
|
|
58
|
+
|
|
59
|
+
For more information, see `Getting Started`_.
|
|
60
|
+
|
|
61
|
+
Basic usage
|
|
62
|
+
^^^^^^^^^^^
|
|
63
|
+
|
|
64
|
+
This code shows how to import PyHPS Data Transfer and use some basic capabilities:
|
|
65
|
+
|
|
66
|
+
.. code:: python
|
|
67
|
+
|
|
68
|
+
from ansys.hps.data_transfer.client import Client # Import the Client class
|
|
69
|
+
client = Client() # Create a client object
|
|
70
|
+
|
|
71
|
+
For comprehensive usage information, see `Examples`_ in the `PyHPS Data Transfer documentation`_.
|
|
72
|
+
|
|
73
|
+
Documentation and issues
|
|
74
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
75
|
+
Documentation for the latest stable release of PyHPS Data Transfer is hosted at `PyHPS Data Transfer documentation`_.
|
|
76
|
+
|
|
77
|
+
In the upper right corner of the documentation's title bar, there is an option for switching from
|
|
78
|
+
viewing the documentation for the latest stable release to viewing the documentation for the
|
|
79
|
+
development version or previously released versions.
|
|
80
|
+
|
|
81
|
+
On the `PyHPS Data Transfer Issues <https://github.com/ansys/pyhps-data-transfer/issues>`_ page,
|
|
82
|
+
you can create issues to report bugs and request new features. On the `PyHPS Data Transfer Discussions
|
|
83
|
+
<https://github.com/ansys/pyhps-data-transfer/projects>`_ page or the `Discussions <https://discuss.ansys.com/>`_
|
|
84
|
+
page on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.
|
|
85
|
+
|
|
86
|
+
To reach the project support team, email `pyansys.core@ansys.com <mailto:pyansys.core@ansys.com>`_.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.. LINKS AND REFERENCES
|
|
90
|
+
.. _Getting Started: https://hps.docs.pyansys.com/version/stable/getting_started/index.html
|
|
91
|
+
.. _Examples: https://hps.docs.pyansys.com/version/stable/examples.html
|
|
92
|
+
.. _PyHPS Data Transfer documentation: https://hps.docs.pyansys.com/version/stable/index.html
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["flit_core >=3.2, <3.11"] # THIS SHOULD BE REVERTED TO '["flit_core >=3.2,<4"]'
|
|
3
|
+
build-backend = "flit_core.buildapi"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
|
|
7
|
+
name = "ansys-hps-data-transfer-client"
|
|
8
|
+
version = "0.2.0"
|
|
9
|
+
description = "Python client library for hps data transfer service"
|
|
10
|
+
readme = "README.rst"
|
|
11
|
+
requires-python = ">=3.10,<4.0"
|
|
12
|
+
license = {file = "LICENSE"}
|
|
13
|
+
authors = [
|
|
14
|
+
{name = "ANSYS, Inc.", email = "pyansys.core@ansys.com"},
|
|
15
|
+
]
|
|
16
|
+
maintainers = [
|
|
17
|
+
{name = "ANSYS, Inc.", email = "pyansys.core@ansys.com"},
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Development Status :: 4 - Beta",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"License :: OSI Approved :: MIT License",
|
|
26
|
+
"Operating System :: OS Independent",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"pydantic>=2.7.1",
|
|
30
|
+
"httpx>=0.27.0,<0.28.0",
|
|
31
|
+
"backoff>=2.2.1",
|
|
32
|
+
"humanfriendly>=10.0",
|
|
33
|
+
"requests>=2.21.0",
|
|
34
|
+
"portend>=3.2.0",
|
|
35
|
+
"filelock>=3.14.0",
|
|
36
|
+
"psutil>=5.9.1",
|
|
37
|
+
"asyncio-atexit>=1.0.0",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[project.optional-dependencies]
|
|
41
|
+
tests = [
|
|
42
|
+
"pytest==8.3.5",
|
|
43
|
+
"pytest-cov==6.0.0",
|
|
44
|
+
"pytest-timeout==2.3.1",
|
|
45
|
+
"pytest-mock-resources[redis]==2.12.2",
|
|
46
|
+
"pytest-rerunfailures==15.0",
|
|
47
|
+
"pytest-asyncio==0.25.3",
|
|
48
|
+
"python-keycloak==5.3.1",
|
|
49
|
+
"python-slugify>=8.0.4",
|
|
50
|
+
"tox==4.24.2",
|
|
51
|
+
]
|
|
52
|
+
doc = [
|
|
53
|
+
"ansys-sphinx-theme==1.2.6",
|
|
54
|
+
"autodoc_pydantic==2.2.0",
|
|
55
|
+
"jupyter_sphinx==0.5.3",
|
|
56
|
+
"nbsphinx==0.9.6",
|
|
57
|
+
"numpydoc==1.8.0",
|
|
58
|
+
"myst-parser==4.0.0",
|
|
59
|
+
"Sphinx==8.2.3",
|
|
60
|
+
"sphinx-autoapi==3.6.0",
|
|
61
|
+
"sphinx-autodoc-typehints==3.0.1",
|
|
62
|
+
"sphinxcontrib-globalsubs==0.1.2",
|
|
63
|
+
"sphinxcontrib-httpdomain==1.8.1",
|
|
64
|
+
"sphinx-copybutton==0.5.2",
|
|
65
|
+
"sphinx_design==0.6.1",
|
|
66
|
+
"sphinx-jinja==2.0.2",
|
|
67
|
+
"sphinxnotes-strike==1.2.1",
|
|
68
|
+
"sphinx-tabs==3.4.7",
|
|
69
|
+
"sphinx-gallery==0.19.0",
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
build = [
|
|
73
|
+
"build==1.2.2.post1",
|
|
74
|
+
"twine==6.1.0",
|
|
75
|
+
"wheel",
|
|
76
|
+
"datamodel-code-generator==0.26.3",
|
|
77
|
+
"pre-commit==4.2.0",
|
|
78
|
+
"importlib_metadata>=7.0",
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
[tool.flit.module]
|
|
82
|
+
name = "ansys.hps.data_transfer.client"
|
|
83
|
+
|
|
84
|
+
[project.urls]
|
|
85
|
+
Source = "https://github.com/ansys/pyhps-data-transfer/"
|
|
86
|
+
Tracker = "https://github.com/ansys/pyhps-data-transfer/issues"
|
|
87
|
+
Homepage = "https://github.com/ansys/pyhps-data-transfer/"
|
|
88
|
+
Documentation = "https://data-transfer.hps.docs.pyansys.com"
|
|
89
|
+
|
|
90
|
+
[tool.pydocstyle]
|
|
91
|
+
convention = "numpy"
|
|
92
|
+
|
|
93
|
+
[tool.pytest.ini_options]
|
|
94
|
+
asyncio_mode = "auto"
|
|
95
|
+
log_cli = true
|
|
96
|
+
log_cli_level = "INFO"
|
|
97
|
+
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
|
|
98
|
+
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
|
|
99
|
+
addopts = "-ra -vv"
|
|
100
|
+
filterwarnings = [
|
|
101
|
+
"ignore::urllib3.exceptions.InsecureRequestWarning",
|
|
102
|
+
"ignore::DeprecationWarning:pkg_resources.*",
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
[tool.coverage.run]
|
|
106
|
+
relative_files = true
|
|
107
|
+
source = ["ansys.hps"]
|
|
108
|
+
|
|
109
|
+
[tool.coverage.report]
|
|
110
|
+
show_missing = true
|
|
111
|
+
|
|
112
|
+
[tool.coverage.html]
|
|
113
|
+
directory = ".cov/html"
|
|
114
|
+
|
|
115
|
+
[tool.coverage.xml]
|
|
116
|
+
output = ".cov/coverage.xml"
|
|
117
|
+
|
|
118
|
+
[tool.ruff]
|
|
119
|
+
line-length = 120
|
|
120
|
+
extend-exclude = ["examples/**/*.py"]
|
|
121
|
+
|
|
122
|
+
[tool.ruff.lint]
|
|
123
|
+
select = [
|
|
124
|
+
"E", # pycodestyle, see https://beta.ruff.rs/docs/rules/#pycodestyle-e-w
|
|
125
|
+
"F", # pyflakes, see https://beta.ruff.rs/docs/rules/#pyflakes-f
|
|
126
|
+
"I", # isort, see https://beta.ruff.rs/docs/rules/#isort-i
|
|
127
|
+
"N", # pep8-naming, see https://beta.ruff.rs/docs/rules/#pep8-naming-n
|
|
128
|
+
]
|
|
129
|
+
ignore = ["E402", "E712", "E722", "F401", "F841", "F821"]
|
|
130
|
+
|
|
131
|
+
[tool.ruff.lint.isort]
|
|
132
|
+
combine-as-imports = true
|
|
133
|
+
force-sort-within-sections = true
|
|
134
|
+
known-first-party = ["ansys"]
|
|
135
|
+
|
|
136
|
+
[tool.ruff.lint.pydocstyle]
|
|
137
|
+
# Settings: https://docs.astral.sh/ruff/settings/#lintpydocstyle
|
|
138
|
+
convention = "google"
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
[tool.towncrier]
|
|
142
|
+
package = "ansys.hps.data_transfer.client"
|
|
143
|
+
directory = "doc/changelog.d"
|
|
144
|
+
filename = "doc/source/changelog.rst"
|
|
145
|
+
start_string = ".. towncrier release notes start\n"
|
|
146
|
+
template = "doc/changelog.d/changelog_template.jinja"
|
|
147
|
+
title_format = "`{version} <https://github.com/ansys/ansys.hps.data_transfer_client/releases/tag/v{version}>`_ - {project_date}"
|
|
148
|
+
issue_format = "`#{issue} <https://github.com/ansys/ansys.hps.data_transfer_client/pull/{issue}>`_"
|
|
149
|
+
|
|
150
|
+
[[tool.towncrier.type]]
|
|
151
|
+
directory = "added"
|
|
152
|
+
name = "Added"
|
|
153
|
+
showcontent = true
|
|
154
|
+
|
|
155
|
+
[[tool.towncrier.type]]
|
|
156
|
+
directory = "changed"
|
|
157
|
+
name = "Changed"
|
|
158
|
+
showcontent = true
|
|
159
|
+
|
|
160
|
+
[[tool.towncrier.type]]
|
|
161
|
+
directory = "fixed"
|
|
162
|
+
name = "Fixed"
|
|
163
|
+
showcontent = true
|
|
164
|
+
|
|
165
|
+
[[tool.towncrier.type]]
|
|
166
|
+
directory = "dependencies"
|
|
167
|
+
name = "Dependencies"
|
|
168
|
+
showcontent = true
|
|
169
|
+
|
|
170
|
+
[[tool.towncrier.type]]
|
|
171
|
+
directory = "miscellaneous"
|
|
172
|
+
name = "Miscellaneous"
|
|
173
|
+
showcontent = true
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
"""PyHPS Data Transfer is a Python client for Ansys HPC Platform Services (HPS) data transfer."""
|
|
23
|
+
|
|
24
|
+
from .__version__ import __version__
|
|
25
|
+
from .api import AsyncDataTransferApi, DataTransferApi
|
|
26
|
+
from .client import AsyncClient, Client
|
|
27
|
+
from .exceptions import APIError, ClientError, HPSError
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
"""This module defines the version of the Ansys HPS Data Transfer Client package."""
|
|
24
|
+
|
|
25
|
+
try:
|
|
26
|
+
import importlib.metadata as importlib_metadata
|
|
27
|
+
except ModuleNotFoundError: # pragma: no cover
|
|
28
|
+
import importlib_metadata
|
|
29
|
+
|
|
30
|
+
# Read from the pyproject.toml
|
|
31
|
+
# major, minor, patch
|
|
32
|
+
__version__ = importlib_metadata.version("ansys-hps-data-transfer-client")
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
from .api import DataTransferApi
|
|
24
|
+
from .async_api import AsyncDataTransferApi
|