Python interface to Ansys Dynamic Reporting
Project description
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.
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 or download the PyDynamicReporting cheat sheet. This one-page reference provides syntax rules and commands for using PyDynamicReporting.
On the PyDynamicReporting Issues page, you can create issues to report bugs and request new features. On 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.
Installation
The pydynamicreporting package supports Python 3.10 through 3.12 on Windows and Linux. It is currently available on the PyPi repository.
To install the package, simply run
pip install ansys-dynamicreporting-core
Developer installation
To clone and install the pydynamicreporting package in development mode, run this 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. Then:
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 package.
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:
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.
Creating a Release
This project now uses tag-driven releases and dynamic versions powered by hatch-timestamp-version (based on hatch-vcs). Stable releases are cut from Git tags (vX.Y.Z). Development builds use UTC timestamped versions derived from the most recent tag. Release branches are no longer needed; the version is always derived from tags.
Versioning model
Stable releases: The version is the exact Git tag (for example, v0.10.0 → package version 0.10.0).
Development builds: Version is computed from the latest tag plus a timestamp, e.g. 0.10.1.devYYYYMMDDHHMMSS.
No manual editing of pyproject.toml for versions — [tool.hatch.version] drives everything.
What the automation does
Create Draft Release (on tag push): builds wheels/sdist and opens a draft GitHub Release attaching artifacts.
Publish Release (when the GitHub Release is published): uploads artifacts to PyPI via Trusted Publisher, then builds & deploys stable docs.
Failure notifications: posts to Microsoft Teams on workflow failure.
Prerequisites
Ensure CHANGELOG.md has a section for the release dated today (the helper script validates this).
Working tree must be clean (no uncommitted changes).
CI secrets for publishing and docs deploy are configured in GitHub.
Cutting a Stable Release
Make sure your CHANGELOG.md entry for the version is dated today (this check runs automatically from make tag).
Create and push the release tag:
make tagThis runs all safety checks, validates the changelog date, and pushes the Git tag (for example, v0.10.0).
Once the tag is pushed: - The Create Draft Release workflow builds the package and opens a draft GitHub Release with artifacts. - After reviewing and finalizing notes, publish the GitHub Release.
Publishing the release automatically triggers the Release workflow, which: - Uploads artifacts to PyPI using Trusted Publisher. - Builds and deploys the stable documentation.
Patch releases
For a patch, update the changelog, ensure the working tree is clean, then run make tag again (which tags the next patch version determined by hatch version from your last tag).
No separate “release branch” is required; the version is derived from tags.
Local dry-runs (optional)
You can use act to exercise non-publishing parts locally. Steps that publish or deploy are already guarded in workflows (e.g., with if: ${{ !env.ACT }}). Build and validation steps still run:
act -W '.github/workflows/release.yml' -j release --bind
CI workflows (reference)
.github/workflows/create_draft_release.yml - Triggers on: tag push v*, or manual dispatch. - Builds artifacts and opens a draft GitHub Release attaching dist/*.
.github/workflows/release.yml - Triggers on: published GitHub Release, or manual dispatch. - Rebuilds/validates, downloads artifacts, publishes to PyPI, builds docs, and deploys stable docs.
CLI helpers
Print the resolved version (dev or stable):
make versionBuild locally (sdist + wheel):
make build make check-distClean:
make clean
Changelog guards
Releases are blocked if today’s dated entry is missing:
❌ ERROR: CHANGELOG.md is not ready for release.
Expected line: ## [0.10.0] - YYYY-MM-DD
Tip: Check if it's still marked as '[Unreleased]' and update it to today's date.
Troubleshooting
“No Git tag found” during checks: Create a tag via make tag (or git tag vX.Y.Z && git push origin vX.Y.Z).
Draft already exists: The draft release is unique per tag. Delete or publish the existing one, or bump the tag properly.
Version mismatch: hatch version determines the version from the last tag; ensure you pushed the intended tag and your clone has all tags (git fetch --tags).
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:
>>> 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 website.
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_dynamicreporting_core-0.10.6.tar.gz.
File metadata
- Download URL: ansys_dynamicreporting_core-0.10.6.tar.gz
- Upload date:
- Size: 172.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d2e1638b0a14458682127dd83b497c9faef45c8f8ea1765ce2eca4b761bfe94
|
|
| MD5 |
e76e5ec969c51821e37000c8d5805eec
|
|
| BLAKE2b-256 |
19bd7e764d20246c4e414573864668ab09cde0eec67c165cbca71735d50d0444
|
Provenance
The following attestation bundles were made for ansys_dynamicreporting_core-0.10.6.tar.gz:
Publisher:
release.yml on ansys/pydynamicreporting
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_dynamicreporting_core-0.10.6.tar.gz -
Subject digest:
6d2e1638b0a14458682127dd83b497c9faef45c8f8ea1765ce2eca4b761bfe94 - Sigstore transparency entry: 767678760
- Sigstore integration time:
-
Permalink:
ansys/pydynamicreporting@197a2a514a2427a5d7f42ecc579ae8f0f5d7976e -
Branch / Tag:
refs/tags/v0.10.6 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@197a2a514a2427a5d7f42ecc579ae8f0f5d7976e -
Trigger Event:
release
-
Statement type:
File details
Details for the file ansys_dynamicreporting_core-0.10.6-py3-none-any.whl.
File metadata
- Download URL: ansys_dynamicreporting_core-0.10.6-py3-none-any.whl
- Upload date:
- Size: 174.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5df94be23a27388dcbcbf217cb6e68ae0cc20d823e89503a7b9a745e5e214c6
|
|
| MD5 |
77e536d4460d04e838a04e8500ee332a
|
|
| BLAKE2b-256 |
68bfcfca4195b16b7acb7349b16ed43ddbcea99069daa71721ddc6e698a1b362
|
Provenance
The following attestation bundles were made for ansys_dynamicreporting_core-0.10.6-py3-none-any.whl:
Publisher:
release.yml on ansys/pydynamicreporting
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_dynamicreporting_core-0.10.6-py3-none-any.whl -
Subject digest:
c5df94be23a27388dcbcbf217cb6e68ae0cc20d823e89503a7b9a745e5e214c6 - Sigstore transparency entry: 767678764
- Sigstore integration time:
-
Permalink:
ansys/pydynamicreporting@197a2a514a2427a5d7f42ecc579ae8f0f5d7976e -
Branch / Tag:
refs/tags/v0.10.6 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@197a2a514a2427a5d7f42ecc579ae8f0f5d7976e -
Trigger Event:
release
-
Statement type: