1- Ansys Dynamic Reporting
2- =======================
1+ PyDynamicReporting
2+ ==================
33
44|pyansys | |python | |pypi | |GH-CI | |bandit | |MIT | |black |
55
@@ -31,41 +31,60 @@ Ansys Dynamic Reporting
3131 :target: https://github.com/psf/black
3232 :alt: Black
3333
34- .. _ Ansys Dynamic Reporting : https://nexusdemo.ensight.com/docs/html/Nexus.html
34+ .. _ Nexus : https://nexusdemo.ensight.com/docs/html/Nexus.html
3535
3636Overview
3737--------
38- This repository contains the source for ``pydynamicreporting `` - the Python API to
39- ` Ansys Dynamic Reporting `_. `` pydynamicreporting `` provides an API to connect to an Ansys
40- Dynamic Reporting service and manipulate its items and reports. Ansys Dynamic Reporting
41- is a service that allows the user to push items of many types (image, text, 3D scenes,
42- table, ...) into a database, keep them organized and create dynamic reports from them.
43- The `` pydynamicreporting `` module gives the user full access to all these capabilities in
44- a natural and pythonic way. To get more information about Ansys Dynamic Reporting,
45- please see ` the Ansys Dynamic Reporting documentation page `_.
46-
47-
48- .. _ the Ansys Dynamic Reporting documentation page : https://nexusdemo.ensight.com/docs/html/Nexus.html
49-
38+ The ``pydynamicreporting `` repository contains the Python client library for
39+ Ansys Dynamic Reporting, previously documented as ` Nexus `_. Ansys Dynamic
40+ Reporting is a service for pushing items of many types, including images, text,
41+ 3D scenes, and tables, into a database, where you can keep them organized and
42+ create dynamic reports from them. When you use PyDynamicReporting to connect to
43+ an instance of Ansys Dynamic Reporting, you have a Pythonic way of accessing all
44+ capabilities of Ansys Dynamic Reporting.
45+
46+ Documentation and issues
47+ ------------------------
48+ For comprehensive information on PyDynamicReporting, see the latest release
49+ ` documentation < https://dynamicreporting.docs.pyansys.com >`_.
5050
51+ On the `PyDynamicReporting Issues <https://github.com/ansys/pydynamicreporting/issues >`_
52+ page, you can create issues to submit questions, report bugs, and request new
53+ features. This is the best place to post questions and code.
5154
5255Installation
5356------------
54- Currently, ``pydynamicreporting `` is only available on the ANSYS Azure PyPI.
57+ The ``pydynamicreporting `` package supports Python 3.7 through 3.11 on
58+ Windows and Linux. It is currently available only on the Ansys private
59+ repository at `PyAnsysPyPI <https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi >`_.
60+
61+ Installing from this private repository requires a PAT (private access
62+ token). For information on obtaining a PAT, see `Release and publishing
63+ <https://dev.docs.pyansys.com/dev/how-to/releasing.html#downloading-artifacts> `_
64+ in the *PyAnsys Developer's Guide *.
5565
56- Install with:
66+ To install the package from the Ansys private repository, run this code,
67+ where ``<PAT> `` is the obtained token:
5768
5869.. code ::
5970
6071 pip install --pre ansys-dynamicreporting-core --index-url=https://<PAT>@pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
6172
62- where `PAT ` is private access token. Read how to obtain it `here <https://dev.docs.pyansys.com/dev/how-to/releasing.html#downloading-artifacts >`_.
6373
74+ Once the ``pydynamicreporting `` package is publicly available on GitHub, two modes
75+ of installation are available:
6476
65- Development
66- -----------
77+ - Developer installation
78+ - User installation
6779
68- To clone and install in development mode:
80+
81+ The code provided for both installation modes use a `virtual environment
82+ <https://docs.python.org/3/library/venv.html> `_.
83+
84+ Developer installation
85+ ^^^^^^^^^^^^^^^^^^^^^^
86+ To clone and install the ``pydynamicreporting `` package in development mode,
87+ run this code:
6988
7089.. code ::
7190
@@ -76,100 +95,111 @@ To clone and install in development mode:
7695 source venv/bin/activate # (.\venv\Scripts\activate for Windows shell)
7796 make install-dev # install pydynamicreporting in editable mode
7897
79- This creates an 'editable' installation that lets you
80- develop and test pydynamicreporting at the same time.
8198
82- To build and create a production-like install of pydynamicreporting:
99+ The preceding code creates an "editable" installation that lets you develop and test
100+ PyDynamicReporting at the same time.
101+
102+ User installation
103+ ^^^^^^^^^^^^^^^^^
104+ To build and create a production-like installation for use, run this code:
83105
84106.. code ::
85107
86108 make clean # clean
87109 make build # build
88- # this will replace the editable install done previously. If you don't want to replace,
110+ # this replaces the editable installation done previously. If you don't want to replace,
89111 # switch your virtual environments to test the new install separately.
90112 make install
91113 # you can skip the steps above and just do 'make all'
92114 make smoketest # test import
93115
116+
94117 Pre-commit setup
95118^^^^^^^^^^^^^^^^
96119
97- ``pre-commit `` is a multi-language package manager for pre-commit hooks.
120+ `pre-commit <https://pre-commit.com/ >`_ is a framework for managing and
121+ maintaining multi-language pre-commit hooks.
98122
99- To install pre-commit into your git hooks, run:
123+ To install the `` pre-commit `` package into your Git hooks, run this command :
100124
101125.. code ::
102126
103127 pre-commit install
104128
105- pre-commit will now run on every commit. Every time you clone a project using pre-commit, this should always be the first thing you do.
106129
107- If you want to manually run all pre-commit hooks on a repository, run:
130+ ``pre-commit `` now runs on every commit.
131+
132+ Each time you clone a project, installing the ``pre-commit `` package
133+ should always be the first thing that you do.
134+
135+ If you want to manually run all pre-commit hooks on a repository, run
136+ this command:
108137
109138.. code ::
110139
111140 pre-commit run --all-files
112141
113- This will run a bunch of formatters on your source files.
114142
115- To run individual hooks, use:
143+ The preceding command runs a bunch of formatters on your source files.
144+
145+ To run an individual hook, obtain the hook ID from the project's
146+ ``.pre-commit-config.yaml `` file and then run this code,
147+ where ``<hook_id> `` is the obtained ID:
116148
117149.. code ::
118150
119151 pre-commit run <hook_id>
120152
121- ``<hook_id> `` can be obtained from ``.pre-commit-config.yaml ``.
122- The first time pre-commit runs on a file, it will automatically download, install, and run the hook.
153+
154+ The first time ``pre-commit `` runs on a file, it automatically downloads,
155+ installs, and runs the hook.
123156
124157
125- Local GitHub actions
158+ Local GitHub Actions
126159^^^^^^^^^^^^^^^^^^^^
160+ To run GitHub Actions on your local desktop (recommended), install the
161+ `act <https://github.com/nektos/act#readme >`_ package.
127162
128- To simulate GitHub Actions on your local desktop (recommended), install ` act < https://github.com/nektos/act#readme >`_.
129- To run a job, for example - ``docs `` from `` ci_cd.yml ``, use :
163+ To run a job, such as the `` docs `` job from the `` ci_cd.yml `` file, use
164+ this command, where ``docs `` is the job name :
130165
131166.. code ::
132167
133168 act -j docs
134169
135- Deploy and upload steps **must always ** be ignored. If not, please add ``if: ${{ !env.ACT }} `` to the workflow step (and commit if required) before running.
136170
171+ Deploy and upload steps **must always ** be ignored. If they are not ignored,
172+ before running GitHub Actions locally, add ``if: ${{ !env.ACT }} `` to the
173+ workflow step and commit this change if required.
174+
175+ Dependencies
176+ ------------
177+ To use PyDynamicReporting, you must have a locally installed and licensed copy
178+ of Ansys 2023 R2 or later.
137179
138- Usage
139- -----
140- The simplest `` pydynamicreporting `` session may be started like this :
180+ Basic usage
181+ -----------
182+ This code shows how to start the simplest PyDynamicReporting session :
141183
142184.. code :: pycon
143185
144186 >>> import ansys.dynamicreporting.core as adr
145- >>> adr_service = adr.Service(ansys_installation=r"C:\Program Files\ANSYS Inc\v231 ")
187+ >>> adr_service = adr.Service(ansys_installation=r"C:\Program Files\ANSYS Inc\v232 ")
146188 >>> ret = adr_service.connect()
147189 >>> my_img = adr_service.create_item()
148190 >>> my_img.item_image = "image.png"
149191 >>> adr_service.visualize_report()
150192
151- Dependencies
152- ------------
153- You will need a locally installed and licensed copy of Ansys to run Ansys Dynamic Reporting with the
154- first supported version being Ansys 2023 R2.
155-
156- Documentation and Issues
157- ------------------------
158- Please see the latest release `documentation <https://dynamicreporting.docs.pyansys.com >`_
159- page for more details.
160-
161- Please feel free to post issues and other questions at `pydynamicreporting Issues
162- <https://github.com/ansys/pydynamicreporting/issues> `_. This is the best place
163- to post questions and code.
164193
165- License
166- -------
167- `` pydynamicreporting `` is licensed under the MIT license.
194+ License and acknowledgements
195+ ----------------------------
196+ PyDynamicReporting is licensed under the MIT license.
168197
169- This module, ``ansys-dynamicreporting-core `` makes no commercial claim over Ansys whatsoever.
170- This tool extends the functionality of ``Ansys Dynamic Reporting `` by adding a remote Python
171- interface to Ansys Dynamic Reporting without changing the core behavior or license of the original
172- software. The use of Ansys Dynamic Reporting through the ``pydynamicreporting ``
173- interface requires any license that allows the use of stand alone Ansys Dynamic Reporting.
198+ PyDynamicReporting makes no commercial claim over Ansys whatsoever.
199+ This library extends the functionality of Ansys Dynamic Reporting by
200+ adding a Python interface to Ansys Dynamic Reproting without changing
201+ the core behavior or license of the original software. The use of
202+ PyDynamicReporting requires a legally licensed copy of an Ansys product
203+ that supports Ansys Dynamic Reporting.
174204
175- To get a copy of Ansys, please visit `Ansys <https://www.ansys.com/ >`_.
205+ To get a copy of Ansys, visit the `Ansys <https://www.ansys.com/ >`_ website .
0 commit comments