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.0.tar.gz (189.7 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.0.tar.gz.

File metadata

File hashes

Hashes for ansys_grantami_dataflow_extensions-0.3.0.tar.gz
Algorithm Hash digest
SHA256 cd0ec5db13dec53678c4422778167d5926fab8a91e0df6b2e09da0a394387139
MD5 11b33ef641152a23404789b63b7874c9
BLAKE2b-256 bde384b299a0f97efa4bf2640fa982fccbfe8c91e5aa07d5c5b2fc182dc94b27

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_grantami_dataflow_extensions-0.3.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_grantami_dataflow_extensions-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 830be742f14200a6522c2f4809a9ee6a74edc80d10a7a042656c76956a05c3e9
MD5 f21d4c9c70d63215b96c50f0895653f3
BLAKE2b-256 fba6900b78d1c9bee4c734e0d5969d2c23fbb43f60336c7d46aa51f08ea2f190

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_grantami_dataflow_extensions-0.3.0-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