Welcome¶
The MI Scripting Toolkit for Python provides an interface for directly interacting with the Granta MI Service Layer. Materials data in your Granta MI installation can be analyzed or transformed using Python, and the results imported back into MI with full traceability, or extracted based on known record lists or search criteria.
The Streamlined API introduced in Version 2.0 for Python builds on the existing Foundation API, providing wrappers for its request-and-response based classes and resulting in a more intuitive user experience. Example Notebooks are provided to help you get started, and all previous modules are still available and can be used alongside the new. For more specific assistance, the documentation is searchable and arranged into groups of classes and functions associated with MI Sessions, Databases & Tables, Records and Attributes.
More information on upgrading from earlier versions of the MI Scripting Toolkit can be found on the Upgrading from earlier versions page.
System requirements¶
Compatible operating system:¶
Microsoft Windows 10 64-bit
Ubuntu 18
Debian 9.11
CentOS 7.6 or 7.9
Red Hat Enterprise Linux 7.6 or 7.9
SUSE Enterprise 15.2
Required packages:¶
Granta MI Version 11 Update 3 or later, with Service Layer Interface 18/04
Python 3.6 64-bit or later
Installation instructions and more detailed requirements (such as package dependencies, or shared library names for Linux operating systems) can be found in the Installation Guide (provided with your installer from the Ansys Download Center, or downloaded from the Granta MI Documentation Library ).
MI Scripting Toolkit 2.0 onwards is only compatible with Python 3, and Ansys Granta plans to end support for earlier versions, compatible with Python 2, in the next few release cycles. For more information on upgrading your existing scripts, see the Upgrading from earlier versions page.