PyDynamicReporting
==================
|pyansys| |python| |pypi| |GH-CI| |bandit| |MIT| |black|
.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?labelColor=black&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC
:target: https://docs.pyansys.com/
:alt: PyAnsys
.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-dynamicreporting-core?logo=pypi
:target: https://pypi.org/project/ansys-dynamicreporting-core/
:alt: Python
.. |pypi| image:: https://img.shields.io/pypi/v/ansys-dynamicreporting-core.svg?logo=python&logoColor=white
:target: https://pypi.org/project/ansys-dynamicreporting-core
:alt: PyPI
.. |GH-CI| image:: https://github.com/ansys/pydynamicreporting/actions/workflows/ci_cd.yml/badge.svg?branch=main
:target: https://github.com/ansys/pydynamicreporting/actions?query=branch%3Amain
:alt: GH-CI
.. |bandit| image:: https://img.shields.io/badge/security-bandit-yellow.svg
:target: https://github.com/PyCQA/bandit
:alt: Security Status
.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
:target: https://opensource.org/licenses/MIT
:alt: MIT
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=flat
:target: https://github.com/psf/black
:alt: Black
.. _Nexus: https://nexusdemo.ensight.com/docs/html/Nexus.html
Overview
--------
PyDynamicReporting is the Python client library for Ansys Dynamic Reporting,
previously documented as `Nexus`_. Ansys Dynamic Reporting is a service for
pushing items of many types, including images, text, 3D scenes, and tables,
into a database, where you can keep them organized and create dynamic reports
from them. When you use PyDynamicReporting to connect to an instance of
Ansys Dynamic Reporting, you have a Pythonic way of accessing all capabilities
of Ansys Dynamic Reporting.
Documentation and issues
------------------------
Documentation for the latest stable release of PyDynamicReporting is hosted at
`PyDynamicReporting documentation <https://dynamicreporting.docs.pyansys.com/version/stable/>`_.
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.
You can also `view <https://cheatsheets.docs.pyansys.com/pydynamicreporting_cheat_sheet.png>`_ or
`download <https://cheatsheets.docs.pyansys.com/pydynamicreporting_cheat_sheet.pdf>`_ the
PyDynamicReporting cheat sheet. This one-page reference provides syntax rules and commands
for using PyDynamicReporting.
On the `PyDynamicReporting Issues <https://github.com/ansys/pydynamicreporting/issues>`_
page, you can create issues to report bugs and request new features. On the `Discussions <https://discuss.ansys.com/>`_
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 <pyansys.core@ansys.com>`_.
Installation
------------
The ``pydynamicreporting`` package supports Python 3.10 through 3.13 on
Windows and Linux. It is currently available on the PyPi
`repository <https://pypi.org/project/ansys-dynamicreporting-core/>`_.
To install the package, simply run
.. code::
pip install ansys-dynamicreporting-core
Developer installation
^^^^^^^^^^^^^^^^^^^^^^
To clone and install the ``pydynamicreporting`` package in development mode,
run this code:
.. code::
git clone https://github.com/ansys/pydynamicreporting
cd pydynamicreporting
pip install virtualenv
virtualenv venv # create virtual environment
source venv/bin/activate # (.\venv\Scripts\activate for Windows shell)
make install-dev # install pydynamicreporting in editable mode
The preceding code creates an "editable" installation that lets you develop and test
PyDynamicReporting at the same time.
To build and create a production-like installation on Windows (not required on other OSes),
first install `chocolatey <https://chocolatey.org/install>`_. Then:
.. code::
choco install make # install make on Windows
make clean # clean
make build # build
# this replaces the editable installation done previously. If you don't want to replace,
# switch your virtual environments to test the new install separately.
make install
# you can skip the steps above and just do 'make all'
make smoketest # test import
Local GitHub Actions
^^^^^^^^^^^^^^^^^^^^
To run GitHub Actions on your local desktop (recommended), install the
`act <https://github.com/nektos/act#readme>`_ package.
.. code::
choco install act-cli
To run a job, such as the ``style`` job from the ``ci_cd.yml`` file, use
this command, where ``style`` is the job name:
.. code::
act -W '.github/workflows/ci_cd.yml' -j style --bind
Deploy and upload steps **must always** be ignored. If they are not ignored,
before running GitHub Actions locally, add ``if: ${{ !env.ACT }}`` to the
workflow step and commit this change if required.
Local tests
^^^^^^^^^^^
To run tests on your local desktop (recommended), use the `make` target
`test-dev`. This target runs the tests in the same way as GitHub Actions but using
a local Ansys installation instead of Docker. You must specify the path to your Ansys
installation and the test file you are trying to run.
.. code::
make test-dev TEST_FILE="tests/test_service.py" INSTALL_PATH="C:\Program Files\ANSYS Inc\v252"
Note that any tests that require Docker will obviously fail.
Dependencies
------------
To use PyDynamicReporting, you must have a locally installed and licensed copy
of Ansys 2023 R2 or later.
To use PyDynamicReporting Serverless (ansys.dynamicreporting.core.serverless),
you must have a locally installed and licensed copy of Ansys 2025 R1 or later.
Basic usage
-----------
This code shows how to start the simplest PyDynamicReporting session:
.. code:: pycon
>>> import ansys.dynamicreporting.core as adr
>>> adr_service = adr.Service(ansys_installation=r"C:\Program Files\ANSYS Inc\v232")
>>> ret = adr_service.connect()
>>> my_img = adr_service.create_item()
>>> my_img.item_image = "image.png"
>>> adr_service.visualize_report()
License and acknowledgements
----------------------------
PyDynamicReporting is licensed under the MIT license.
PyDynamicReporting makes no commercial claim over Ansys whatsoever.
This library extends the functionality of Ansys Dynamic Reporting by
adding a Python interface to Ansys Dynamic Reporting without changing
the core behavior or license of the original software. The use of
PyDynamicReporting requires a legally licensed copy of an Ansys product
that supports Ansys Dynamic Reporting.
To get a copy of Ansys, visit the `Ansys <https://www.ansys.com/>`_ website.
Raw data
{
"_id": null,
"home_page": null,
"name": "ansys-dynamicreporting-core",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "\"ANSYS, Inc.\" <pyansys.core@ansys.com>, Ansys ADR Team <nexus@ansys.com>",
"keywords": "dynamicreporting, pydynamicreporting, pyansys, ansys",
"author": null,
"author_email": "\"ANSYS, Inc.\" <pyansys.core@ansys.com>",
"download_url": "https://files.pythonhosted.org/packages/a0/b3/aadfc3a85d0564a40d2c9f0504abb092199bb8965f8e97a403622b519089/ansys_dynamicreporting_core-0.9.0.tar.gz",
"platform": null,
"description": "PyDynamicReporting\n==================\n\n|pyansys| |python| |pypi| |GH-CI| |bandit| |MIT| |black|\n\n.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?labelColor=black&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC\n :target: https://docs.pyansys.com/\n :alt: PyAnsys\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-dynamicreporting-core?logo=pypi\n :target: https://pypi.org/project/ansys-dynamicreporting-core/\n :alt: Python\n\n.. |pypi| image:: https://img.shields.io/pypi/v/ansys-dynamicreporting-core.svg?logo=python&logoColor=white\n :target: https://pypi.org/project/ansys-dynamicreporting-core\n :alt: PyPI\n\n.. |GH-CI| image:: https://github.com/ansys/pydynamicreporting/actions/workflows/ci_cd.yml/badge.svg?branch=main\n :target: https://github.com/ansys/pydynamicreporting/actions?query=branch%3Amain\n :alt: GH-CI\n\n.. |bandit| image:: https://img.shields.io/badge/security-bandit-yellow.svg\n :target: https://github.com/PyCQA/bandit\n :alt: Security Status\n\n.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg\n :target: https://opensource.org/licenses/MIT\n :alt: MIT\n\n.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=flat\n :target: https://github.com/psf/black\n :alt: Black\n\n.. _Nexus: https://nexusdemo.ensight.com/docs/html/Nexus.html\n\nOverview\n--------\nPyDynamicReporting is the Python client library for Ansys Dynamic Reporting,\npreviously documented as `Nexus`_. Ansys Dynamic Reporting is a service for\npushing items of many types, including images, text, 3D scenes, and tables,\ninto a database, where you can keep them organized and create dynamic reports\nfrom them. When you use PyDynamicReporting to connect to an instance of\nAnsys Dynamic Reporting, you have a Pythonic way of accessing all capabilities\nof Ansys Dynamic Reporting.\n\nDocumentation and issues\n------------------------\nDocumentation for the latest stable release of PyDynamicReporting is hosted at\n`PyDynamicReporting documentation <https://dynamicreporting.docs.pyansys.com/version/stable/>`_.\n\nIn the upper right corner of the documentation's title bar, there is an option\nfor switching from viewing the documentation for the latest stable release\nto viewing the documentation for the development version or previously\nreleased versions.\n\nYou can also `view <https://cheatsheets.docs.pyansys.com/pydynamicreporting_cheat_sheet.png>`_ or\n`download <https://cheatsheets.docs.pyansys.com/pydynamicreporting_cheat_sheet.pdf>`_ the\nPyDynamicReporting cheat sheet. This one-page reference provides syntax rules and commands\nfor using PyDynamicReporting.\n\nOn the `PyDynamicReporting Issues <https://github.com/ansys/pydynamicreporting/issues>`_\npage, you can create issues to report bugs and request new features. On the `Discussions <https://discuss.ansys.com/>`_\npage on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.\n\nTo reach the project support team, email `pyansys.core@ansys.com <pyansys.core@ansys.com>`_.\n\nInstallation\n------------\nThe ``pydynamicreporting`` package supports Python 3.10 through 3.13 on\nWindows and Linux. It is currently available on the PyPi\n`repository <https://pypi.org/project/ansys-dynamicreporting-core/>`_.\n\nTo install the package, simply run\n\n.. code::\n\n pip install ansys-dynamicreporting-core\n\nDeveloper installation\n^^^^^^^^^^^^^^^^^^^^^^\nTo clone and install the ``pydynamicreporting`` package in development mode,\nrun this code:\n\n.. code::\n\n git clone https://github.com/ansys/pydynamicreporting\n cd pydynamicreporting\n pip install virtualenv\n virtualenv venv # create virtual environment\n source venv/bin/activate # (.\\venv\\Scripts\\activate for Windows shell)\n make install-dev # install pydynamicreporting in editable mode\n\nThe preceding code creates an \"editable\" installation that lets you develop and test\nPyDynamicReporting at the same time.\n\nTo build and create a production-like installation on Windows (not required on other OSes),\nfirst install `chocolatey <https://chocolatey.org/install>`_. Then:\n\n.. code::\n\n choco install make # install make on Windows\n make clean # clean\n make build # build\n # this replaces the editable installation done previously. If you don't want to replace,\n # switch your virtual environments to test the new install separately.\n make install\n # you can skip the steps above and just do 'make all'\n make smoketest # test import\n\nLocal GitHub Actions\n^^^^^^^^^^^^^^^^^^^^\nTo run GitHub Actions on your local desktop (recommended), install the\n`act <https://github.com/nektos/act#readme>`_ package.\n\n.. code::\n\n choco install act-cli\n\nTo run a job, such as the ``style`` job from the ``ci_cd.yml`` file, use\nthis command, where ``style`` is the job name:\n\n.. code::\n\n act -W '.github/workflows/ci_cd.yml' -j style --bind\n\n\nDeploy and upload steps **must always** be ignored. If they are not ignored,\nbefore running GitHub Actions locally, add ``if: ${{ !env.ACT }}`` to the\nworkflow step and commit this change if required.\n\nLocal tests\n^^^^^^^^^^^\nTo run tests on your local desktop (recommended), use the `make` target\n`test-dev`. This target runs the tests in the same way as GitHub Actions but using\na local Ansys installation instead of Docker. You must specify the path to your Ansys\ninstallation and the test file you are trying to run.\n\n.. code::\n\n make test-dev TEST_FILE=\"tests/test_service.py\" INSTALL_PATH=\"C:\\Program Files\\ANSYS Inc\\v252\"\n\nNote that any tests that require Docker will obviously fail.\n\nDependencies\n------------\nTo use PyDynamicReporting, you must have a locally installed and licensed copy\nof Ansys 2023 R2 or later.\n\nTo use PyDynamicReporting Serverless (ansys.dynamicreporting.core.serverless),\nyou must have a locally installed and licensed copy of Ansys 2025 R1 or later.\n\nBasic usage\n-----------\nThis code shows how to start the simplest PyDynamicReporting session:\n\n.. code:: pycon\n\n >>> import ansys.dynamicreporting.core as adr\n >>> adr_service = adr.Service(ansys_installation=r\"C:\\Program Files\\ANSYS Inc\\v232\")\n >>> ret = adr_service.connect()\n >>> my_img = adr_service.create_item()\n >>> my_img.item_image = \"image.png\"\n >>> adr_service.visualize_report()\n\n\nLicense and acknowledgements\n----------------------------\nPyDynamicReporting is licensed under the MIT license.\n\nPyDynamicReporting makes no commercial claim over Ansys whatsoever.\nThis library extends the functionality of Ansys Dynamic Reporting by\nadding a Python interface to Ansys Dynamic Reporting without changing\nthe core behavior or license of the original software. The use of\nPyDynamicReporting requires a legally licensed copy of an Ansys product\nthat supports Ansys Dynamic Reporting.\n\nTo get a copy of Ansys, visit the `Ansys <https://www.ansys.com/>`_ website.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python interface to Ansys Dynamic Reporting",
"version": "0.9.0",
"project_urls": {
"Bug Tracker": "https://github.com/ansys/pydynamicreporting/issues",
"changelog": "https://github.com/ansys/pydynamicreporting/blob/main/CHANGELOG.rst",
"ci": "https://github.com/ansys/pydynamicreporting/actions",
"documentation": "https://dynamicreporting.docs.pyansys.com/",
"homepage": "https://github.com/ansys/pydynamicreporting",
"repository": "https://github.com/ansys/pydynamicreporting"
},
"split_keywords": [
"dynamicreporting",
" pydynamicreporting",
" pyansys",
" ansys"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "45417bfc31b5f462a2d53f4b9afd3444b16e46c587d78c611555d165d1ca839c",
"md5": "0e8e91187a13532c18c0edc0963aa666",
"sha256": "ebd1041f92bfe9b63cb551fda2f4056414748121b067701ce34eaf9faca5837e"
},
"downloads": -1,
"filename": "ansys_dynamicreporting_core-0.9.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0e8e91187a13532c18c0edc0963aa666",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 125597,
"upload_time": "2024-12-30T22:38:13",
"upload_time_iso_8601": "2024-12-30T22:38:13.283373Z",
"url": "https://files.pythonhosted.org/packages/45/41/7bfc31b5f462a2d53f4b9afd3444b16e46c587d78c611555d165d1ca839c/ansys_dynamicreporting_core-0.9.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a0b3aadfc3a85d0564a40d2c9f0504abb092199bb8965f8e97a403622b519089",
"md5": "cc41b844093eb16df06b3e78e4e79987",
"sha256": "565d0f337b3f844b4a19ab50b542dd11ea14fe04220b579d80851fed09ea4888"
},
"downloads": -1,
"filename": "ansys_dynamicreporting_core-0.9.0.tar.gz",
"has_sig": false,
"md5_digest": "cc41b844093eb16df06b3e78e4e79987",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 8511885,
"upload_time": "2024-12-30T22:38:16",
"upload_time_iso_8601": "2024-12-30T22:38:16.867142Z",
"url": "https://files.pythonhosted.org/packages/a0/b3/aadfc3a85d0564a40d2c9f0504abb092199bb8965f8e97a403622b519089/ansys_dynamicreporting_core-0.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-30 22:38:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ansys",
"github_project": "pydynamicreporting",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ansys-dynamicreporting-core"
}