Productivity package for use with Granta MI Dataflow.
Project description
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:
Create a backup copy of the web.config file. By default, this file is located at C:\inetpub\wwwroot\mi_dataflow.
Open the web.config file in a text editor, and find the line <add key="PythonPath" value="python.exe" />
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.
Save the modified web.config file. If you see a permissions error, you may need to open the text editor with administrator privileges.
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
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_grantami_dataflow_extensions-0.3.0rc0.tar.gz.
File metadata
- Download URL: ansys_grantami_dataflow_extensions-0.3.0rc0.tar.gz
- Upload date:
- Size: 189.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9701c972a9de2b42d67147c917afd70a5177e6bb3d4778625bec0c638d261c6b
|
|
| MD5 |
87da3a8844096ab794d089b0f545c596
|
|
| BLAKE2b-256 |
85802dc9da0c4c2a20e40b3894e2c8d87833135bed2eda1ddcf8c2ca05f3fae3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_grantami_dataflow_extensions-0.3.0rc0.tar.gz -
Subject digest:
9701c972a9de2b42d67147c917afd70a5177e6bb3d4778625bec0c638d261c6b - Sigstore transparency entry: 973600283
- Sigstore integration time:
-
Permalink:
ansys/grantami-dataflow-extensions@79fcac01e978a0b8bd4067d6614990ba87b2cd9a -
Branch / Tag:
refs/tags/v0.3.0rc0 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd.yml@79fcac01e978a0b8bd4067d6614990ba87b2cd9a -
Trigger Event:
push
-
Statement type:
File details
Details for the file ansys_grantami_dataflow_extensions-0.3.0rc0-py3-none-any.whl.
File metadata
- Download URL: ansys_grantami_dataflow_extensions-0.3.0rc0-py3-none-any.whl
- Upload date:
- Size: 16.5 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 |
0f1b630a6abb2b942f6fb4189c880161d625623d3c45c7df5c1080cb429d764b
|
|
| MD5 |
8674fcbcfdde8c556c049acd25b3165c
|
|
| BLAKE2b-256 |
5f72dda2d3191c2e80df6b1f341f52d08990a2fa19efa4e1921428c23d4a6f82
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_grantami_dataflow_extensions-0.3.0rc0-py3-none-any.whl -
Subject digest:
0f1b630a6abb2b942f6fb4189c880161d625623d3c45c7df5c1080cb429d764b - Sigstore transparency entry: 973600313
- Sigstore integration time:
-
Permalink:
ansys/grantami-dataflow-extensions@79fcac01e978a0b8bd4067d6614990ba87b2cd9a -
Branch / Tag:
refs/tags/v0.3.0rc0 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd.yml@79fcac01e978a0b8bd4067d6614990ba87b2cd9a -
Trigger Event:
push
-
Statement type: