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.1.0.tar.gz (14.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.1.0.tar.gz.

File metadata

File hashes

Hashes for ansys_grantami_dataflow_extensions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b6818d226f716c500246ce80b959976700e81102e626c78aa9fbcd55e7de76f
MD5 00125cc050d6792954e249c963697fce
BLAKE2b-256 3d14b544f096cd3f3315e3f475741c25707f4a048c3f6661cf069c99d7fe7153

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for ansys_grantami_dataflow_extensions-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f33de5bd66629417f3ec12c1e23854454cc4c0e89f79d3b6de79ffdd9447483
MD5 9fde9082be12e27e8890f727742f0193
BLAKE2b-256 227b54404c558268c366faa68cffb9904ef64511bf32d9d56db78dff7b88a88d

See more details on using hashes here.

Provenance

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