Skip to main content

Productivity package for use with Granta MI Dataflow.

Project description

PyAnsys Python PyPI GH-CI Codecov MIT Ruff

PyGranta Data Flow Extensions

The PyGranta Data Flow Extensions package provides easy interoperability between Granta MI Data Flow and Python scripts that implement custom business logic. This package streamlines the interaction with Granta MI™ systems using other PyGranta packages and with the Granta MI Scripting Toolkit.

Dependencies

To use the PyGranta Data Flow Extensions package, you need access to a deployment of Granta MI 2023 R2 or later with an MI Data Flow Advanced edition license.

Python must be installed system-wide, as opposed to a per-user installation. This option is available during Python installation, and can only be modified by uninstalling and reinstalling Python.

Installation

System-wide

Install the package system-wide on the Granta MI application server for production use or for integration testing.

To install the latest release as a system-wide package, run this command as an administrator:

python -m pip install ansys-grantami-dataflow-extensions

Virtual environment

Install the package in a virtual environment:

  • On a local development environment, for script development and debugging

  • On the Granta MI application server, when it is not possible to install system-wide packages

To install the package in a virtual environment, first create a new virtual environment:

python -m venv C:\path\to\my\venv

Where C:\path\to\my\venv is the path to the location where you would like the venv to be located. This should be a location that all users can access.

Then activate the virtual environment and install the packages:

C:\path\to\my\venv\Scripts\activate
pip install ansys-grantami-dataflow-extensions

If installing in a virtual environment on the Granta MI application server, Data Flow must be configured with details of the virtual environment to be used:

  1. Create a backup copy of the web.config file. By default, this file is located at C:\inetpub\wwwroot\mi_dataflow.

  2. Open the web.config file in a text editor, and find the line <add key="PythonPath" value="python.exe" />

  3. Replace the string python.exe with C:\path\to\my\venv\Scripts\python.exe, where C:\path\to\my\venv is the path to the virtual environment specified above.

  4. Save the modified web.config file. If you see a permissions error, you may need to open the text editor with administrator privileges.

  5. Reload the Data Flow worker process in IIS Manager. Warning: This stops any running Workflow processes.

Installing a development version

To install the latest release from the PyGranta Data Flow Extensions repository, run this command:

python -m pip install git+https://github.com/ansys/grantami-dataflow-extensions.git

To install a local development version with Git and Poetry, run these commands:

git clone https://github.com/ansys/grantami-dataflow-extensions
cd grantami-dataflow-extensions
poetry install

The preceding commands install the package in development mode so that you can modify it locally. Your changes are reflected in your Python setup after restarting the Python kernel. This option should only be used when making changes to this package, and should not be used when developing code based on this package.

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_grantami_dataflow_extensions-0.3.0rc0.tar.gz (189.6 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_grantami_dataflow_extensions-0.3.0rc0.tar.gz.

File metadata

File hashes

Hashes for ansys_grantami_dataflow_extensions-0.3.0rc0.tar.gz
Algorithm Hash digest
SHA256 9701c972a9de2b42d67147c917afd70a5177e6bb3d4778625bec0c638d261c6b
MD5 87da3a8844096ab794d089b0f545c596
BLAKE2b-256 85802dc9da0c4c2a20e40b3894e2c8d87833135bed2eda1ddcf8c2ca05f3fae3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_grantami_dataflow_extensions-0.3.0rc0.tar.gz:

Publisher: ci_cd.yml on ansys/grantami-dataflow-extensions

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_grantami_dataflow_extensions-0.3.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_grantami_dataflow_extensions-0.3.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f1b630a6abb2b942f6fb4189c880161d625623d3c45c7df5c1080cb429d764b
MD5 8674fcbcfdde8c556c049acd25b3165c
BLAKE2b-256 5f72dda2d3191c2e80df6b1f341f52d08990a2fa19efa4e1921428c23d4a6f82

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_grantami_dataflow_extensions-0.3.0rc0-py3-none-any.whl:

Publisher: ci_cd.yml on ansys/grantami-dataflow-extensions

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