Skip to main content

WARNING

Always consult your ACE representative before using the Foundation API. See Foundation API for more information.

Services reference

BrowseService

class BrowseService(mi_session, retries=0)

The Browse service provides read-only operation for a Granta MI Server.

get_associated_records(_req)

Returns all the Records, in a single target Table, that are associated with each of a given set of source Records, via Tabular Data links. These links can be in the forward or reverse direction. Note that, if there is more than one Tabular Attribute linking the source and target Tables, the Associated Records are the union of all those linked by each of the Tabular Attributes.

get_attribute_details(_req)

Returns detailed meta-information about given Attribute(s) in a Granta MI Database. Does not retrieve values of the Data; for that, use the DataExport service.

get_attribute_parameters(_req)

Gets detailed information about the Parameters that are declared to be usable with given Attribute(s) in a Granta MI Database. Can only be used with Functional Attributes or Multi-Valued Attributes.

get_child_nodes(_req)

Returns information about the child nodes of the given node in the node-tree of a Granta MI Table.

get_currencies()

Returns the currencies available in the Granta MI Server.

get_database_parameters(_req)

List the parameter(s) in a Granta MI Database.

get_databases()

List the databases available on the Granta MI Server.

get_datasheet_path(_req)

For each record reference gets the relative portion of an HTTP URL to a Granta MI datasheet, served by MI Viewer.

get_datasheet_path_parameterized(_req)

Gets information that may be used to construct an HTTP URL to a Granta MI datasheet, served by MI Viewer.

get_integration_profiles(_req)

List the profiles available on a Granta MI Database.

get_layouts(_req)

List the Layouts for an MI Database or for one Table in a Database.

get_linked_records(_req)

Returns the linked records for specified records, for one or more record link groups.

get_meta_attributes(_req)

Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.

get_parameter_details(_req)

Returns detailed information about the given Parameter(s) in a Granta MI Database.

get_record_attributes(_req)

Returns information about which Attributes have Data, for given Record(s). Includes information about when Data was created and retired, in a Version-Controlled Table. Does not retrieve values of the Data; for that, use the DataExport or EngineeringData services. Gets details of Record Link Groups in a Granta MI Database.

get_record_versions(_req)

Returns version information about the records specified in the request object.

get_root_node(_req)

Returns information about the root node of a particular Table in a Granta MI Database. This can be passed to get_child_nodes operation to find the contents of the rest of the node-tree of the Table.

get_subsets(_req)

List the Subsets for a Granta MI Database or for one Table in a Database.

get_tables(_req)

List the tables contained in a particular Granta MI Database.

get_tree_records(_req)

Returns name, record type, and some tree information for the given record(s). Does not retrieve the tree children; for that, use the get_child_records operation.

get_unit_conversions(_req)

Gets all the unit conversions available for a specified unit or unit system.

get_unit_systems(_req)

Returns information about the unit systems known to a Granta MI Database

get_units(_req)

Returns information about the units known to one or more Granta MI Databases

resolve_references(_req)

Checks whether the specified Granta MI entities exist in the database and, if so, whether the current user has read permissions or write permissions for it.

SearchService

class SearchService(mi_session, retries=0)

The Search service finds Records, within Granta MI Databases, matching specified criteria.

criteria_search(_req)

Searches for records matching attribute-based criteria.

record_name_search(_req)

Searches for Records with a given exact Record name.

simple_text_search(_req)

Searches for records matching simple text criteria.

DataImportService

class DataImportService(mi_session, retries=0)

The DataImport service writes data to attributes of records in Granta MI Databases.

delete_or_withdraw_if_latest_record_version(_req)

Deletes or withdraws the latest version of the specified record(s). In a version-controlled table, the latest version of a record can be seen by Write users in Edit mode of MI Viewer. This operation will revert (or delete) unreleased record versions, withdraw released versions, and skip withdrawn versions. In a non-version-controlled table, records will only have one version. This operation will delete specified records of this type. Note: this operation will only act on the latest record version. In the case where the specified record corresponds to a record version that is an earlier version, the operation will return a fault.

ensure_record_folder_paths(_req)

Checks whether given hierarchies of folders exist, creating them if not. Each hierarchy is specified as a sequence of tree names; where the folder needs to be created, this name is also used as the full name of the created folder. New folders will be assigned to their parents’ subsets; existing folders are not assigned or removed from any subsets. If a colour is specified, new folders will be of that colour; existing folders’ colours are never changed. Note: this operation can accept an arbitrary number of Record Folder paths to be ensured, but in practice there is a limit to the amount of changes that can be done in a single operation.

get_upload_addresses(_req)

Returns an address to which a datum can be uploaded, for each combination of given sets of records and attributes in a Granta MI database. Each address will be an HTTP or HTTPS URL. The upload service only supports a subset of all available Granta MI attribute types, but this operation will give an address for an attribute of any type. Adds or removes static Links between record(s) in a Granta MI Database.

set_record_attributes(_req)

Sets the data values for the given attribute(s) and record(s) in a Granta MI Database. This method will create any records or folders which do not already exist in the database (however, new folders should be created with ‘EnsureRecordFolderPaths’ instead). Note: This operation can accept an arbitrary number of attributes and records to be imported, but in practice there is a fairly low limit to the amount of data that can be imported in a single operation. Client code should perform large imports in small chunks.

DataExportService

class DataExportService(mi_session, retries=0)

The DataExport service retrieves and returns data from attributes of records in Granta MI Databases.

get_record_attributes_by_ref(_req)

Retrieves the data values for the given attribute(s) and record(s) in a Granta MI Database.

EngineeringDataService

class EngineeringDataService(mi_session, retries=0)

The EngineeringData service provides custom data export operations for a Granta MI Server.

export_record_data(_req)

Performs an FEA Export and returns the result as the response.

exporters_for_records(_req)

Returns the FEA Exporter configurations, known to the MI Server, filtering for their applicability to given Record(s) and optionally to particular situations.

get_available_exporters(_req)

Returns the FEA Exporter configurations known to the MI Server, optionally filtering for their applicability to particular situations.

get_exporter_parameters(_req)

Returns information about the MI Parameter Values that will need to be chosen, to run the specified Exporter on the specified Record(s).

RecordManipulatorService

class RecordManipulatorService(mi_session, retries=0)

The Record Manipulator service provides a way to move a record whilst preserving its metadata and attribute values.

move_record(_req)

Reparents a record. Metadata such as creation date will be preserved, along with attribute values.

Objects reference

AssociatedRecords

class AssociatedRecords(associated_records=None, source_record=None, _is_owner=True)

Bases: object Object containing a source RecordReference object and an array of associated RecordReference objects.

property associated_records : list[RecordReference]

Property associated_records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property source_record : RecordReference

Property source_record is of type RecordReference.

AttributeAddress

class AttributeAddress(url=None, attribute_id=None, attribute_name=None, attribute_standard_name=None, _is_owner=True)

Bases: object The upload URL of an attribute and an attribute identifier. The attribute is identified by the identity, name, and where available, standard name.
  • Parameters:
    • url (str)
    • attribute_id (int)
    • attribute_name (str)
    • attribute_standard_name (str)

property attribute_id : int

Property attribute_id is of type int.
  • Return type: int

property attribute_name : str

Property attribute_name is of type str.
  • Return type: str

property attribute_standard_name : str

Property attribute_standard_name is of type str.
  • Return type: str

property url : str

Property url is of type str.
  • Return type: str

AttributeCategory

class AttributeCategory(category_attribute_details=None, name=None, order=None, record_link_group_details=None, display_names=None, _is_owner=True)

Bases: object Gives the details of contents of a category in a layout. Does not include Tabular Data Association Chains.

add_category_attribute_detail(_categoryAttributeDetail)

Appends _categoryAttributeDetail to categoryAttributeDetails property on AttributeCategory C-object. Appends _recordLinkGroupDetail to recordLinkGroupDetails property on AttributeCategory C-object.

property category_attribute_details : list[CategoryAttributeDetail]

Property category_attribute_details is a list of CategoryAttributeDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property display_names : list[DisplayName]

Property display_names is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property name : str

Property name is of type str.
  • Return type: str

property order : int

Property order is of type int.
  • Return type: int
Property record_link_group_details is a list of RecordLinkGroupDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

AttributeDetail

class AttributeDetail(about=None, attribute=None, axis_name=None, chartable=None, database_unit=None, default_threshold=None, discrete_values=None, identity=None, is_meta=None, is_multi_valued=None, is_searchable=None, is_unique=None, min_max=None, name=None, order=None, revision_info=None, tabular=None, type_=None, is_functional_range=None, is_ordered=None, display_names=None, data_rule=None, help_info=None, _is_owner=True)

Bases: object Detailed meta-information about an attribute in a Granta MI database. Does not include values of the attribute. For requests, the name, and type are required.

property about : NamedAttribute

Property about is of type NamedAttribute. Only populated if ‘isMeta’ is True.

property attribute : AttributeReference

Property attribute is of type AttributeReference.

property axis_name : str

Property axis_name is of type str.
  • Return type: str

property chartable : bool

Property chartable is of type bool.

property data_rule : DataRule

Property data_rule is of type DataRule.

property database_unit : str

Property database_unit is of type str.
  • Return type: str

property default_threshold : str

Property default_threshold is of type str.
  • Return type: str

property discrete_values : list[str]

Property discrete_values is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property display_names : list[DisplayName]

Property display_names is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property help_info : HelpInfo

Property help_info is of type HelpInfo.

property identity : int

Property identity is of type int.
  • Return type: int

property is_functional_range : bool

Property is_functional_range is of type bool.

property is_meta : bool

Property is_meta is of type bool. If this is True, the ‘about’ property may have additional information about the related parent attribute.

property is_multi_valued : bool

Property is_multi_valued is of type bool.

property is_ordered : bool

Property is_ordered is of type bool.

property is_searchable : bool

Property is_searchable is of type bool.

property is_unique : bool

Property is_unique is of type bool.

property min_max : MinMax

Property min_max is of type MinMax.

property name : str

Property name is of type str.
  • Return type: str

property order : int

Property order is of type int.
  • Return type: int

property revision_info : RevisionInfo

Property revision_info is of type RevisionInfo.

property tabular : TabularDetail

Property tabular is of type TabularDetail.

property type_ : str

Property type_ is of type str.
  • Return type: str

AttributeExporterParameters

class AttributeExporterParameters(attribute=None, data_presence=None, graph_domains=None, parameters=None, _is_owner=True)

Bases: object A type to contain an attribute along with associated parameters and domains. All Parameters are declared on the MI parameterised Attribute, even if not used in some combination of Exporter and Record. It also contains the possible domains in which the fixed Parameter values must be chosen.

class DataPresence

Bases: object

DataIncompatibleWithConfiguration = 4

Missing = 3

NotApplicable = 2

Present = 1

Unknown = 0

add_graph_domain(_graphDomain)

Appends _graphDomain to graphDomains property on AttributeExporterParameters C-object.

add_parameter(_exporterParameter)

Appends _exporterParameter to parameters property on AttributeExporterParameters C-object.

property attribute : NamedAttribute

Property attribute is of type NamedAttribute.

property data_presence : int

Property data_presence is of type int. See AttributeExporterParameters.DataPresence for supported values.
  • Return type: int

property graph_domains : list[GraphDomain]

Property graph_domains is a list of GraphDomain objects. Each graph domain contains information on the possible values that the corresponding parameter (by list index) can take.

WARNING

Do not attempt to edit or append to the returned value.

property parameters : list[ExporterParameter]

Property parameters is a list of ExporterParameter objects. This is a list of parameters that parameterize the attribute in question.

WARNING

Do not attempt to edit or append to the returned value.

AttributeMetaAttributes

class AttributeMetaAttributes(meta_attributes=None, parent_attribute=None, _is_owner=True)

Bases: object Lists the Meta-Attributes of a particular Attribute in a Granta MI Database Table.

property meta_attributes : list[NamedAttribute]

Property meta_attributes is a list of NamedAttribute objects.

WARNING

Do not attempt to edit or append to the returned value.

property parent_attribute : AttributeReference

Property parent_attribute is of type AttributeReference.

AttributeReference

class AttributeReference(db_key=None, attribute_id=None, is_standard_name=None, name=None, partial_table_reference=None, pseudo_attribute=None, _is_owner=True)

Bases: object Identification of a particular attribute in a Granta MI database. For requests, a db_key is required and either the attribute ID or the attribute name. If the name is not a standard name, then a partial_table_reference is also required.

class MIPseudoAttributeReference

Bases: object

createdDate = 21

creator = 22

lastModifier = 23

modifiedDate = 4

name = 0

parentName = 17

parentRecordHistoryGUID = 20

parentRecordHistoryIdentity = 19

parentShortName = 18

recordColor = 7

recordGUID = 10

recordHistoryGUID = 11

recordHistoryIdentity = 6

recordType = 5

recordVersionNumber = 12

releasedDate = 3

shortName = 1

subsets = 2

tableName = 13

writable = 16

property attribute_id : int

Property attribute_id is of type int.
  • Return type: int

property db_key : str

Property db_key is of type str.
  • Return type: str

property is_standard_name : bool

Property is_standard_name is of type bool.

property name : str

Property name is of type str.
  • Return type: str

property partial_table_reference : PartialTableReference

Property partial_table_reference is of type PartialTableReference.

property pseudo_attribute : int

Property pseudo_attribute is of type int. See AttributeReference.MIPseudoAttributeReference for supported values.
  • Return type: int

AttributeValue

class AttributeValue(attribute_id=None, attribute_name=None, attribute_standard_name=None, data_type=None, discrete_data_value=None, hyperlink_data_value=None, integer_data_value=None, logical_data_value=None, date_data_value=None, date_time_data_value=None, discrete_functional_gridded_data_value=None, discrete_functional_series_data_value=None, file_data_value=None, float_functional_gridded_data_value=None, float_functional_series_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, subsets_data_value=None, tabular_data_value=None, _is_owner=True)

Bases: object Type representing the value of a piece of data for a particular attribute. Access supported data types, and the attribute identity by Name, ID, or Standard Name.

property attribute_id : int

Property attribute_id is of type int.
  • Return type: int

property attribute_name : str

Property attribute_name is of type str.
  • Return type: str

property attribute_standard_name : str

Property attribute_standard_name is of type str.
  • Return type: str

property data_type : str

Property data_type is of type str.
  • Return type: str

property date_data_value : DateDataType

Property date_data_value is of type DateDataType.

property date_time_data_value : DateTimeDataType

Property date_time_data_value is of type DateTimeDataType.

property discrete_data_value : DiscreteDataType

Property discrete_data_value is of type DiscreteDataType.

property discrete_functional_gridded_data_value : DiscreteFunctionalGriddedDataType

Property discrete_functional_gridded_data_value is of type DiscreteFunctionalGriddedDataType.

property discrete_functional_series_data_value : DiscreteFunctionalSeriesDataType

Property discrete_functional_series_data_value is of type DiscreteFunctionalSeriesDataType.

property file_data_value : FileDataType

Property file_data_value is of type FileDataType.

property float_functional_gridded_data_value : FloatFunctionalGriddedDataType

Property float_functional_gridded_data_value is of type FloatFunctionalGriddedDataType.

property float_functional_series_data_value : FloatFunctionalSeriesDataType

Property float_functional_series_data_value is of type FloatFunctionalSeriesDataType. Property hyperlink_data_value is of type HyperlinkDataType.

property integer_data_value : IntegerDataType

Property integer_data_value is of type IntegerDataType.

property logical_data_value : LogicalDataType

Property logical_data_value is of type LogicalDataType.

property long_text_data_value : LongTextDataType

Property long_text_data_value is of type LongTextDataType.

property picture_data_value : PictureDataType

Property picture_data_value is of type PictureDataType.

property point_data_value : PointDataType

Property point_data_value is of type PointDataType.

property range_data_value : RangeDataType

Property range_data_value is of type RangeDataType.

property short_text_data_value : ShortTextDataType

Property short_text_data_value is of type ShortTextDataType.

property subsets_data_value : SubsetsDataType

Property subsets_data_value is of type SubsetsDataType.

property tabular_data_value : TabularDataType

Property tabular_data_value is of type TabularDataType.

BetweenDateTimesSearchValue

class BetweenDateTimesSearchValue(high_end=None, low_end=None, tabular_column=None, _is_owner=True)

Bases: object Search criterion to search for data between two times. This criterion type is specific to DateTime Attributes. Both a low_end and a high_end value are required. The date format is in XSD’s dateTime data type (YYYY-MM-DDThh:mm:ss).
  • Parameters:
    • high_end (str)
    • low_end (str)
    • tabular_column (str)

property high_end : str

Property high_end is of type str.
  • Return type: str

property low_end : str

Property low_end is of type str.
  • Return type: str

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

BetweenSearchValue

class BetweenSearchValue(high_end=None, low_end=None, tabular_column=None, _is_owner=True)

Bases: object Search criterion to search for data between two values. Only Point, Range, and Integer attributes are supported by this search criteria. Both a low_end and a high_end value are required.

property high_end : HighEndSearchValue

Property high_end is of type HighEndSearchValue.

property low_end : LowEndSearchValue

Property low_end is of type LowEndSearchValue.

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

BinaryDataSettings

class BinaryDataSettings(binary_data_representation=None, max_image_size=None, _is_owner=True)

Bases: object Settings for exporting file and picture data.
  • Parameters:

property binary_data_representation : int

Property binary_data_representation is of type int. See GRANTA_Constants for supported values.
  • Return type: int

property max_image_size : RasterSize

Property max_image_size is of type RasterSize.

BrowseService

class BrowseService(mi_session, retries=0)

Bases: Service The Browse service provides read-only operation for a Granta MI Server.

get_associated_records(_req)

Returns all the Records, in a single target Table, that are associated with each of a given set of source Records, via Tabular Data links. These links can be in the forward or reverse direction. Note that, if there is more than one Tabular Attribute linking the source and target Tables, the Associated Records are the union of all those linked by each of the Tabular Attributes.

get_attribute_details(_req)

Returns detailed meta-information about given Attribute(s) in a Granta MI Database. Does not retrieve values of the Data; for that, use the DataExport service.

get_attribute_parameters(_req)

Gets detailed information about the Parameters that are declared to be usable with given Attribute(s) in a Granta MI Database. Can only be used with Functional Attributes or Multi-Valued Attributes.

get_child_nodes(_req)

Returns information about the child nodes of the given node in the node-tree of a Granta MI Table.

get_currencies()

Returns the currencies available in the Granta MI Server.

get_database_parameters(_req)

List the parameter(s) in a Granta MI Database.

get_databases()

List the databases available on the Granta MI Server.

get_datasheet_path(_req)

For each record reference gets the relative portion of an HTTP URL to a Granta MI datasheet, served by MI Viewer.

get_datasheet_path_parameterized(_req)

Gets information that may be used to construct an HTTP URL to a Granta MI datasheet, served by MI Viewer.

get_integration_profiles(_req)

List the profiles available on a Granta MI Database.

get_layouts(_req)

List the Layouts for an MI Database or for one Table in a Database.

get_linked_records(_req)

Returns the linked records for specified records, for one or more record link groups.

get_meta_attributes(_req)

Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.

get_parameter_details(_req)

Returns detailed information about the given Parameter(s) in a Granta MI Database.

get_record_attributes(_req)

Returns information about which Attributes have Data, for given Record(s). Includes information about when Data was created and retired, in a Version-Controlled Table. Does not retrieve values of the Data; for that, use the DataExport or EngineeringData services. Gets details of Record Link Groups in a Granta MI Database.

get_record_versions(_req)

Returns version information about the records specified in the request object.

get_root_node(_req)

Returns information about the root node of a particular Table in a Granta MI Database. This can be passed to get_child_nodes operation to find the contents of the rest of the node-tree of the Table.

get_subsets(_req)

List the Subsets for a Granta MI Database or for one Table in a Database.

get_tables(_req)

List the tables contained in a particular Granta MI Database.

get_tree_records(_req)

Returns name, record type, and some tree information for the given record(s). Does not retrieve the tree children; for that, use the get_child_records operation.

get_unit_conversions(_req)

Gets all the unit conversions available for a specified unit or unit system.

get_unit_systems(_req)

Returns information about the unit systems known to a Granta MI Database

get_units(_req)

Returns information about the units known to one or more Granta MI Databases

resolve_references(_req)

Checks whether the specified Granta MI entities exist in the database and, if so, whether the current user has read permissions or write permissions for it.

CategoryAttributeDetail

class CategoryAttributeDetail(about=None, attribute=None, axis_name=None, chartable=None, database_unit=None, default_threshold=None, discrete_values=None, help_info=None, identity=None, is_meta=None, is_multi_valued=None, is_read_only=None, is_required=None, is_searchable=None, name=None, order=None, revision_info=None, type_=None, _is_owner=True)

Bases: object Gives the attribute details with a client read only and is required flag.

property about : NamedAttribute

Property about is of type NamedAttribute.

property attribute : AttributeReference

Property attribute is of type AttributeReference.

property axis_name : str

Property axis_name is of type str.
  • Return type: str

property chartable : bool

Property chartable is of type bool.

property database_unit : str

Property database_unit is of type str.
  • Return type: str

property default_threshold : str

Property default_threshold is of type str.
  • Return type: str

property discrete_values : list[str]

Property discrete_values is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property help_info : HelpInfo

Property help_info is of type HelpInfo.

property identity : int

Property identity is of type int.
  • Return type: int

property is_meta : bool

Property is_meta is of type bool.

property is_multi_valued : bool

Property is_multi_valued is of type bool.

property is_read_only : bool

Property is_read_only is of type bool.

property is_required : bool

Property is_required is of type bool.

property is_searchable : bool

Property is_searchable is of type bool.

property name : str

Property name is of type str.
  • Return type: str

property order : int

Property order is of type int.
  • Return type: int

property revision_info : RevisionInfo

Property revision_info is of type RevisionInfo.

property type_ : str

Property type_ is of type str.
  • Return type: str

Constraint

class Constraint(label=None, parameter=None, parameter_value=None, _is_owner=True)

Bases: object A constraint on functional data. For requests, both parameter and parameter value are required.

property label : str

Property label is of type str.
  • Return type: str

property parameter : ParameterReference

Property parameter is of type ParameterReference.

property parameter_value : ParameterValue

Property parameter_value is of type ParameterValue.

Constraints

class Constraints(constraints=None, _is_owner=True)

Bases: object A container of constraints.

add_constraint(_constraint)

Appends _constraint to constraints property on Constraints C-object.

property constraints : list[Constraint]

Property constraints is a list of Constraint objects.

WARNING

Do not attempt to edit or append to the returned value.

ContainsAllSearchValue

class ContainsAllSearchValue(tabular_column=None, values=None, _is_owner=True)

Bases: object Search criterion to search for discrete data types that contain all of the specified search values. If the discrete values of the data include further values, it still passes. This criterion type is specific to discrete attributes.
  • Parameters:

add_value(value)

Appends value to values property on ContainsAllSearchValue C-object.
  • Parameters: value (str)

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

property values : list[str]

Property values is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

ContainsAnySearchValue

class ContainsAnySearchValue(tabular_column=None, values=None, _is_owner=True)

Bases: object Search criterion to search for discrete data types that contain any of the specified search values. This criterion type is specific to discrete attributes.
  • Parameters:

add_value(value)

Appends value to values property on ContainsAnySearchValue C-object.
  • Parameters: value (str)

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

property values : list[str]

Property values is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

ContainsSearchValue

class ContainsSearchValue(tabular_column=None, value=None, _is_owner=True)

Bases: object Search criterion to search for data that contains the specified search text value. Search criterion applies to text, logical, and discrete attributes. For logicals, specify ‘true’ or ‘false’ as the text.
  • Parameters:
    • tabular_column (str)
    • value (str)

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

property value : str

Property value is of type str.
  • Return type: str

CriteriaSearch

class CriteriaSearch(db_key=None, parameter_values=None, populate_guids=None, record_filter=None, search_criteria=None, search_filter=None, search_mode=None, significant_figures=None, _is_owner=True)

Bases: object The input for the CriteriaSearch operation. Both the db_key and search_criteria parameters are required. If no subsets are specified, only the default subset will be searched.

add_parameter_value(_unittedParameterValue)

Appends _unittedParameterValue to parameterValues property on CriteriaSearch C-object.

add_search_criteria(_recordSearchCriterion)

Appends _recordSearchCriterion to searchCriteria property on CriteriaSearch C-object.

property db_key : str

Property db_key is of type str.
  • Return type: str

property parameter_values : list[UnittedParameterValue]

Property parameter_values is a list of UnittedParameterValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property populate_guids : bool

Property populate_guids is of type bool.

property record_filter : RecordFilter

Property record_filter is of type RecordFilter.

property search_criteria : list[RecordSearchCriterion]

Property search_criteria is a list of RecordSearchCriterion objects.

WARNING

Do not attempt to edit or append to the returned value.

property search_filter : int

Property search_filter is of type int. See GRANTA_Constants for supported values.
  • Return type: int

property search_mode : int

Property search_mode is of type int. See GRANTA_Constants for supported values.
  • Return type: int

property significant_figures : int

Property significant_figures is of type int.
  • Return type: int

CurrencyDetail

class CurrencyDetail(code=None, factor=None, name=None, _is_owner=True)

Bases: object Provides the currency code and name. Currencies are uniquely identified by their ISO 4217 code, the currency name is also provided.

property code : str

Property code is of type str.
  • Return type: str

property factor : float

Property factor is of type float.

property name : str

Property name is of type str.
  • Return type: str

DataExportService

class DataExportService(mi_session, retries=0)

Bases: Service The DataExport service retrieves and returns data from attributes of records in Granta MI Databases.

get_record_attributes_by_ref(_req)

Retrieves the data values for the given attribute(s) and record(s) in a Granta MI Database.

DataImportService

class DataImportService(mi_session, retries=0)

Bases: Service The DataImport service writes data to attributes of records in Granta MI Databases.

delete_or_withdraw_if_latest_record_version(_req)

Deletes or withdraws the latest version of the specified record(s). In a version-controlled table, the latest version of a record can be seen by Write users in Edit mode of MI Viewer. This operation will revert (or delete) unreleased record versions, withdraw released versions, and skip withdrawn versions. In a non-version-controlled table, records will only have one version. This operation will delete specified records of this type. Note: this operation will only act on the latest record version. In the case where the specified record corresponds to a record version that is an earlier version, the operation will return a fault.

ensure_record_folder_paths(_req)

Checks whether given hierarchies of folders exist, creating them if not. Each hierarchy is specified as a sequence of tree names; where the folder needs to be created, this name is also used as the full name of the created folder. New folders will be assigned to their parents’ subsets; existing folders are not assigned or removed from any subsets. If a colour is specified, new folders will be of that colour; existing folders’ colours are never changed. Note: this operation can accept an arbitrary number of Record Folder paths to be ensured, but in practice there is a limit to the amount of changes that can be done in a single operation.

get_upload_addresses(_req)

Returns an address to which a datum can be uploaded, for each combination of given sets of records and attributes in a Granta MI database. Each address will be an HTTP or HTTPS URL. The upload service only supports a subset of all available Granta MI attribute types, but this operation will give an address for an attribute of any type. Adds or removes static Links between record(s) in a Granta MI Database.

set_record_attributes(_req)

Sets the data values for the given attribute(s) and record(s) in a Granta MI Database. This method will create any records or folders which do not already exist in the database (however, new folders should be created with ‘EnsureRecordFolderPaths’ instead). Note: This operation can accept an arbitrary number of attributes and records to be imported, but in practice there is a fairly low limit to the amount of data that can be imported in a single operation. Client code should perform large imports in small chunks.

DatabaseDetail

class DatabaseDetail(db_key=None, author=None, company=None, volume_name=None, db_guid=None, db_version_guid=None, _is_owner=True)

Bases: object Detailed meta-information about a Granta MI database.
  • Parameters:
    • db_key (str)
    • author (str)
    • company (str)
    • volume_name (str)
    • db_guid (str)
    • db_version_guid (str)

property author : str

Property author is of type str.
  • Return type: str

property company : str

Property company is of type str.
  • Return type: str

property db_guid : str

Property db_guid is of type str.
  • Return type: str

property db_key : str

Property db_key is of type str.
  • Return type: str

property db_version_guid : str

Property db_version_guid is of type str.
  • Return type: str

property volume_name : str

Property volume_name is of type str.
  • Return type: str

DatabaseRevision

class DatabaseRevision(revision_date=None, revision_note=None, username=None, has_revision_note=None, _is_owner=True)

Bases: object Information about a specific database revision. Includes the author, the date and time, and the transaction note (if present).
  • Parameters:
    • revision_date (str)
    • revision_note (str)
    • username (str)
    • has_revision_note (bool)

property has_revision_note : bool

Property has_revision_note is of type bool.

property revision_date : str

Property revision_date is of type str.
  • Return type: str

property revision_note : str

Property revision_note is of type str.
  • Return type: str

property username : str

Property username is of type str.
  • Return type: str

DatabaseUnitSet

class DatabaseUnitSet(db_key=None, unit_symbols=None, _is_owner=True)

Bases: object An array of UnitSymbols for a specific database.

property db_key : str

Property db_key is of type str.
  • Return type: str

property unit_symbols : list[UnitSymbol]

Property unit_symbols is a list of UnitSymbol objects.

WARNING

Do not attempt to edit or append to the returned value.

DataRule

class DataRule(description=None, display_descriptions=None, display_names=None, name=None, regular_expression=None, _is_owner=True)

Bases: object A data validation rule that will be applied to the corresponding Short Text Attribute when importing data.

property description : str

Property description is of type str.
  • Return type: str

property display_descriptions : list[DisplayName]

Property display_descriptions is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property display_names : list[DisplayName]

Property display_names is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property name : str

Property name is of type str.
  • Return type: str

property regular_expression : str

Property regular_expression is of type str.
  • Return type: str

DatasheetPath

class DatasheetPath(url=None, record_reference=None, _is_owner=True)

Bases: object Link to a record in a Granta MI database. Includes a RecordReference and a URL for the record datasheet.

property record_reference : RecordReference

Property record_reference is of type RecordReference.

property url : str

Property url is of type str.
  • Return type: str

DateDataType

class DateDataType(is_applicable=None, value=None, _is_owner=True)

Bases: IDataValue Container of date data. The format is YYYY-MM-DD.
  • Parameters:

property is_applicable : bool

Property is_applicable is of type bool.

property value : str

Property value is of type str.
  • Return type: str

DateTimeDataType

class DateTimeDataType(is_applicable=None, value=None, _is_owner=True)

Bases: IDataValue Container of datetime data. The format is YYYY-MM-DDThh:mm:ss and is compatible with ISO 8601.
  • Parameters:

property is_applicable : bool

Property is_applicable is of type bool.

property value : str

Property value is of type str.
  • Return type: str

DefaultParameterValue

class DefaultParameterValue(discrete_value=None, numeric_value=None, type_=None, _is_owner=True)

Bases: object Type representing the default value of a parameter, may be overridden at the datum level, or inherited from the attribute or the database default.
  • Parameters:
    • discrete_value (str)
    • numeric_value (float)
    • type (str)

class DefaultParameterValueType

Bases: object

Discrete = 2

Numeric = 1

Unknown = 0

property discrete_value : str

Property discrete_value is of type str.
  • Return type: str

property numeric_value : float

Property numeric_value is of type float.

property type_ : str

Property type_ is of type str.
  • Return type: str

DeleteOrWithdrawIfLatestRecordVersionRequest

class DeleteOrWithdrawIfLatestRecordVersionRequest(delete_or_withdraw_records=None, notes=None, _is_owner=True)

Bases: object DeleteOrWithdrawIfLatestRecordVersionRequest. Input for the DeleteOrWithdrawIfLatestRecordVersion operation, containing the DeleteOrWithdrawRecord objects.

add_delete_or_withdraw_record(_deleteOrWithdrawRecord)

Appends _deleteOrWithdrawRecord to deleteOrWithdrawRecords property on DeleteOrWithdrawIfLatestRecordVersionRequest C-object.

property delete_or_withdraw_records : list[DeleteOrWithdrawRecord]

Property delete_or_withdraw_records is a list of DeleteOrWithdrawRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property notes : str

Property notes is of type str.
  • Return type: str

DeleteOrWithdrawIfLatestRecordVersionResponse

class DeleteOrWithdrawIfLatestRecordVersionResponse(c_obj)

Bases: Response DeleteOrWithdrawIfLatestRecordVersionResponse. Output of the DeleteOrWithdrawIfLatestRecordVersion operation.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a DeleteOrWithdrawIfLatestRecordVersionResponse object.

DeleteOrWithdrawRecord

class DeleteOrWithdrawRecord(record_reference=None, _is_owner=True)

Bases: object Record to be deleted or withdrawn. Contains a RecordReference.

property record_reference : RecordReference

Property record_reference is of type RecordReference.

DiscreteDataType

class DiscreteDataType(discrete_values=None, is_applicable=None, _is_owner=True)

Bases: IDataValue Container of discrete data.

add_discrete_value(_discreteValue)

Appends _discreteValue to discreteValues property on DiscreteDataType C-object.

property discrete_values : list[DiscreteValue]

Property discrete_values is a list of DiscreteValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property is_applicable : bool

Property is_applicable is of type bool.

DiscreteFunctionalGriddedDataType

class DiscreteFunctionalGriddedDataType(default_x_axis_parameter=None, functional_data_parameter_settings=None, is_applicable=None, values=None, _is_owner=True)

Bases: IDataValue A type to contain the values of discrete-valued functional gridded data. This type is only valid for export.

add_functional_data_parameter_settings(_functionalDataParameterSettings)

Appends _functionalDataParameterSettings to functionalDataParameterSettings property on DiscreteFunctionalGriddedDataType C-object.

property default_x_axis_parameter : ParameterInformation

Property default_x_axis_parameter is of type ParameterInformation.

property functional_data_parameter_settings : list[FunctionalDataParameterSettings]

Property functional_data_parameter_settings is a list of FunctionalDataParameterSettings objects.

WARNING

Do not attempt to edit or append to the returned value.

property is_applicable : bool

Property is_applicable is of type bool.

property values : DiscreteFunctionalValues

Property values is of type DiscreteFunctionalValues.

DiscreteFunctionalSeriesDataType

class DiscreteFunctionalSeriesDataType(functional_data_parameter_settings=None, graph=None, is_applicable=None, _is_owner=True)

Bases: IDataValue A type to contain the values of discrete-valued functional series data. This type is only valid for export.

add_functional_data_parameter_settings(_functionalDataParameterSettings)

Appends _functionalDataParameterSettings to functionalDataParameterSettings property on DiscreteFunctionalSeriesDataType C-object.

property functional_data_parameter_settings : list[FunctionalDataParameterSettings]

Property functional_data_parameter_settings is a list of FunctionalDataParameterSettings objects.

WARNING

Do not attempt to edit or append to the returned value.

property graph : DiscreteFunctionalSeriesGraph

Property graph is of type DiscreteFunctionalSeriesGraph.

property is_applicable : bool

Property is_applicable is of type bool.

DiscreteFunctionalSeriesGraph

class DiscreteFunctionalSeriesGraph(x_axis_parameter=None, hide_graph=None, series=None, _is_owner=True)

A type to contain a collection of DiscreteSeries objects that contain the functional data.

add_series(_discreteSeries)

Appends _discreteSeries to series property on DiscreteFunctionalSeriesGraph C-object.

property hide_graph : bool

Property hide_graph is of type bool.

property series : list[DiscreteSeries]

Property series is a list of DiscreteSeries objects.

WARNING

Do not attempt to edit or append to the returned value.

property x_axis_parameter : ParameterInformation

Property x_axis_parameter is of type ParameterInformation.

DiscreteFunctionalValue

class DiscreteFunctionalValue(constraints=None, value=None, is_estimated=None, _is_owner=True)

Bases: object A single grid point in Gridded Discrete-Valued Functional Data, where the Y-axis value is a discrete value.

property constraints : Constraints

Property constraints is of type Constraints.

property is_estimated : bool

Property is_estimated is of type bool.

property value : str

Property value is of type str.
  • Return type: str

DiscreteFunctionalValues

class DiscreteFunctionalValues(values=None, _is_owner=True)

Bases: object A collection of DiscreteFunctionalValue objects.

add_value(_discreteFunctionalValue)

Appends _discreteFunctionalValue to values property on DiscreteFunctionalValues C-object.

property values : list[DiscreteFunctionalValue]

Property values is a list of DiscreteFunctionalValue objects.

WARNING

Do not attempt to edit or append to the returned value.

DiscreteSeries

class DiscreteSeries(xy_points=None, constraints=None, _is_owner=True)

Bases: object Type for functional data which includes X-Y discrete data and any constraints.

property constraints : Constraints

Property constraints is of type Constraints.

property xy_points : XYDiscreteData

Property xy_points is of type XYDiscreteData.

DiscreteValue

class DiscreteValue(order=None, value=None, _is_owner=True)

Bases: object The value of a discrete data type. Contains an order and a value.
  • Parameters:

property order : int

Property order is of type int.
  • Return type: int

property value : str

Property value is of type str.
  • Return type: str

DisplayName

class DisplayName(language=None, translation=None, _is_owner=True)

Bases: object A language identifier and localized string for the display name of an object.
  • Parameters:
    • language (str)
    • translation (str)

property language : str

Property language is of type str.
  • Return type: str

property translation : str

Property translation is of type str.
  • Return type: str

DoesNotContainSearchValue

class DoesNotContainSearchValue(tabular_column=None, value=None, _is_owner=True)

Bases: object Search criterion to search for discrete data types that contain none of the specified search values. This criterion type is specific to discrete attributes.
  • Parameters:
    • tabular_column (str)
    • value (str)

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

property value : str

Property value is of type str.
  • Return type: str

DoesNotExistSearchValue

class DoesNotExistSearchValue(tabular_column=None, _is_owner=True)

Bases: object Search criterion to search for attributes with no data. All attribute types supported.
  • Parameters: tabular_column (str)

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

EmptyDataType

class EmptyDataType(_is_owner=True)

Bases: IDataValue A type that indicates that the TabularDataCell is empty. This type is specific to Tabular attributes, and can be used in update operations to clear the contents of a TabularDataCell.

EmptyRestResponse

class EmptyRestResponse(c_obj)

Bases: Response A response from a REST service that contains no data. This type contains only a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a EmptyRestResponse object.

EngineeringDataService

class EngineeringDataService(mi_session, retries=0)

Bases: Service The EngineeringData service provides custom data export operations for a Granta MI Server.

export_record_data(_req)

Performs an FEA Export and returns the result as the response.

exporters_for_records(_req)

Returns the FEA Exporter configurations, known to the MI Server, filtering for their applicability to given Record(s) and optionally to particular situations.

get_available_exporters(_req)

Returns the FEA Exporter configurations known to the MI Server, optionally filtering for their applicability to particular situations.

get_exporter_parameters(_req)

Returns information about the MI Parameter Values that will need to be chosen, to run the specified Exporter on the specified Record(s).

EnsureRecordFolderPathsRequest

class EnsureRecordFolderPathsRequest(folder_paths=None, import_error_mode=None, notes=None, _is_owner=True)

Bases: object Input for the EnsureRecordFolderPaths operation, containing the folder paths to check and the import error mode.

add_folder_path(_recordFolderPath)

Appends _recordFolderPath to folderPaths property on EnsureRecordFolderPathsRequest C-object.

property folder_paths : list[RecordFolderPath]

Property folder_paths is a list of RecordFolderPath objects.

WARNING

Do not attempt to edit or append to the returned value.

property import_error_mode : str

Property import_error_mode is of type str.
  • Return type: str

property notes : str

Property notes is of type str.
  • Return type: str

EnsureRecordFolderPathsResponse

class EnsureRecordFolderPathsResponse(c_obj)

Bases: Response Output of the EnsureRecordFolderPaths operation.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a EnsureRecordFolderPathsResponse object.

property path_leaves : list[PathLeaf]

Property path_leaves is a list of PathLeaf objects.

WARNING

Do not attempt to edit or append to the returned value.

EqualToSearchValue

class EqualToSearchValue(tabular_column=None, value=None, _is_owner=True)

Bases: object Search criterion to search for short text values that exactly match the specified search value. Applies to short text attributes only.
  • Parameters:
    • tabular_column (str)
    • value (str)

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

property value : str

Property value is of type str.
  • Return type: str

ExactlySearchValue

class ExactlySearchValue(tabular_column=None, value=None, _is_owner=True)

Bases: object Search criterion to search for integer values that exactly match the specified search value. Applies to integer attributes only.
  • Parameters:
    • tabular_column (str)
    • value (int)

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

property value : int

Property value is of type int.
  • Return type: int

ExistsSearchValue

class ExistsSearchValue(tabular_column=None, _is_owner=True)

Bases: object Search criterion to search for attributes that contain data. All attribute types supported.
  • Parameters: tabular_column (str)

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

ExportRecordDataRequest

class ExportRecordDataRequest(attribute_references=None, exporter_key=None, filter=None, parameter_values=None, records=None, sig_figs=None, stop_before_id=None, stop_before_index=None, unit_conversion_context=None, _is_owner=True)

Bases: object Input for the ExportRecordData operation. For this request to be valid, you must set the references and the exporter key. The argument stop_before_index is 0-indexed.

add_attribute_reference(_attributeReference)

Appends _attributeReference to attributeReferences property on ExportRecordDataRequest C-object.

add_parameter_values(_unittedParameterValue)

Appends _unittedParameterValue to parameterValues property on ExportRecordDataRequest C-object.

add_record(_recordReference)

Appends _recordReference to records property on ExportRecordDataRequest C-object.

property attribute_references : list[AttributeReference]

Property attribute_references is a list of AttributeReference objects. If this property is not specified, the attributes from the exporter configuration are used. If this element is included and non-empty, the attributes specified are used.

WARNING

Do not attempt to edit or append to the returned value.

property exporter_key : str

Property exporter_key is of type str.
  • Return type: str

property filter : RecordFilter

Property filter is of type RecordFilter. If specified, this filters the records that can be included when traversing record links within Tabular Data. This filter is NOT applied to the explicit list of records passed to this operation.

property parameter_values : list[UnittedParameterValue]

Property parameter_values is a list of UnittedParameterValue objects. Parameter values to use for any parameterised Data in the export. Each Parameter can only have one value for all parameterised Attributes in an export. Note that the true Parameter names (or Standard Names) in the MI Database must be used; aliases defined in the exporter configuration will not be understood.

WARNING

Do not attempt to edit or append to the returned value.

property records : list[RecordReference]

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property sig_figs : int

Property sig_figs is of type int.
  • Return type: int

property stop_before_id : str

Property stop_before_id is of type str. Stops the export process before the step specified by the identifier (for example, after the initial XML is generated but before conversion into the specified CAE format). Contact your MI Administrator if you require this feature.
  • Return type: str

property stop_before_index : int

Property stop_before_index is of type int. Stops the export process before the step specified by the index (for example, after the initial XML is generated but before conversion into the specified CAE format). Contact your MI Administrator if you require this feature.
  • Return type: int

property unit_conversion_context : UnitConversionContext

Property unit_conversion_context is of type UnitConversionContext.

ExportRecordDataResponse

class ExportRecordDataResponse(c_obj)

Bases: Response Output for the ExportRecordData operation.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a ExportRecordDataResponse object.

property text : str

Property text is of type str.
  • Return type: str

ExportedAttribute

class ExportedAttribute(db_key=None, attribute_id=None, is_standard_name=None, name=None, partial_table_reference=None, preferred_x_axis_parameter=None, pseudo_attribute=None, specific_unit_conversion_context=None, _is_owner=True)

Bases: object A type that allows identification of a particular attribute in a Granta MI, and also specifies how that Attribute should be exported.

property attribute_id : int

Property attribute_id is of type int.
  • Return type: int

property db_key : str

Property db_key is of type str.
  • Return type: str

property is_standard_name : bool

Property is_standard_name is of type bool.

property name : str

Property name is of type str.
  • Return type: str

property partial_table_reference : PartialTableReference

Property partial_table_reference is of type PartialTableReference.

property preferred_x_axis_parameter : ParameterReference

Property preferred_x_axis_parameter is of type ParameterReference.

property pseudo_attribute : int

Property pseudo_attribute is of type int.
  • Return type: int

property specific_unit_conversion_context : SpecificUnitConversionContext

Property specific_unit_conversion_context is of type SpecificUnitConversionContext.

Exporter

class Exporter(absolute_units_optional=None, description=None, key=None, model=None, name=None, output_file=None, package=None, transforms=None, unit_systems=None, use_absolute_units=None, validated_ok=None, version=None, _is_owner=True)

Bases: object Details of a particular FEA Exporter configuration, typically obtained from an Exporter Configuration File (EXP file) on the MI Server.

property absolute_units_optional : bool

Property absolute_units_optional is of type bool.

property description : str

Property description is of type str.
  • Return type: str

property key : str

Property key is of type str. The key that uniquely identifies this Exporter. This value is generated by the MI Server at runtime and may change between runs.
  • Return type: str

property model : str

Property model is of type str.
  • Return type: str

property name : str

Property name is of type str.
  • Return type: str

property output_file : ExporterOutputFile

Property output_file is of type ExporterOutputFile.

property package : str

Property package is of type str.
  • Return type: str

property transforms : list[ExporterTransform]

Property transforms is a list of ExporterTransform objects.

WARNING

Do not attempt to edit or append to the returned value.

property unit_systems : list[str]

Property unit_systems is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property use_absolute_units : bool

Property use_absolute_units is of type bool.

property validated_ok : bool

Property validated_ok is of type bool.

property version : int

Property version is of type int.
  • Return type: int

ExporterOutputFile

class ExporterOutputFile(convention=None, custom_file_name=None, encoding=None, extension=None, folder=None, include_bom=None, _is_owner=True)

Bases: object Specifies how an output file should be named. All values have the same meaning as in the Exporter configuration schema. It is up to the client to adhere (or not) to this.
  • Parameters:
    • convention (int)
    • custom_file_name (str)
    • encoding (str)
    • extension (str)
    • folder (str)
    • include_bom (bool)

class ExporterFileNameConvention

Bases: object

Custom = 4

Default = 0

RecordName = 3

TableName = 2

TreeName = 1

property convention : int

Property convention is of type int. See ExporterOutputFile.ExporterFileNameConvention for supported values.
  • Return type: int

property custom_file_name : str

Property custom_file_name is of type str.
  • Return type: str

property encoding : str

Property encoding is of type str.
  • Return type: str

property extension : str

Property extension is of type str.
  • Return type: str

property folder : str

Property folder is of type str.
  • Return type: str

property include_bom : bool

Property include_bom is of type bool.

ExporterParameter

class ExporterParameter(id_=None, name=None, parameter_reference=None, unit=None, usage=None, _is_owner=True)

Bases: object Information about a Parameter of Functional Data.

class Usage

Bases: object

Unknown = 0

fixed = 2

free = 1

unused = 3

property id_ : str

Property id_ is of type str.
  • Return type: str

property name : str

Property name is of type str.
  • Return type: str

property parameter_reference : ParameterReference

Property parameter_reference is of type ParameterReference.

property unit : UnitInformation

Property unit is of type UnitInformation.

property usage : int

Property usage is of type int. See ExporterParameter.Usage for supported values.
  • Return type: int

ExporterPopulation

class ExporterPopulation(description=None, key=None, model=None, name=None, package=None, population_state=None, transforms=None, validated_ok=None, version=None, _is_owner=True)

Bases: object Details of a particular FEA Exporter configuration, typically obtained from an Exporter Configuration File (EXP file) on the MI Server.

class PopulationState

Bases: object

FullyPopulated = 1

PartiallyPopulated = 2

Unknown = 0

property description : str

Property description is of type str.
  • Return type: str

property key : str

Property key is of type str.
  • Return type: str

property model : str

Property model is of type str.
  • Return type: str

property name : str

Property name is of type str.
  • Return type: str

property package : str

Property package is of type str.
  • Return type: str

property population_state : int

Property population_state is of type int. See ExporterPopulation.PopulationState for supported values.
  • Return type: int

property transforms : list[ExporterTransform]

Property transforms is a list of ExporterTransform objects.

WARNING

Do not attempt to edit or append to the returned value.

property validated_ok : bool

Property validated_ok is of type bool.

property version : int

Property version is of type int.
  • Return type: int

ExporterTransform

class ExporterTransform(id_=None, type_=None, _is_owner=True)

Bases: object Contains a type and an ID for an Exporter Transform.
  • Parameters:

class Type

Bases: object

Unknown = 0

XSLT = 1

property id_ : str

Property id_ is of type str.
  • Return type: str

property type_ : int

Property type_ is of type int. See ExporterTransform.Type for supported values.
  • Return type: int

ExportersForRecord

class ExportersForRecord(exporters=None, record=None, _is_owner=True)

Bases: object A type to contain a record and its associated exporters.

property exporters : list[ExporterPopulation]

Property exporters is a list of ExporterPopulation objects.

WARNING

Do not attempt to edit or append to the returned value.

property record : RecordReference

Property record is of type RecordReference.

ExportersForRecordsRequest

class ExportersForRecordsRequest(applicability_tag=None, model=None, package=None, package_and_model_required=None, records=None, specific_attribute_exporters_only=None, version_policy=None, _is_owner=True)

Bases: object Input for the ExportersForRecords operation.
  • Parameters:
    • applicability_tag (str)
    • model (str)
    • package (str)
    • package_and_model_required (bool)
    • records (list of RecordReference)
    • specific_attribute_exporters_only (bool)
    • version_policy (int)

add_record(_recordReference)

Appends _recordReference to records property on ExportersForRecordsRequest C-object.

property applicability_tag : str

Property applicability_tag is of type str.
  • Return type: str

property model : str

Property model is of type str.
  • Return type: str

property package : str

Property package is of type str.
  • Return type: str

property package_and_model_required : bool

Property package_and_model_required is of type bool.

property records : list[RecordReference]

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property specific_attribute_exporters_only : bool

Property specific_attribute_exporters_only is of type bool.

property version_policy : int

Property version_policy is of type int. See GRANTA_Constants for supported values.
  • Return type: int

ExportersForRecordsResponse

class ExportersForRecordsResponse(c_obj)

Bases: Response Output from the ExportersForRecords operation. Contains a list of records and supported exporters.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a ExportersForRecordsResponse object.

property records : list[ExportersForRecord]

Property records is a list of ExportersForRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

FileDataType

class FileDataType(url=None, content_type=None, data=None, description=None, file_name=None, is_applicable=None, _is_owner=True)

Bases: IDataValue A type representing a piece of File data in a Granta MI database. The URL can be used to data export a file from a Granta MI database. For importing a file into a Granta MI database, the values of ‘file_name’, file ‘content_type’ and file ‘data’ must be specified, where ‘file_name’ is the name you want the file to appear as in Granta MI, the ‘content_type’ data is the MIME content type of the binary data, and ‘data’ is the contents of the file you wish to import to Granta MI.
  • Parameters:
    • url (str)
    • content_type (str)
    • data (str)
    • description (str)
    • file_name (str)
    • is_applicable (bool)

modify_binary_data(binary_data)

Modify the byte string data of the file.
  • Parameters: binary_data (bytes)

read_binary_data()

Return a byte string representation of this file.

property content_type : str

Property content_type is of type str.
  • Return type: str

property data : str

Property data is of type str.
  • Return type: str

property description : str

Property description is of type str.
  • Return type: str

property file_name : str

Property file_name is of type str.
  • Return type: str

property is_applicable : bool

Property is_applicable is of type bool.

property url : str

Property url is of type str.
  • Return type: str

FloatFunctionalGraph

class FloatFunctionalGraph(hide_graph=None, logarithmic_y_axis=None, series=None, _is_owner=True)

Bases: object A type to contain a collection of Series objects that contain the functional data.
  • Parameters:

add_series(_series)

Appends _series to series property on FloatFunctionalGraph C-object.
  • Parameters: _series (Series)

property hide_graph : bool

Property hide_graph is of type bool.

property logarithmic_y_axis : bool

Property logarithmic_y_axis is of type bool.

property series : list[Series]

Property series is a list of Series objects.

WARNING

Do not attempt to edit or append to the returned value.

FloatFunctionalGriddedDataType

class FloatFunctionalGriddedDataType(decoration=None, default_x_axis_parameter=None, is_applicable=None, unit_information=None, values=None, functional_data_parameter_settings=None, _is_owner=True)

Bases: IDataValue A type to contain the values of float-valued functional gridded data. For requests, Values and Parameters are required.

add_functional_data_parameter_settings(_functionalDataParameterSettings)

Appends _functionalDataParameterSettings to functionalDataParameterSettings property on FloatFunctionalGriddedDataType C-object.

property decoration : int

Property decoration is of type int. See GRANTA_Constants for supported values.
  • Return type: int

property default_x_axis_parameter : ParameterInformation

Property default_x_axis_parameter is of type ParameterInformation.

property functional_data_parameter_settings : list[FunctionalDataParameterSettings]

Property functional_data_parameter_settings is a list of FunctionalDataParameterSettings objects.

WARNING

Do not attempt to edit or append to the returned value.

property is_applicable : bool

Property is_applicable is of type bool.

property unit_information : UnitInformation

Property unit_information is of type UnitInformation.

property values : FloatFunctionalValues

Property values is of type FloatFunctionalValues.

FloatFunctionalPointValue

class FloatFunctionalPointValue(constraints=None, value=None, is_estimated=None, _is_owner=True)

Bases: object A single grid point in Gridded Float-Valued Functional Data, where the Y-axis value is a point.

property constraints : Constraints

Property constraints is of type Constraints.

property is_estimated : bool

Property is_estimated is of type bool.

property value : float

Property value is of type float.

FloatFunctionalRangeValue

class FloatFunctionalRangeValue(constraints=None, high_value=None, low_value=None, is_estimated=None, _is_owner=True)

Bases: object A single grid point in Gridded Float-Valued Functional Data, where the Y-axis value is a range.

property constraints : Constraints

Property constraints is of type Constraints.

property high_value : float

Property high_value is of type float.

property is_estimated : bool

Property is_estimated is of type bool.

property low_value : float

Property low_value is of type float.

FloatFunctionalSeriesDataType

class FloatFunctionalSeriesDataType(graph=None, is_applicable=None, unit_information=None, functional_data_parameter_settings=None, _is_owner=True)

Bases: IDataValue A type to contain the values of float-valued functional series data. For requests Graph, and Parameters are required.

add_functional_data_parameter_settings(_functionalDataParameterSettings)

Appends _functionalDataParameterSettings to functionalDataParameterSettings property on FloatFunctionalSeriesDataType C-object.

property functional_data_parameter_settings : list[FunctionalDataParameterSettings]

Property functional_data_parameter_settings is a list of FunctionalDataParameterSettings objects.

WARNING

Do not attempt to edit or append to the returned value.

property graph : FloatFunctionalSeriesGraph

Property graph is of type FloatFunctionalSeriesGraph.

property is_applicable : bool

Property is_applicable is of type bool.

property unit_information : UnitInformation

Property unit_information is of type UnitInformation.

FloatFunctionalSeriesGraph

class FloatFunctionalSeriesGraph(x_axis_parameter=None, hide_graph=None, logarithmic_y_axis=None, series=None, _is_owner=True)

Bases: object A type a collection of Series objects that contain the data functional data and parameter information for the graph x-axis. For requests an x_axis_parameter is required.

add_series(_series)

Appends _series to series property on FloatFunctionalSeriesGraph C-object.
  • Parameters: _series (Series)

property hide_graph : bool

Property hide_graph is of type bool.

property logarithmic_y_axis : bool

Property logarithmic_y_axis is of type bool.

property series : list[Series]

Property series is a list of Series objects.

WARNING

Do not attempt to edit or append to the returned value.

property x_axis_parameter : ParameterInformation

Property x_axis_parameter is of type ParameterInformation.

FloatFunctionalValues

class FloatFunctionalValues(point_values=None, range_values=None, value_type=None, _is_owner=True)

Bases: object A collection of FloatFunctionalPointValue and FloatFunctionalRangeValue objects.

add_point_value(_floatFunctionalPointValue)

Appends _floatFunctionalPointValue to pointValues property on FloatFunctionalValues C-object.

add_range_value(_floatFunctionalRangeValue)

Appends _floatFunctionalRangeValue to rangeValues property on FloatFunctionalValues C-object.

property point_values : list[FloatFunctionalPointValue]

Property point_values is a list of FloatFunctionalPointValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property range_values : list[FloatFunctionalRangeValue]

Property range_values is a list of FloatFunctionalRangeValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property value_type : str

Property value_type is of type str.
  • Return type: str

FunctionalDataParameterSettings

class FunctionalDataParameterSettings(datum_default_value=None, datum_interpolation_method=None, datum_scale_type=None, effective_default_value=None, effective_default_value_defined_at=None, effective_interpolation_method=None, effective_interpolation_method_defined_at=None, effective_scale_type=None, effective_scale_type_defined_at=None, has_datum_default_value=None, has_datum_interpolation_method=None, has_datum_scale_type=None, has_effective_default_value=None, parameter=None, _is_owner=True)

Bases: object Information about the use of a parameter for a given Functional Data Attribute.
  • Parameters:
    • datum_default_value (DefaultParameterValue)
    • datum_interpolation_method (int)
    • datum_scale_type (int)
    • effective_default_value (DefaultParameterValue)
    • effective_default_value_defined_at (int)
    • effective_interpolation_method (int)
    • effective_interpolation_method_defined_at (int)
    • effective_scale_type (int)
    • effective_scale_type_defined_at (int)
    • has_datum_default_value (bool)
    • has_datum_interpolation_method (bool)
    • has_datum_scale_type (bool)
    • has_effective_default_value (bool)
    • parameter (ParameterInformation)

class DefinedAt

Bases: object

Attribute = 1

Datum = 2

Parameter = 0

property datum_default_value : DefaultParameterValue

Property datum_default_value is of type DefaultParameterValue.

property datum_interpolation_method : int

Property datum_interpolation_method is of type int.
  • Return type: int

property datum_scale_type : int

Property datum_scale_type is of type int.
  • Return type: int

property effective_default_value : DefaultParameterValue

Property effective_default_value is of type DefaultParameterValue.

property effective_default_value_defined_at : int

Property effective_default_value_defined_at is of type int.
  • Return type: int

property effective_interpolation_method : int

Property effective_interpolation_method is of type int.
  • Return type: int

property effective_interpolation_method_defined_at : int

Property effective_interpolation_method_defined_at is of type int.
  • Return type: int

property effective_scale_type : int

Property effective_scale_type is of type int.
  • Return type: int

property effective_scale_type_defined_at : int

Property effective_scale_type_defined_at is of type int.
  • Return type: int

property has_datum_default_value : bool

Property has_datum_default_value is of type bool.

property has_datum_interpolation_method : bool

Property has_datum_interpolation_method is of type bool.

property has_datum_scale_type : bool

Property has_datum_scale_type is of type bool.

property has_effective_default_value : bool

Property has_effective_default_value is of type bool.

property parameter : ParameterInformation

Property parameter is of type ParameterInformation.

FunctionalDataSettings

class FunctionalDataSettings(convert_grid_to_series=None, max_series=None, _is_owner=True)

Bases: object Settings affecting the export of Functional Data. If convert_grid_to_series is true, gridded Functional Data will be converted to series data, allowing you to avoid the need to deal with the gridded data format.
  • Parameters:
    • convert_grid_to_series (bool)
    • max_series (int)

property convert_grid_to_series : bool

Property convert_grid_to_series is of type bool.

property max_series : int

Property max_series is of type int.
  • Return type: int

GRANTA_Constants

class BinaryDataRepresentation

Bases: object

Inline = 0

URL = 1

class GraphDecoration

Bases: object

Lines = 0

LinesAndMarkers = 2

Markers = 1

class ImportErrorMode

Bases: object

Continue = ‘LogAndContinueWherePossible’

Fault = ‘FaultAndRollbackOnAnyError’

class ImportTypes

Bases: object

Copy = ‘Copy’

Create = ‘Create’

Update = ‘Update’

class MinMaxType

Bases: object

MMApproximate = 1

MMNone = 0

MMTrue = 2

class ParameterTypes

Bases: object

Discrete = ‘Discrete’

Numeric = ‘Numeric’

class RecordLinkCheckMode

Bases: object

Forward = ‘CheckOnlyForwardLinks’

ForwardAndReverse = ‘CheckForwardAndReverseLinks’

class RecordLinkGroupTypes

Bases: object

CrossDatabase = ‘crossDatabase’

Dynamic = ‘dynamic’

Static = ‘static’

class SearchMode

Bases: object

Normal = 0

ReadOnly = 1

Unspecified = 2

class TablesFilter

Bases: object

CoatingsTablesOnly = 9

ElementsTablesOnly = 13

EndOfLifeOptionsTablesOnly = 7

EnergyConversionOptionsTablesOnly = 8

InHouseTablesOnly = 11

LegislationsTablesOnly = 4

MaterialsTablesOnly = 1

MobileUseTypesTablesOnly = 18

NoFilter = 0

PartsTablesOnly = 10

ProcessesTablesOnly = 2

ProducersTablesOnly = 15

ReferenceTablesOnly = 17

RegionsTablesOnly = 6

SequenceSpecificationsTablesOnly = 12

ShapeTablesOnly = 16

SubstancesTablesOnly = 3

TransportTypesTablesOnly = 5

UniverseTablesOnly = 14

class TabularSummaryColumnRollupType

Bases: object

Chart = 10

CoefficientOfVariation = 9

Count = 6

CountDistinct = 7

List = 0

ListDistinct = 8

Max = 1

Mean = 3

Min = 2

StandardDeviation = 4

Sum = 5

class UpdateSubsetsMode

Bases: object

Append = 1

Replace = 2

class VersionPolicy

Bases: object

IncludeAll = 1

LatestVersionPerName = 2

NoPolicy = 0

GRANTA_Exceptions

exception GRANTA_Exception(expr, msg)

Bases: Exception Exception raised when there are errors in input.
  • Parameters:
    • expr (str) – Input expression in which the error occurred
    • msg (str) – Explanation of the error

exception GRANTA_ServiceLayerError(sl_response, operation)

Bases: Exception Exception raised when the Granta MI Service Layer returns an error.
  • Parameters:
    • sl_response (ServiceLayerResponse) – Request data causing this error
    • operation (str) – Name of the operation from which this exception originated

property data : ServiceLayerResponse

The raw ServiceLayerResponse object.

property message : str

Error message received from the Service Layer if an error occurred while processing the request, or the HTTP status message corresponding to the status code received.
  • Return type: str

property operation : str

The Operation invoked by this Service Layer message.
  • Return type: str

property request_xml : str

Content of the XML request for this Service Layer message.
  • Return type: str

property response_code : int

HTTP Status code received from the Service Layer.
  • Return type: int

property response_xml : str

Content of the XML response for this Service Layer message.
  • Return type: str

GRANTA_Logging

class GRANTA_Logging

Bases: object Implements some basic logging functionality. Tracked events are printed to the console. : For comprehensive logging capabilities, use the Python ‘logging’ module.

property core_logger : Logger

property http_logger : Logger

propagate : bool = True

GRANTA_MISession

class GRANTA_MISession(url, username=None, password=None, domain=None, verbosity=‘ERROR’, auto_logon=False, receive_timeout=300000, authorization=None, retries=0)

Bases: object The base object for the GRANTA_MIScripting toolkit. This creates a connection to a Granta MI Server via a Granta MI Service Layer. Parameters username, password, domain, and auto_logon are optional - use either set_credentials or use_auto_logon to specify the desired authentication method if these are omitted.
  • Parameters:
    • url (str) – URL of your Granta MI Service Layer installation
    • username (str, optional) – Your Granta MI username (for Basic authentication)
    • password (str, optional) – Your Granta MI password (for Basic authentication)
    • domain (str, optional) – Your Granta MI user domain (for Basic authentication)
    • verbosity (str, {‘ERROR’, ‘WARNING’, ‘DEBUG’}) – Logging verbosity
    • auto_logon (bool, default: False) – If set to True, this object will authenticate as the current Windows user
    • receive_timeout (int) – Time in milliseconds to wait for a response before timing out
    • authorization (OIDC object) – Authorization plugin (for OpenID Connect authentication)
    • retries (int, default: 0) – The number of times to retry failing requests

NOTE

If MI Scripting Toolkit has been installed on the same server machine as Granta MI, then the Granta MI server name must be specified in full in the url parameter. If you use ‘localhost’ or a loopback address, MI Scripting Toolkit will be unable to use the specified user account to connect to Granta MI.

test_connection()

Raises a GRANTA_Exception if connection cannot be made For example if bad credentials are provided, or Granta MI Service Layer is unreachable

property browse_service : BrowseService

Service providing schema browse operations.

property data_export_service : DataExportService

Service providing data export operations.

property data_import_service : DataImportService

Service providing data import operations.

property engineering_data_service : EngineeringDataService

Service providing export operations for Finite Element Analysis material cards.

property record_manipulator_service : RecordManipulatorService

Service providing additional operations for record manipulation.

property search_service : SearchService

Service providing record search operations.

GetAssociatedRecordsRequest

class GetAssociatedRecordsRequest(attribute_references=None, link_direction=None, populate_guids=None, record_filter=None, record_references=None, table_reference=None, _is_owner=True)

Bases: object Input for the get_associated_records operation.

class AssociationLinkDirection

Bases: object

Both = 0

Forward = 1

NONE = -1

Reverse = 2

add_attribute_reference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetAssociatedRecordsRequest C-object.

add_record_reference(_recordReference)

Appends _recordReference to recordReferences property on GetAssociatedRecordsRequest C-object.

property attribute_references : list[AttributeReference]

Property attribute_references is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value. Property link_direction is of type int.
  • Return type: int

property populate_guids : bool

Property populate_guids is of type bool.

property record_filter : RecordFilter

Property record_filter is of type RecordFilter.

property record_references : list[RecordReference]

Property record_references is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property table_reference : TableReference

Property table_reference is of type TableReference.

GetAssociatedRecordsResponse

class GetAssociatedRecordsResponse(c_obj)

Bases: Response Output from the GetAssociatedRecords operation. An array of AssociatedRecords objects.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAssociatedRecordsResponse object.

add_associated_records(_associatedRecords)

Appends _associatedRecords to associatedRecords property on GetAssociatedRecordsResponse C-object.

property associated_records : list[AssociatedRecords]

Property associated_records is a list of AssociatedRecords objects.

WARNING

Do not attempt to edit or append to the returned value.

GetAttributeDetailsRequest

class GetAttributeDetailsRequest(attribute_references=None, min_max_calculation=None, _is_owner=True)

Bases: object Input for the get_attribute_details operation. For requests at least one AttributeReference is required.

add_attribute_reference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetAttributeDetailsRequest C-object.

property attribute_references : list[AttributeReference]

Property attribute_references is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property min_max_calculation : int

Property min_max_calculation is of type int.
  • Return type: int

GetAttributeDetailsResponse

class GetAttributeDetailsResponse(c_obj)

Bases: Response Output from the get_attribute_details operation. Includes an array of AttributeDetail objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAttributeDetailsResponse object.

add_attribute_details(_attributeDetail)

Appends _attributeDetail to attributeDetails property on GetAttributeDetailsResponse C-object.

property attribute_details : list[AttributeDetail]

Property attribute_details is a list of AttributeDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetAttributeParametersRequest

class GetAttributeParametersRequest(attribute_references=None, _is_owner=True)

Bases: object Input for the get_attribute_parameters operation. For requests, at least one AttributeReference is required.

add_attribute_reference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetAttributeParametersRequest C-object.

property attribute_references : list[AttributeReference]

Property attribute_references is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

GetAttributeParametersResponse

class GetAttributeParametersResponse(c_obj)

Bases: Response Output from the get_attribute_parameters operation. Includes an array of ParameterDetail objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAttributeParametersResponse object.

property attribute_parameters : list[ParameterDetail]

Property attribute_parameters is a list of ParameterDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetAvailableExportersRequest

class GetAvailableExportersRequest(db_key=None, applicability_tag=None, match_db=None, model=None, package=None, partial_table_reference=None, version_policy=None, _is_owner=True)

Bases: object Input for the get_available_exporters operation.

property applicability_tag : str

Property applicability_tag is of type str.
  • Return type: str

property db_key : str

Property db_key is of type str.
  • Return type: str

property match_db : bool

Property match_db is of type bool. If true, we check that the exporter config Table element is in a Database element for the right db_key.

property model : str

Property model is of type str.
  • Return type: str

property package : str

Property package is of type str.
  • Return type: str

property partial_table_reference : PartialTableReference

Property partial_table_reference is of type PartialTableReference.

property version_policy : int

Property version_policy is of type int. See GRANTA_Constants for supported values.
  • Return type: int

GetAvailableExportersResponse

class GetAvailableExportersResponse(c_obj)

Bases: Response Output from the get_available_exporters operation. Contains a list of exporters.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAvailableExportersResponse object.

property exporters : list[Exporter]

Property exporters is a list of Exporter objects.

WARNING

Do not attempt to edit or append to the returned value.

GetChildNodes

class GetChildNodes(exclude_withdrawn=None, parent=None, populate_guids=None, record_filter=None, recurse=None, recurse_max_depth=None, _is_owner=True)

Bases: object Input for the get_child_nodes operation. A RecordReference for the record you wish to find the children of is required.

property exclude_withdrawn : bool

Property exclude_withdrawn is of type bool.

property parent : RecordReference

Property parent is of type RecordReference.

property populate_guids : bool

Property populate_guids is of type bool.

property record_filter : RecordFilter

Property record_filter is of type RecordFilter.

property recurse : bool

Property recurse is of type bool.

property recurse_max_depth : int

Property recurse_max_depth is of type int.
  • Return type: int

GetChildNodesResponse

class GetChildNodesResponse(c_obj)

Bases: Response Response for the get_child_nodes operation. Includes an array of TreeRecord objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetChildNodesResponse object.

add_tree_record(_treeRecord)

Appends _treeRecord to treeRecords property on GetChildNodesResponse C-object.

property tree_records : list[TreeRecord]

Property tree_records is a list of TreeRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

GetCurrenciesResponse

class GetCurrenciesResponse(c_obj)

Bases: Response Response for the get_currencies operation. Includes an array of CurrencyDetail objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetCurrenciesResponse object.

property currencies : list[CurrencyDetail]

Property currencies is a list of CurrencyDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetDatabaseParameters

class GetDatabaseParameters(db_key=None, require_standard_names=None, use_standard_names_where_possible=None, _is_owner=True)

Bases: object Input for the get_database_parameters operation. Requires a db_key to be set. The parameters require_standard_names and use_standard_names_where_possible both default to false.
  • Parameters:
    • db_key (str)
    • require_standard_names (bool)
    • use_standard_names_where_possible (bool)

property db_key : str

Property db_key is of type str.
  • Return type: str

property require_standard_names : bool

Property require_standard_names is of type bool.

property use_standard_names_where_possible : bool

Property use_standard_names_where_possible is of type bool.

GetDatabaseParametersResponse

class GetDatabaseParametersResponse(c_obj)

Bases: Response Output from the get_database_parameters operation. Includes an array of ParameterDetail objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatabaseParametersResponse object.

add_parameter_detail(_parameterDetail)

Appends _parameterDetail to parameterDetails property on GetDatabaseParametersResponse C-object.

property parameter_details : list[ParameterDetail]

Property parameter_details is a list of ParameterDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetDatabasesResponse

class GetDatabasesResponse(c_obj)

Bases: Response Output from the get_databases operation. Includes an array of DatabaseDetail objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatabasesResponse object.

add_database(_databaseDetail)

Appends _databaseDetail to databases property on GetDatabasesResponse C-object.

property databases : list[DatabaseDetail]

Property databases is a list of DatabaseDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetDatasheetPath

class GetDatasheetPath(datasheet_type=None, record_references=None, unit_conversion_context=None, _is_owner=True)

Bases: object Input for the get_datasheet_path operation. Requires at least one RecordReference to be provided. The parameters unit_conversion_context and datasheet_type are optional. datasheet_type defaults to ‘Datasheet’.

add_record_reference(_recordReference)

Appends _recordReference to recordReferences property on GetDatasheetPath C-object.

property datasheet_type : int

Property datasheet_type is of type int.
  • Return type: int

property record_references : list[RecordReference]

Property record_references is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property unit_conversion_context : UnitConversionContext

Property unit_conversion_context is of type UnitConversionContext.

GetDatasheetPathParameterized

class GetDatasheetPathParameterized(db_key=None, datasheet_type=None, unit_conversion_context=None, _is_owner=True)

Bases: object Input for the get_datasheet_path_parameterized operation. Requires a db_key to be set. The parameters unit_conversion_context and datasheet_type are optional. datasheet_type defaults to ‘Datasheet’.

property datasheet_type : int

Property datasheet_type is of type int.
  • Return type: int

property db_key : str

Property db_key is of type str.
  • Return type: str

property unit_conversion_context : UnitConversionContext

Property unit_conversion_context is of type UnitConversionContext.

GetDatasheetPathParameterizedResponse

class GetDatasheetPathParameterizedResponse(c_obj)

Bases: Response Output from the get_datasheet_path_parametrized operation. Includes an array of DatasheetPathParameterized objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatasheetPathParameterizedResponse object.

property currency_query : str

Property currency_query is of type str.
  • Return type: str

property db_key_query : str

Property db_key_query is of type str.
  • Return type: str

property record_history_identity_query_name : str

Property record_history_identity_query_name is of type str.
  • Return type: str

property unit_system_query : str

Property unit_system_query is of type str.
  • Return type: str

property url : str

Property url is of type str.
  • Return type: str

GetDatasheetPathResponse

class GetDatasheetPathResponse(c_obj)

Bases: Response Output from the get_datasheet_path operation. Includes an array of DatasheetPath objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatasheetPathResponse object.

property datasheet_paths : list[DatasheetPath]

Property datasheet_paths is a list of DatasheetPath objects.

WARNING

Do not attempt to edit or append to the returned value.

GetExporterParametersRequest

class GetExporterParametersRequest(exporter_key=None, populate_guids=None, records=None, unit_conversion_context=None, _is_owner=True)

Bases: object Input for the get_exporter_parameters operation.

add_record(_recordReference)

Appends _recordReference to records property on GetExporterParametersRequest C-object.

property exporter_key : str

Property exporter_key is of type str.
  • Return type: str

property populate_guids : bool

Property populate_guids is of type bool.

property records : list[RecordReference]

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property unit_conversion_context : UnitConversionContext

Property unit_conversion_context is of type UnitConversionContext.

GetExporterParametersResponse

class GetExporterParametersResponse(c_obj)

Bases: Response Output from the get_exporter_parameters operation. Contains a list of records and details for exporting their attributes.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetExporterParametersResponse object.

property records : list[RecordExporterParameters]

Property records is a list of RecordExporterParameters objects.

WARNING

Do not attempt to edit or append to the returned value.

GetIntegrationProfiles

class GetIntegrationProfiles(databases=None, depth=None, _is_owner=True)

Bases: object Input for the get_integration_profiles operation.

class Depth

Bases: object

Databases = 1

Profiles = 0

Tables = 2

add_database(value)

Appends value to databases property on GetIntegrationProfiles C-object.
  • Parameters: value (str)

property databases : list[str]

Property databases is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property depth : int

Property depth is of type int.
  • Return type: int

GetIntegrationProfilesResponse

class GetIntegrationProfilesResponse(c_obj)

Bases: Response Output from get_integration_profiles operation. Includes an array of IntegrationProfileDetail objects and a ServiceLayerResponse.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetIntegrationProfilesResponse object.

property profile_details : list[IntegrationProfileDetail]

Property profile_details is a list of IntegrationProfileDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetLayouts

class GetLayouts(applicability_tag=None, layouts=None, min_max_calculation=None, table=None, _is_owner=True)

Bases: object Input for the get_layouts operation. Includes a table reference or list of layouts to retrieve.

add_layout(_layoutReference)

Appends _layoutReference to layouts property on GetLayouts C-object.

property applicability_tag : str

Property applicability_tag is of type str.
  • Return type: str

property layouts : list[LayoutReference]

Property layouts is a list of LayoutReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property min_max_calculation : int

Property min_max_calculation is of type int.
  • Return type: int

property table : TableReference

Property table is of type TableReference.

GetLayoutsResponse

class GetLayoutsResponse(c_obj)

Bases: Response Output from the get_layouts operation. Includes a list of layouts retrieved.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetLayoutsResponse object.

add_layout_detail(_layoutDetail)

Appends _layoutDetail to layoutDetails property on GetLayoutsResponse C-object.

property layout_details : list[LayoutDetail]

Property layout_details is a list of LayoutDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetLinkedRecordsRequest

class GetLinkedRecordsRequest(direct_links_only=None, populate_guids=None, record_filter=None, record_link_groups=None, record_references=None, _is_owner=True)

Bases: object Input for the get_linked_records operation. Appends _recordLinkGroupReference to recordLinkGroups property on GetLinkedRecordsRequest C-object.

add_record_reference(_recordReference)

Appends _recordReference to recordReferences property on GetLinkedRecordsRequest C-object. Property direct_links_only is of type bool.

property populate_guids : bool

Property populate_guids is of type bool.

property record_filter : RecordFilter

Property record_filter is of type RecordFilter. Property record_link_groups is a list of RecordLinkGroupReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property record_references : list[RecordReference]

Property record_references is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

GetLinkedRecordsResponse

class GetLinkedRecordsResponse(c_obj)

Bases: Response Output from the get_linked_records operation. Includes an array of SourceRecord objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetLinkedRecordsResponse object.

property source_records : list[SourceRecord]

Property source_records is a list of SourceRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

GetMetaAttributesRequest

class GetMetaAttributesRequest(attribute_references=None, _is_owner=True)

Bases: object Input for the get_meta_attributes operation.

add_attribute_reference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetMetaAttributesRequest C-object.

property attribute_references : list[AttributeReference]

Property attribute_references is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

GetMetaAttributesResponse

class GetMetaAttributesResponse(c_obj)

Bases: Response Output from the get_meta_attributes operation. Includes an array of AttributeMetaAttributes objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetMetaAttributesResponse object.

property attributes : list[AttributeMetaAttributes]

Property attributes is a list of AttributeMetaAttributes objects.

WARNING

Do not attempt to edit or append to the returned value.

GetParameterDetailsRequest

class GetParameterDetailsRequest(attribute=None, parameter_references=None, record_reference=None, _is_owner=True)

Bases: object Input for the get_parameter_details operation.

add_parameter_reference(_parameterReference)

Appends _parameterReference to parameterReferences property on GetParameterDetailsRequest C-object.

property attribute : AttributeReference

Property attribute is of type AttributeReference.

property parameter_references : list[ParameterReference]

Property parameter_references is a list of ParameterReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property record_reference : RecordReference

Property record_reference is of type RecordReference.

GetParameterDetailsResponse

class GetParameterDetailsResponse(c_obj)

Bases: Response Output from the get_parameter_details operation. Includes an array of ParameterDetail objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetParameterDetailsResponse object.

property attribute_parameters : list[ParameterDetail]

Property attribute_parameters is a list of ParameterDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRecordAttributesByRefRequest

class GetRecordAttributesByRefRequest(attribute_references=None, binary_data=None, direct_links_only=None, exported_attributes=None, functional_data_settings=None, populate_guids=None, record_filter=None, record_references=None, unit_conversion_context=None, use_fallback=None, _is_owner=True)

Bases: object Input for the get_record_attributes_by_ref operation. For requests, at least one RecordReference and at least one AttributeReference is required.

add_attribute_reference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetRecordAttributesByRefRequest C-object.

add_exported_attribute(_exportedAttribute)

Appends _exportedAttribute to exportedAttributes property on GetRecordAttributesByRefRequest C-object.

add_record_reference(_recordReference)

Appends _recordReference to recordReferences property on GetRecordAttributesByRefRequest C-object.

property attribute_references : list[AttributeReference]

Property attribute_references is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property binary_data : BinaryDataSettings

Property binary_data is of type BinaryDataSettings. Property direct_links_only is of type bool.

property exported_attributes : list[ExportedAttribute]

Property exported_attributes is a list of ExportedAttribute objects.

WARNING

Do not attempt to edit or append to the returned value.

property functional_data_settings : FunctionalDataSettings

Property functional_data_settings is of type FunctionalDataSettings.

property populate_guids : bool

Property populate_guids is of type bool.

property record_filter : RecordFilter

Property record_filter is of type RecordFilter.

property record_references : list[RecordReference]

Property record_references is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property unit_conversion_context : UnitConversionContext

Property unit_conversion_context is of type UnitConversionContext.

property use_fallback : bool

Property use_fallback is of type bool.

GetRecordAttributesByRefResponse

class GetRecordAttributesByRefResponse(c_obj)

Bases: Response Output from the get_record_attributes_by_ref operation. Includes an array of RecordData objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordAttributesByRefResponse object.

add_record_data(_recordData)

Appends _recordData to recordData property on GetRecordAttributesByRefResponse C-object.

property record_data : list[RecordData]

Property record_data is a list of RecordData objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRecordAttributesRequest

class GetRecordAttributesRequest(include_empty=None, include_meta=None, include_param_details=None, min_max_calculation=None, record_references=None, _is_owner=True)

Bases: object Input for the get_record_attributes operation.
  • Parameters:

add_record_reference(_recordReference)

Appends _recordReference to recordReferences property on GetRecordAttributesRequest C-object.

property include_empty : bool

Property include_empty is of type bool.

property include_meta : bool

Property include_meta is of type bool.

property include_param_details : bool

Property include_param_details is of type bool.

property min_max_calculation : int

Property min_max_calculation is of type int.
  • Return type: int

property record_references : list[RecordReference]

Property record_references is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRecordAttributesResponse

class GetRecordAttributesResponse(c_obj)

Bases: Response Output from the get_record_attributes operation. Includes an array of RecordAttribute objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordAttributesResponse object.

add_record_attribute(_recordAttribute)

Appends _recordAttribute to recordAttributes property on GetRecordAttributesResponse C-object.

property record_attributes : list[RecordAttribute]

Property record_attributes is a list of RecordAttribute objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRecordLinkGroups

class GetRecordLinkGroups(db_key=None, record_link_groups=None, standard_names_only=None, _is_owner=True)

Bases: object Returns details of Record Link Groups in a Granta MI Database. Appends _recordLinkGroupReference to recordLinkGroups property on GetRecordLinkGroups C-object.

property db_key : str

Property db_key is of type str. When this is provided, details of all Record Link Groups in the specified Granta MI Database will be returned.
  • Return type: str
Property record_link_groups is a list of RecordLinkGroupReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property standard_names_only : bool

Property standard_names_only is of type bool.

GetRecordLinkGroupsResponse

class GetRecordLinkGroupsResponse(c_obj)

Bases: Response Output from the get_record_link_groups operation.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordLinkGroupsResponse object.
Property record_link_groups is a list of RecordLinkGroupDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRecordVersionsRequest

class GetRecordVersionsRequest(records=None, versions=None, _is_owner=True)

Bases: object Input for the get_record_versions operation.

class VersionSelector

Bases: object

All = 3

AllReleased = 2

Latest = 1

LatestRead = 0

add_record(_recordReference)

Appends _recordReference to records property on GetRecordVersionsRequest C-object.

property records : list[RecordReference]

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property versions : int

Property versions is of type int. See GetRecordVersionsRequest.VersionSelector for supported values.
  • Return type: int

GetRecordVersionsResponse

class GetRecordVersionsResponse(c_obj)

Bases: Response Output from the get_record_versions operation. Contains a list of version states.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordVersionsResponse object.

property record_states : list[RecordVersionState]

Property record_states is a list of RecordVersionState objects.

WARNING

Do not attempt to edit or append to the returned value.

GetRootNode

class GetRootNode(table=None, _is_owner=True)

Bases: object Input to the get_root_node operation. Requires a TableReference .

property table : TableReference

Property table is of type TableReference.

GetRootNodeResponse

class GetRootNodeResponse(c_obj)

Bases: Response Output from the get_root_node operation. Includes a TreeRecord object and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRootNodeResponse object.

property root_node : TreeRecord

Property root_node is of type TreeRecord.

GetSubsetsRequest

class GetSubsetsRequest(subset_references=None, table=None, _is_owner=True)

Bases: object Input to the get_subsets operation. Requires a TableReference .

add_subset_reference(_subsetReference)

Appends _subsetReference to subsetReferences property on GetSubsetsRequest C-object.

property subset_references : list[SubsetReference]

Property subset_references is a list of SubsetReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property table : TableReference

Property table is of type TableReference.

GetSubsetsResponse

class GetSubsetsResponse(c_obj)

Bases: Response Output from the get_subsets operation. Includes an array of SubsetDetails objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetSubsetsResponse object.

property subset_details : list[SubsetDetail]

Property subset_details is a list of SubsetDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetTables

class GetTables(db_key=None, attribute_selectors=None, table_filter=None, _is_owner=True)

Bases: object Input to the get_tables operation. Requires a db_key to be set.
  • Parameters:
    • db_key (str)
    • attribute_selectors (list of int)
    • table_filter (int)

class AttributeSelector

Bases: object

MetaAttributes = 2

NONE = 0

NonMetaAttributes = 1

StandardAttributes = 3

add_attribute_selector(value)

Appends value to attributeSelectors property on GetTables C-object.
  • Parameters: value (int)

property attribute_selectors : list[int]

Property attribute_selectors is a list of int objects. See GetTables.AttributeSelector for supported values.

WARNING

Do not attempt to edit or append to the returned value.

property db_key : str

Property db_key is of type str.
  • Return type: str

property table_filter : int

Property table_filter is of type int. See GRANTA_Constants for supported values.
  • Return type: int

GetTablesResponse

class GetTablesResponse(c_obj)

Bases: Response Output from the get_tables operation. Includes an array of TableDetail objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetTablesResponse object.

add_table_detail(_tableDetail)

Appends _tableDetail to tableDetails property on GetTablesResponse C-object.

property table_details : list[TableDetail]

Property table_details is a list of TableDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetTreeRecordsRequest

class GetTreeRecordsRequest(records=None, _is_owner=True)

Bases: object Input to the get_tree_records operation. Requires at least one RecordReference.

add_record(_recordReference)

Appends _recordReference to records property on GetTreeRecordsRequest C-object.

property records : list[RecordReference]

Property records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

GetTreeRecordsResponse

class GetTreeRecordsResponse(c_obj)

Bases: Response Output to the get_tree_records operation. Includes an array of TreeRecord objects and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetTreeRecordsResponse object.

add_tree_record(_treeRecord)

Appends _treeRecord to treeRecords property on GetTreeRecordsResponse C-object.

property tree_records : list[TreeRecord]

Property tree_records is a list of TreeRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUnitConversionsRequest

class GetUnitConversionsRequest(db_key=None, source_currency=None, target_currency=None, unit_conversion_contexts=None, unit_symbols=None, _is_owner=True)

Bases: object Input for the get_unit_conversions operation.

add_unit_conversion_context(_unitConversionContext)

Appends _unitConversionContext to unitConversionContexts property on GetUnitConversionsRequest C-object.

add_unit_symbol(value)

Appends value to unitSymbols property on GetUnitConversionsRequest C-object.
  • Parameters: value (str)

property db_key : str

Property db_key is of type str.
  • Return type: str

property source_currency : str

Property source_currency is of type str.
  • Return type: str

property target_currency : str

Property target_currency is of type str.
  • Return type: str

property unit_conversion_contexts : list[UnitConversionContext]

Property unit_conversion_contexts is a list of UnitConversionContext objects.

WARNING

Do not attempt to edit or append to the returned value.

property unit_symbols : list[str]

Property unit_symbols is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUnitConversionsResponse

class GetUnitConversionsResponse(c_obj)

Bases: Response Output from the get_unit_conversions operation.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitConversionsResponse object.

property db_key : str

Property db_key is of type str.
  • Return type: str

property source_units : list[SourceUnitConversionSet]

Property source_units is a list of SourceUnitConversionSet objects.

WARNING

Do not attempt to edit or append to the returned value.

property unit_conversion_contexts : list[UnitConversionContextConversionSet]

Property unit_conversion_contexts is a list of UnitConversionContextConversionSet objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUnits

class GetUnits(db_key=None, _is_owner=True)

Bases: object A type for requesting the units known to specific Granta MI databases. A DBKey must be specified.
  • Parameters: db_key (str)

property db_key : str

Property db_key is of type str.
  • Return type: str

GetUnitsResponse

class GetUnitsResponse(c_obj)

Bases: Response The output of a get_units request. Contains an array of DatabaseUnitSets for the specified databases.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitsResponse object.

property database_unit_sets : list[DatabaseUnitSet]

Property database_unit_sets is a list of DatabaseUnitSet objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUnitSystems

class GetUnitSystems(db_key=None, exclude_currencies=None, _is_owner=True)

Bases: object A type for requesting the unit systems on a particular Granta MI database. A db_key must be specified.
  • Parameters:
    • db_key (str)
    • exclude_currencies (bool)

property db_key : str

Property db_key is of type str.
  • Return type: str

property exclude_currencies : bool

Property exclude_currencies is of type bool.

GetUnitSystemsResponse

class GetUnitSystemsResponse(c_obj)

Bases: Response The output of a get_unit_systems requests. Contains an array of unit systems for the specified database.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitSystemsResponse object.

property db_key : str

Property db_key is of type str.
  • Return type: str

property unit_systems : list[UnitSystemDetail]

Property unit_systems is a list of UnitSystemDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUploadAddressesRequest

class GetUploadAddressesRequest(attribute_references=None, record_references=None, _is_owner=True)

Bases: object Input to the get_upload_addresses operation. Contains a list of records and attributes to get the upload URL addresses of.

add_attribute_reference(_attributeReference)

Appends _attributeReference to attributeReferences property on GetUploadAddressesRequest C-object.

add_record_reference(_recordReference)

Appends _recordReference to recordReferences property on GetUploadAddressesRequest C-object.

property attribute_references : list[AttributeReference]

Property attribute_references is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property record_references : list[RecordReference]

Property record_references is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

GetUploadAddressesResponse

class GetUploadAddressesResponse(c_obj)

Bases: Response Output from the get_upload_addresses operation. Contains a list of RecordWithAttributeAddresses objects for each record in the GetUploadAddressesRequest.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUploadAddressesResponse object.

property records_with_attribute_addresses : list[RecordWithAttributeAddresses]

Property records_with_attribute_addresses is a list of RecordWithAttributeAddresses objects.

WARNING

Do not attempt to edit or append to the returned value.

GraphDomain

class GraphDomain(parameter_domains=None, _is_owner=True)

Bases: object A type to contain choices of fixed parameter values. A value must be chosen for each parameter, within the given constraints.

property parameter_domains : list[ParameterDomain]

Property parameter_domains is a list of ParameterDomain objects.

WARNING

Do not attempt to edit or append to the returned value.

GreaterThanSearchValue

class GreaterThanSearchValue(tabular_column=None, unit=None, value=None, _is_owner=True)

Bases: object Search criterion to search for data greater than a specified value. Criterion passes if data value is above a given value. Point, range, and integer attributes are supported.
  • Parameters:

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

property unit : str

Property unit is of type str.
  • Return type: str

property value : float

Property value is of type float.

HelpInfo

class HelpInfo(database_help=None, help_uri=None, _is_owner=True)

Bases: object Type describing how to obtain detailed Help information for an entity in a Granta MI database.
  • Parameters:
    • database_help (bool)
    • help_uri (str)

property database_help : bool

Property database_help is of type bool.

property help_uri : str

Property help_uri is of type str.
  • Return type: str

HighEndSearchValue

class HighEndSearchValue(unit=None, value=None, _is_owner=True)

Bases: object Upper limit for the BetweenSearchValue search criterion. Requires a double value and an optional unit.

property unit : str

Property unit is of type str.
  • Return type: str

property value : float

Property value is of type float.

HyperlinkDataType

class HyperlinkDataType(description=None, hyperlink_display=None, is_applicable=None, value=None, _is_owner=True)

Bases: IDataValue A type to contain a HyperLink string value.
  • Parameters:
    • description (str)
    • hyperlink_display (int)
    • is_applicable (bool)
    • value (str)

class HyperlinkDisplay

Bases: object

Content = 2

New = 0

Top = 1

property description : str

Property description is of type str.
  • Return type: str
Property hyperlink_display is of type int.
  • Return type: int

property is_applicable : bool

Property is_applicable is of type bool.

property value : str

Property value is of type str.
  • Return type: str

IDataValue

class IDataValue

Bases: object Base class for data values in Granta MI. You should not interact directly with this class.

ImportAttributeValue

class ImportAttributeValue(attribute_reference=None, date_data_value=None, discrete_data_value=None, file_data_value=None, hyperlink_data_value=None, integer_data_value=None, logical_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, tabular_data_value=None, float_functional_gridded_data_value=None, float_functional_series_data_value=None, _is_owner=True)

Bases: object An AttributeValue to import to a Granta MI database. Requires a AttributeReference and an attribute value for the data type you wish to upload. Supports: PointDataType, RangeDataType, FloatFunctionalSeriesDataType, FloatFunctionalGriddedDataType, ShortTextDataType, LongTextDataType, DiscreteDataType, IntegerDataType, LogicalDataType, HyperlinkDataType, and FileDataType.

property attribute_reference : AttributeReference

Property attribute_reference is of type AttributeReference.

property date_data_value : DateDataType

Property date_data_value is of type DateDataType.

property discrete_data_value : DiscreteDataType

Property discrete_data_value is of type DiscreteDataType.

property file_data_value : FileDataType

Property file_data_value is of type FileDataType.

property float_functional_gridded_data_value : FloatFunctionalGriddedDataType

Property float_functional_gridded_data_value is of type FloatFunctionalGriddedDataType.

property float_functional_series_data_value : FloatFunctionalSeriesDataType

Property float_functional_series_data_value is of type FloatFunctionalSeriesDataType. Property hyperlink_data_value is of type HyperlinkDataType.

property integer_data_value : IntegerDataType

Property integer_data_value is of type IntegerDataType.

property logical_data_value : LogicalDataType

Property logical_data_value is of type LogicalDataType.

property long_text_data_value : LongTextDataType

Property long_text_data_value is of type LongTextDataType.

property picture_data_value : PictureDataType

Property picture_data_value is of type PictureDataType.

property point_data_value : PointDataType

Property point_data_value is of type PointDataType.

property range_data_value : RangeDataType

Property range_data_value is of type RangeDataType.

property short_text_data_value : ShortTextDataType

Property short_text_data_value is of type ShortTextDataType.

property tabular_data_value : TabularDataImportType

Property tabular_data_value is of type TabularDataImportType.

ImportRecord

class ImportRecord(copy_destination_parent=None, existing_record=None, import_attribute_values=None, import_record_mode=None, is_folder=None, record_name=None, release_record=None, subset_references=None, update_subsets_mode=None, _is_owner=True)

Bases: object A record for importing to the Granta MI database. The ‘import_record_mode’ property specifies whether a record should be created, copied, or updated. The accepted values are ‘Create’, ‘Update’, and ‘Copy’. If import_record_mode is ‘Create’, set ‘existing_record’ to the parent record under which the new record is to be created. If import_record_mode is ‘Update’, set ‘existing_record’, to the target record to be changed. If import_record_mode is ‘Copy’, set ‘existing_record’ to be the source data for the operation, and use ‘copy_destination_parent’ to specify where the record copy should appear. For versioned databases, set release_record to specify whether the new or updated record should be released. Use ‘subset_references’ to define the Subsets the imported record belongs to (subsets will not be inherited from the parent). ‘is_folder’ will have no effect if ‘import_record_mode’ is set to ‘Update’.

add_import_attribute_value(_importAttributeValue)

Appends _importAttributeValue to importAttributeValues property on ImportRecord C-object.

add_subset_reference(_subsetReference)

Appends _subsetReference to subsetReferences property on ImportRecord C-object.

property copy_destination_parent : RecordReference

Property copy_destination_parent is of type RecordReference.

property existing_record : RecordReference

Property existing_record is of type RecordReference.

property import_attribute_values : list[ImportAttributeValue]

Property import_attribute_values is a list of ImportAttributeValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property import_record_mode : str

Property import_record_mode is of type str. See GRANTA_Constants for supported values.
  • Return type: str

property is_folder : bool

Property is_folder is of type bool.

property record_name : str

Property record_name is of type str.
  • Return type: str

property release_record : bool

Property release_record is of type bool.

property subset_references : list[SubsetReference]

Property subset_references is a list of SubsetReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property update_subsets_mode : int

Property update_subsets_mode is of type int. See GRANTA_Constants for supported values.
  • Return type: int

IntegerDataType

class IntegerDataType(is_applicable=None, value=None, _is_owner=True)

Bases: IDataValue A type to contain an integer data type.
  • Parameters:

property is_applicable : bool

Property is_applicable is of type bool.

property value : int

Property value is of type int.
  • Return type: int

IntegrationDatabase

class IntegrationDatabase(db_key=None, author=None, company=None, integration_tables=None, volume_name=None, _is_owner=True)

Bases: object Represents a database within an Integration Profile.

property author : str

Property author is of type str.
  • Return type: str

property company : str

Property company is of type str.
  • Return type: str

property db_key : str

Property db_key is of type str.
  • Return type: str

property integration_tables : list[TableDetail]

Property integration_tables is a list of TableDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property volume_name : str

Property volume_name is of type str.
  • Return type: str

IntegrationProfileDetail

class IntegrationProfileDetail(description=None, group_name=None, integration_databases=None, name=None, profile=None, _is_owner=True)

Bases: object Detailed information about an Integration Profile.

property description : RichText

Property description is of type RichText.

property group_name : str

Property group_name is of type str.
  • Return type: str

property integration_databases : list[IntegrationDatabase]

Property integration_databases is a list of IntegrationDatabase objects.

WARNING

Do not attempt to edit or append to the returned value.

property name : str

Property name is of type str.
  • Return type: str

property profile : IntegrationProfileReference

Property profile is of type IntegrationProfileReference.

IntegrationProfileReference

class IntegrationProfileReference(key=None, _is_owner=True)

Bases: object Contains the key for an Integration Profile.
  • Parameters: key (str)

property key : str

Property key is of type str.
  • Return type: str

LayoutDetail

class LayoutDetail(attribute_categories=None, layout=None, name=None, table=None, display_names=None, _is_owner=True)

Bases: object Detailed meta-information about a Layout in a Granta MI database.

add_attribute_category(_attributeCategory)

Appends _attributeCategory to attributeCategories property on LayoutDetail C-object.

property attribute_categories : list[AttributeCategory]

Property attribute_categories is a list of AttributeCategory objects.

WARNING

Do not attempt to edit or append to the returned value.

property display_names : list[DisplayName]

Property display_names is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property layout : LayoutReference

Property layout is of type LayoutReference.

property name : str

Property name is of type str.
  • Return type: str

property table : TableReference

Property table is of type TableReference.

LayoutReference

class LayoutReference(db_key=None, layout_identity=None, name=None, partial_table_reference=None, _is_owner=True)

Bases: object A type that allows identification of a particular Layout in a Granta MI database.

property db_key : str

Property db_key is of type str.
  • Return type: str

property layout_identity : int

Property layout_identity is of type int.
  • Return type: int

property name : str

Property name is of type str.
  • Return type: str

property partial_table_reference : PartialTableReference

Property partial_table_reference is of type PartialTableReference.

LessThanSearchValue

class LessThanSearchValue(tabular_column=None, unit=None, value=None, _is_owner=True)

Bases: object Search criterion to search for data less than a specified value. Criterion passes if data value is less than a given value. Point, range, and integer attributes are supported.
  • Parameters:

property tabular_column : str

Property tabular_column is of type str.
  • Return type: str

property unit : str

Property unit is of type str.
  • Return type: str

property value : float

Property value is of type float.

LinkAllCombinations

class LinkAllCombinations(node_name=None, source_records=None, target_records=None, _is_owner=True)

Bases: object For each given source record, add links to all the given target records. Silently skip any links that already exist.

add_source_record(_recordReference)

Appends _recordReference to sourceRecords property on LinkAllCombinations C-object.

add_target_record(_recordReference)

Appends _recordReference to targetRecords property on LinkAllCombinations C-object.

property node_name : str

Property node_name is of type str.
  • Return type: str

property source_records : list[RecordReference]

Property source_records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property target_records : list[RecordReference]

Property target_records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

LinkRecords

class LinkRecords(node_name=None, source_records=None, _is_owner=True)

Bases: object For each given source record, add links to the target records specified for that source record. Silently skip any links that already exist.

add_source_record(_notatedTargetedSourceRecord)

Appends _notatedTargetedSourceRecord to sourceRecords property on LinkRecords C-object.

property node_name : str

Property node_name is of type str.
  • Return type: str

property source_records : list[NotatedTargetedSourceRecord]

Property source_records is a list of NotatedTargetedSourceRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

LinkedRecordsDataType

class LinkedRecordsDataType(node_name=None, record_link_groups=None, type_string=None, _is_owner=True)

Bases: IDataValue A type representing a list of linked Records.

property node_name : str

Property node_name is of type str.
  • Return type: str
Property record_link_groups is a list of RecordLinkGroup objects.

WARNING

Do not attempt to edit or append to the returned value.

property type_string : str

Property type_string is of type str.
  • Return type: str

ListDataType

class ListDataType(items=None, _is_owner=True)

Bases: IDataValue A list of values within a Cell in Tabular Data.

property items : list[ListItem]

Property items is a list of ListItem objects.

WARNING

Do not attempt to edit or append to the returned value.

ListItem

class ListItem(data_type=None, date_data_value=None, discrete_data_value=None, file_data_value=None, hyperlink_data_value=None, integer_data_value=None, logical_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, source_record_reference=None, float_functional_gridded_data_value=None, float_functional_series_data_value=None, discrete_functional_gridded_data_value=None, discrete_functional_series_data_value=None, empty_data_value=None, _is_owner=True)

Bases: object An item in a List data value.

property data_type : str

Property data_type is of type str.
  • Return type: str

property date_data_value : DateDataType

Property date_data_value is of type DateDataType.

property discrete_data_value : DiscreteDataType

Property discrete_data_value is of type DiscreteDataType.

property discrete_functional_gridded_data_value : DiscreteFunctionalGriddedDataType

Property discrete_functional_gridded_data_value is of type DiscreteFunctionalGriddedDataType.

property discrete_functional_series_data_value : DiscreteFunctionalSeriesDataType

Property discrete_functional_series_data_value is of type DiscreteFunctionalSeriesDataType.

property empty_data_value : EmptyDataType

Property empty_data_value is of type EmptyDataType.

property file_data_value : FileDataType

Property file_data_value is of type FileDataType.

property float_functional_gridded_data_value : FloatFunctionalGriddedDataType

Property float_functional_gridded_data_value is of type FloatFunctionalGriddedDataType.

property float_functional_series_data_value : FloatFunctionalSeriesDataType

Property float_functional_series_data_value is of type FloatFunctionalSeriesDataType. Property hyperlink_data_value is of type HyperlinkDataType.

property integer_data_value : IntegerDataType

Property integer_data_value is of type IntegerDataType.

property logical_data_value : LogicalDataType

Property logical_data_value is of type LogicalDataType.

property long_text_data_value : LongTextDataType

Property long_text_data_value is of type LongTextDataType.

property picture_data_value : PictureDataType

Property picture_data_value is of type PictureDataType.

property point_data_value : PointDataType

Property point_data_value is of type PointDataType.

property range_data_value : RangeDataType

Property range_data_value is of type RangeDataType.

property short_text_data_value : ShortTextDataType

Property short_text_data_value is of type ShortTextDataType.

property source_record_reference : RecordReference

Property source_record_reference is of type RecordReference.

LogicalDataType

class LogicalDataType(is_applicable=None, value=None, _is_owner=True)

Bases: IDataValue A type to contain a logical data type.
  • Parameters:

property is_applicable : bool

Property is_applicable is of type bool.

property value : bool

Property value is of type bool.

LongTextDataType

class LongTextDataType(is_applicable=None, value=None, _is_owner=True)

Bases: IDataValue A type to contain a long text data type.
  • Parameters:

property is_applicable : bool

Property is_applicable is of type bool.

property value : str

Property value is of type str.
  • Return type: str

LookupValue

class LookupValue(attribute_reference=None, attribute_value=None, _is_owner=True)

Bases: object Object containing an AttributeValue and AttributeReference object that uniquely identify a record in a table.

property attribute_reference : AttributeReference

Property attribute_reference is of type AttributeReference.

property attribute_value : str

Property attribute_value is of type str.
  • Return type: str

LowEndSearchValue

class LowEndSearchValue(unit=None, value=None, _is_owner=True)

Bases: object Lower limit for the BetweenSearchValue search criterion.

property unit : str

Property unit is of type str.
  • Return type: str

property value : float

Property value is of type float.

MIEntityResolution

class MIEntityResolution(can_write=None, entity_reference=None, resolved=None, _is_owner=True)

Bases: object Represents whether the entity referred to by the reference property can actually be resolved to an MI entity, and if that entity can be resolved whether or not it is writable.

class CanWrite

Bases: object

No = 1

NotSupported = 2

Yes = 0

property can_write : int

Property can_write is of type int.
  • Return type: int

property entity_reference : RecordReference

Property entity_reference is of type RecordReference.

property resolved : bool

Property resolved is of type bool.

MIParameterValue

class MIParameterValue(revision_info=None, value=None, value_name=None, _is_owner=True)

Bases: object A named value of a Parameter in a Granta MI Database.

property revision_info : RevisionInfo

Property revision_info is of type RevisionInfo.

property value : float

Property value is of type float.

property value_name : str

Property value_name is of type str.
  • Return type: str

MISession

class MISession(url=”, verbosity=1)

Bases: object A connection to a Granta MI Server. Don’t create this class directly, instead see GRANTA_MISession
  • Parameters:
    • url (str) – URL to access the Granta MI Service Layer
    • verbosity (str, {1, 2, 3}) – Logging verbosity, accepted values are: 1 - “ERROR”, 2 - “WARNING”, or 3 - “DEBUG”

connection_is_valid()

Indicates whether the connection was successful.
  • Returns:
    • is_valid (bool) – Whether the connection test succeeded
    • description (str) – Description of the test outcome
  • Return type: Tuple[bool, str]

set_authorization(auth)

Use Open ID Connect to authenticate to the Granta MI Service Layer
  • Parameters: auth (OIDC)

set_credentials(domain, username, password)

Use the provided credentials to authenticate with the Granta MI Service Layer. The Granta MI Service Layer must be configured to allow Basic authentication, or the MI Scripting Toolkit session must be created on Windows, and NTLM authentication must be enabled.
  • Parameters:
    • username (str) – Granta MI username
    • password (str) – Granta MI password
    • domain (str, optional) – Granta MI user domain

set_receive_timeout(timeout)

Sets time in milliseconds to wait for a response before timing out.
  • Parameters: timeout (int) – Timeout (in milliseconds)

test_connection()

Raises an exception if a request to the Granta MI Service Layer does not respond or responds with an error.

use_auto_logon()

Use the Windows credentials of the current user to authenticate to the Granta MI Service Layer.

property act_as_read_user : bool

Forces the session to operate with READ permissions, even if the user has higher privileges. If the user authenticates with a role that has additional privileges the session will behave as though they have only read permissions. This prevents writing to the database and affects which versions of records are visible for version controlled databases.

MinMax

class MinMax(max_value=None, min_value=None, units=None, _is_owner=True)

Bases: object The minimum and maximum data values for a specified numerical attribute, calculated from all records you have read permissions for in a database.

property max_value : MinMaxValue

Property max_value is of type MinMaxValue.

property min_value : MinMaxValue

Property min_value is of type MinMaxValue.

property units : str

Property units is of type str.
  • Return type: str

MinMaxValue

class MinMaxValue(date_time=None, double=None, integer=None, type_=None, _is_owner=True)

Bases: object A type that represents the minimum or maximum data value for a numerical attribute in a database.

class Type

Bases: object

DateType = 0

DoubleType = 1

ERROR = -1

IntegerType = 2

NotANumber = 3

property date_time : str

Property date_time is of type str.
  • Return type: str

property double : float

Property double is of type float.

property integer : int

Property integer is of type int.
  • Return type: int

property type_ : int

Property type_ is of type int.
  • Return type: int

ModifyRecordLinksRequest

class ModifyRecordLinksRequest(import_error_mode=None, record_link_check_mode=None, record_link_group_reference=None, record_link_modifications=None, _is_owner=True)

Bases: object Input to the modify_record_links operation. Requires a RecordLinkGroupReference to the record link group you wish to modify and a RecordLinkModifications object, which contains the modifications you wish to make to the record link group. The ‘import_error_mode’ property defines how to handle errors which occur during linking and can take the following values: ‘FaultAndRollbackOnAnyError’, which stops the linking request when an error occurs and attempts to roll back to the state before the request was issued; or ‘LogAndContinueWherePossible’, which will log non-fatal errors and attempt to continue with the linking request. The ‘record_link_check_mode’ property defines how to check the status of existing links and takes the following values: ‘CheckOnlyForwardLinks’, which checks for link only in the forward direction and is quicker than checking both directions; or ‘CheckForwardAndReverseLinks’, which is slower but safer as it checks for both forward and backward links.

property import_error_mode : str

Property import_error_mode is of type str. See GRANTA_Constants for supported values.
  • Return type: str
Property record_link_check_mode is of type str. See GRANTA_Constants for supported values.
  • Return type: str
Property record_link_group_reference is of type RecordLinkGroupReference. Property record_link_modifications is of type RecordLinkModifications.

ModifyRecordLinksResponse

class ModifyRecordLinksResponse(c_obj)

Bases: Response The response from a modify_record_links request.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a ModifyRecordLinksResponse object.
Property record_link_changes is of type RecordLinkChanges.

NamedAttribute

class NamedAttribute(about=None, attribute=None, is_meta=None, name=None, _is_owner=True)

Bases: object Name information about an Attribute in a Granta MI database.

property about : NamedAttribute

Property about is of type NamedAttribute. Only populated if ‘is_meta’ is True.

property attribute : AttributeReference

Property attribute is of type AttributeReference.

property is_meta : bool

Property is_meta is of type bool. If this is True, the ‘about’ property may have additional information about the related parent attribute.

property name : str

Property name is of type str.
  • Return type: str

NamedLayout

class NamedLayout(layout=None, name=None, _is_owner=True)

Bases: object A layout in a Granta MI database.

property layout : LayoutReference

Property layout is of type LayoutReference.

property name : str

Property name is of type str.
  • Return type: str

NamedRecord

class NamedRecord(long_name=None, record_reference=None, short_name=None, _is_owner=True)

Bases: object A RecordReference with the short and long name of the record.

property long_name : str

Property long_name is of type str.
  • Return type: str

property record_reference : RecordReference

Property record_reference is of type RecordReference.

property short_name : str

Property short_name is of type str.
  • Return type: str

NamedSubset

class NamedSubset(name=None, subset=None, _is_owner=True)

Bases: object A SubsetReference with the subset name.

property name : str

Property name is of type str.
  • Return type: str

property subset : SubsetReference

Property subset is of type SubsetReference.

NamedTargetedSourceRecord

class NamedTargetedSourceRecord(record=None, target_records=None, _is_owner=True)

Bases: object A named record used for modifying record links.

add_target_records(_namedRecord)

Appends _namedRecord to targetRecords property on NamedTargetedSourceRecord C-object.

property record : NamedRecord

Property record is of type NamedRecord.

property target_records : list[NamedRecord]

Property target_records is a list of NamedRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

NotatedTargetRecord

class NotatedTargetRecord(notes=None, record=None, reverse_notes=None, _is_owner=True)

Bases: object A RecordReference of the record you wish to link to and notes on the record link. Requires a RecordReference. Notes on the link and the reverse link are optional.

property notes : str

Property notes is of type str.
  • Return type: str

property record : RecordReference

Property record is of type RecordReference.

property reverse_notes : str

Property reverse_notes is of type str.
  • Return type: str

NotatedTargetedSourceRecord

class NotatedTargetedSourceRecord(source_record=None, target_records=None, _is_owner=True)

Bases: object A NamedRecord to link from and container of NamedRecord of the records to link to. Requires a source NamedRecord. Can set zero to many target NamedRecord objects you wish to link to.

add_target_record(_notatedTargetRecord)

Appends _notatedTargetRecord to targetRecords property on NotatedTargetedSourceRecord C-object.

property source_record : RecordReference

Property source_record is of type RecordReference.

property target_records : list[NotatedTargetRecord]

Property target_records is a list of NotatedTargetRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

OIDC

class OIDC(access_token=None, refresh_token=None, authorize_timeout=None)

Bases: object An object to allow authorization using OpenID Connect. Contact Ansys Granta Technical Support for information on supported identity providers, and for configuration and setup documentation. If neither access_token nor refresh_token are provided then call authorize_with_authorization_code_flow() or authorize_with_device_code_flow() for interactive login with the user’s credentials. If refresh_token is provided then the session will attempt to obtain an access token from the identity provider. If access_token is provided then the session will use it directly.

authorize_with_authorization_code_flow()

Authorize a Granta MI session with an OpenID Connect provider. Uses the Authorization Code Flow with PKCE to authenticate.

authorize_with_device_code_flow()

Authorize a Granta MI session with an OpenID Connect provider. Uses the Device Code Flow to authenticate.

check_authentication()

Checks whether your access and refresh tokens are valid.
  • Returns:
    • is_valid (bool) – Whether the tokens could be used to connect to the Granta MI Service layer
    • message (str) – Error message if the tokens could not be used to connect to the Granta MI Service Layer.
  • Return type: Tuple[bool, str]

test_authentication()

Checks whether your access and refresh tokens are valid.
  • Raises: GRANTA_Exception – If the tokens could not be used to connect to the Granta MI Service Layer.

property access_token : str

OIDC access token.
  • Return type: str

property authorize_timeout : int

The number of milliseconds to wait for the user to authenticate in their browser.
  • Return type: int

property refresh_token : str

OIDC refresh token, if one is available from the OpenID Identity Provider.

NOTE

The identity provider must provide the offline_access scope for refresh tokens to be available
  • Return type: str

ParameterDetail

class ParameterDetail(applies_to_attribute=None, applies_to_record=None, default_value=None, interpolation_type=None, name=None, order=None, parameter_reference=None, parameter_type=None, parameter_values=None, revision_info=None, scale_type=None, unit=None, help_info=None, _is_owner=True)

Bases: object Detailed information about a Parameter in a Granta MI Database.

class Interpolation

Bases: object

CubicSpline = 2

Linear = 1

NONE = 0

class ParameterType

Bases: object

Discrete = 2

NumericRestricted = 1

NumericUnrestricted = 0

class ScaleType

Bases: object

Linear = 1

Log = 2

NotSet = 0

property applies_to_attribute : AttributeReference

Property applies_to_attribute is of type AttributeReference.

property applies_to_record : RecordReference

Property applies_to_record is of type RecordReference.

property default_value : MIParameterValue

Property default_value is of type MIParameterValue.

property help_info : HelpInfo

Property help_info is of type HelpInfo.

property interpolation_type : int

Property interpolation_type is of type int. See ParameterDetail.Interpolation for supported values.
  • Return type: int

property name : str

Property name is of type str.
  • Return type: str

property order : int

Property order is of type int.
  • Return type: int

property parameter_reference : ParameterReference

Property parameter_reference is of type ParameterReference.

property parameter_type : int

Property parameter_type is of type int. See ParameterDetail.ParameterType for supported values.
  • Return type: int

property parameter_values : list[MIParameterValue]

Property parameter_values is a list of MIParameterValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property revision_info : RevisionInfo

Property revision_info is of type RevisionInfo.

property scale_type : int

Property scale_type is of type int. See ParameterDetail.ScaleType for supported values.
  • Return type: int

property unit : UnitInformation

Property unit is of type UnitInformation.

ParameterDomain

class ParameterDomain(exporter_parameter_id=None, interpolable=None, values=None, _is_owner=True)

Bases: object A type to contain a list of parameter values.

property exporter_parameter_id : str

Property exporter_parameter_id is of type str.
  • Return type: str

property interpolable : bool

Property interpolable is of type bool.

property values : list[ParameterValue]

Property values is a list of ParameterValue objects.

WARNING

Do not attempt to edit or append to the returned value.

ParameterInformation

class ParameterInformation(name=None, parameter_reference=None, unit=None, _is_owner=True)

Bases: object Information for a parameter in a Granta MI database. Contains the name and unit information for a parameter and a ParameterReference to the parameter.

property name : str

Property name is of type str.
  • Return type: str

property parameter_reference : ParameterReference

Property parameter_reference is of type ParameterReference.

property unit : UnitInformation

Property unit is of type UnitInformation.

ParameterReference

class ParameterReference(db_key=None, id_=None, name=None, _is_owner=True)

Bases: object Identification of a particular parameter in a Granta MI database . For requests a db_key is required, and either the parameter ID or the parameter name.
  • Parameters:

property db_key : str

Property db_key is of type str.
  • Return type: str

property id_ : int

Property id_ is of type int.
  • Return type: int

property name : str

Property name is of type str.
  • Return type: str

ParameterReferenceAndValue

class ParameterReferenceAndValue(parameter=None, parameter_value=None, _is_owner=True)

Bases: object Contains a ParameterReference and a ParameterValue.

property parameter : ParameterReference

Property parameter is of type ParameterReference.

property parameter_value : ParameterValue

Property parameter_value is of type ParameterValue.

ParameterReferencesAndValues

class ParameterReferencesAndValues(parameter_with_values=None, _is_owner=True)

Bases: object A collection of ParameterReferenceAndValue objects.

add_parameter_with_value(_parameterReferenceAndValue)

Appends _parameterReferenceAndValue to parameterWithValues property on ParameterReferencesAndValues C-object.

property parameter_with_values : list[ParameterReferenceAndValue]

Property parameter_with_values is a list of ParameterReferenceAndValue objects.

WARNING

Do not attempt to edit or append to the returned value.

ParameterValue

class ParameterValue(discrete_value=None, numeric_value=None, type_=None, _is_owner=True)

Bases: object A value of a Parameter in Functional data.
  • Parameters:
    • discrete_value (str)
    • numeric_value (float)
    • type (str)

property discrete_value : str

Property discrete_value is of type str.
  • Return type: str

property numeric_value : float

Property numeric_value is of type float.

property type_ : str

Property type_ is of type str. There is no need to set this property manually. See GRANTA_Constants for supported values.
  • Return type: str

Parameters

class Parameters(parameters=None, _is_owner=True)

Bases: object A collection of ParameterInformation objects.

add_parameter(_parameterInformation)

Appends _parameterInformation to parameters property on Parameters C-object.

property parameters : list[ParameterInformation]

Property parameters is a list of ParameterInformation objects.

WARNING

Do not attempt to edit or append to the returned value.

PartialTableReference

class PartialTableReference(table_guid=None, table_id=None, table_name=None, _is_owner=True)

Bases: object A reference to a Granta MI table. Usually, just one of the several optional fields should be provided; where more than one is provided, the highest priority one is used, where the descending priority order is: table_identity, table_guid, table_name.
  • Parameters:
    • table_guid (str)
    • table_id (int)
    • table_name (str)

property table_guid : str

Property table_guid is of type str.
  • Return type: str

property table_id : int

Property table_id is of type int.
  • Return type: int

property table_name : str

Property table_name is of type str.
  • Return type: str

PathLeaf

class PathLeaf(long_name=None, record_reference=None, short_name=None, _is_owner=True)

Bases: object The folder furthest from the root record folder, for each path checked or created.

property long_name : str

Property long_name is of type str.
  • Return type: str

property record_reference : RecordReference

Property record_reference is of type RecordReference.

property short_name : str

Property short_name is of type str.
  • Return type: str

PictureDataType

class PictureDataType(url=None, content_type=None, data=None, is_applicable=None, _is_owner=True)

Bases: IDataValue A type representing a piece of Picture data in a Granta MI Database. To get a byte-array representing the binary data, call read_binary_data(). To set the binary data (as part of a data import), use modify_binary_data().
  • Parameters:

modify_binary_data(binary_data)

  • Parameters: binary_data (bytes)

read_binary_data()

property content_type : str

Property content_type is of type str.
  • Return type: str

property data : str

Property data is of type str.
  • Return type: str

property is_applicable : bool

Property is_applicable is of type bool.

property url : str

Property url is of type str.
  • Return type: str

PointDataType

class PointDataType(is_applicable=None, is_estimated=None, parameters=None, points=None, unit_symbol=None, _is_owner=True)

Bases: IDataValue A type to contain an array of float data types.

add_point(_pointValueWithParameters)

Appends _pointValueWithParameters to points property on PointDataType C-object.

property is_applicable : bool

Property is_applicable is of type bool.

property is_estimated : bool

Property is_estimated is of type bool.

property parameters : Parameters

Property parameters is of type Parameters.

property points : list[PointValueWithParameters]

Property points is a list of PointValueWithParameters objects.

WARNING

Do not attempt to edit or append to the returned value.

property unit_symbol : str

Property unit_symbol is of type str.
  • Return type: str

PointValueWithParameters

class PointValueWithParameters(has_trailing_zero_info=None, trailing_zero_info=None, value=None, value_parameters=None, has_sig_figs_for_import=None, sig_figs_for_import=None, _is_owner=True)

Bases: object A numeric value with associated ParameterReferencesAndValues object.

property has_sig_figs_for_import : bool

Property has_sig_figs_for_import is of type bool.

property has_trailing_zero_info : bool

Property has_trailing_zero_info is of type bool.

property sig_figs_for_import : int

Property sig_figs_for_import is of type int.
  • Return type: int

property trailing_zero_info : TrailingZeroInformation

Property trailing_zero_info is of type TrailingZeroInformation.

property value : float

Property value is of type float.

property value_parameters : ParameterReferencesAndValues

Property value_parameters is of type ParameterReferencesAndValues.

RangeDataType

class RangeDataType(has_high=None, has_high_trailing_zero_info=None, has_low=None, has_low_trailing_zero_info=None, high=None, high_value_trailing_zero_info=None, is_applicable=None, is_estimated=None, low=None, low_value_trailing_zero_info=None, unit_symbol=None, high_value_is_inclusive=None, low_value_is_inclusive=None, has_high_value_sig_figs_for_import=None, has_low_value_sig_figs_for_import=None, high_value_sig_figs_for_import=None, low_value_sig_figs_for_import=None, _is_owner=True)

Bases: IDataValue Type for values of range data. Both low_value and high_value must be populated.
  • Parameters:

property has_high : bool

Property has_high is of type bool.

property has_high_trailing_zero_info : bool

Property has_high_trailing_zero_info is of type bool.

property has_high_value_sig_figs_for_import : bool

Property has_high_value_sig_figs_for_import is of type bool.

property has_low : bool

Property has_low is of type bool.

property has_low_trailing_zero_info : bool

Property has_low_trailing_zero_info is of type bool.

property has_low_value_sig_figs_for_import : bool

Property has_low_value_sig_figs_for_import is of type bool.

property high : float

Property high is of type float.

property high_value_is_inclusive : bool

Property high_value_is_inclusive is of type bool.

property high_value_sig_figs_for_import : int

Property high_value_sig_figs_for_import is of type int.
  • Return type: int

property high_value_trailing_zero_info : TrailingZeroInformation

Property high_value_trailing_zero_info is of type TrailingZeroInformation.

property is_applicable : bool

Property is_applicable is of type bool.

property is_estimated : bool

Property is_estimated is of type bool.

property low : float

Property low is of type float.

property low_value_is_inclusive : bool

Property low_value_is_inclusive is of type bool.

property low_value_sig_figs_for_import : int

Property low_value_sig_figs_for_import is of type int.
  • Return type: int

property low_value_trailing_zero_info : TrailingZeroInformation

Property low_value_trailing_zero_info is of type TrailingZeroInformation.

property unit_symbol : str

Property unit_symbol is of type str.
  • Return type: str

RasterSize

class RasterSize(height_pixels=None, width_pixels=None, _is_owner=True)

Bases: object Gives the size in pixels of picture data.
  • Parameters:
    • height_pixels (int)
    • width_pixels (int)

property height_pixels : int

Property height_pixels is of type int.
  • Return type: int

property width_pixels : int

Property width_pixels is of type int.
  • Return type: int

RecordAttribute

class RecordAttribute(attribute=None, data_created_record_version=None, data_retired_record_version=None, data_revision_info=None, data_version_number=None, has_data=None, parameter_details=None, record_reference=None, _is_owner=True)

Bases: object Meta-information about the data of a particular attribute of a particular Record in a Granta MI database. Does NOT include values of the data (see AttributeValue type).

property attribute : NamedAttribute

Property attribute is of type NamedAttribute.

property data_created_record_version : int

Property data_created_record_version is of type int.
  • Return type: int

property data_retired_record_version : int

Property data_retired_record_version is of type int.
  • Return type: int

property data_revision_info : RevisionInfo

Property data_revision_info is of type RevisionInfo.

property data_version_number : int

Property data_version_number is of type int.
  • Return type: int

property has_data : bool

Property has_data is of type bool.

property parameter_details : list[ParameterDetail]

Property parameter_details is a list of ParameterDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property record_reference : RecordReference

Property record_reference is of type RecordReference.

RecordData

class RecordData(attribute_values=None, record_reference=None, _is_owner=True)

Bases: object The values of data for attribute(s) of a particular record.

property attribute_values : list[AttributeValue]

Property attribute_values is a list of AttributeValue objects.

WARNING

Do not attempt to edit or append to the returned value.

property record_reference : RecordReference

Property record_reference is of type RecordReference.

RecordExporterParameters

class RecordExporterParameters(attributes=None, record=None, _is_owner=True)

Bases: object A type to contain a record and its associated attribute exporter parameters.

property attributes : list[AttributeExporterParameters]

Property attributes is a list of AttributeExporterParameters objects.

WARNING

Do not attempt to edit or append to the returned value.

property record : RecordReference

Property record is of type RecordReference.

RecordFilter

class RecordFilter(profile=None, subsets=None, record_lists=None, _is_owner=True)

Bases: object A type allowing lists of Records to be filtered, e.g., by membership of Subset(s). You should specify either a profile or a subset reference, but not both. You can pass in a list containing an uninitialized SubsetReference to effectively disable the subset filter. Note that subsets are not inherited; newly-created records will not be filtered until they are added to a Subset.

add_record_list(_recordListReference)

Appends _recordListReference to recordLists property on RecordFilter C-object.

add_subset(_subsetReference)

Appends _subsetReference to subsets property on RecordFilter C-object.

property profile : str

Property profile is of type str.
  • Return type: str

property record_lists : list[RecordListReference]

Property record_lists is a list of RecordListReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property subsets : list[SubsetReference]

Property subsets is a list of SubsetReference objects.

WARNING

Do not attempt to edit or append to the returned value.

RecordFolderPath

class RecordFolderPath(color=None, record_reference=None, tree_names=None, _is_owner=True)

Bases: object The path to a Granta MI record folder. Contains the record folder at which the path starts as parent, the tree names, and the color.

add_tree_name(value)

Appends value to treeNames property on RecordFolderPath C-object.
  • Parameters: value (str)

property color : str

Property color is of type str.
  • Return type: str

property record_reference : RecordReference

Property record_reference is of type RecordReference.

property tree_names : list[str]

Property tree_names is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

RecordLinkChanges

class RecordLinkChanges(linked=None, unlinked=None, _is_owner=True)

Bases: object A set of changes to be made to record link groups.

property linked : list[NamedTargetedSourceRecord]

Property linked is a list of NamedTargetedSourceRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property unlinked : list[NamedTargetedSourceRecord]

Property unlinked is a list of NamedTargetedSourceRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

RecordLinkGroup

class RecordLinkGroup(linked_records=None, name=None, standard_names=None, table_filters=None, _is_owner=True)

Bases: object A type representing a group of linked records.

property linked_records : list[NamedRecord]

Property linked_records is a list of NamedRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property name : str

Property name is of type str.
  • Return type: str

property standard_names : list[str]

Property standard_names is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property table_filters : list[int]

Property table_filters is a list of int objects. See GRANTA_Constants for supported values.

WARNING

Do not attempt to edit or append to the returned value.

RecordLinkGroupDetail

class RecordLinkGroupDetail(from_table=None, link_group_type=None, name=None, reference=None, reverse_name=None, reverse_reference=None, standard_names=None, to_table=None, _is_owner=True)

Bases: object Detailed information about a Record Link Group in a Granta MI Database.

add_standard_name(value)

Appends value to standardNames property on RecordLinkGroupDetail C-object.
  • Parameters: value (str)

property from_table : TableReference

Property from_table is of type TableReference. Property link_group_type is of type str. See GRANTA_Constants for supported values.
  • Return type: str

property name : str

Property name is of type str.
  • Return type: str

property reference : RecordLinkGroupReference

Property reference is of type RecordLinkGroupReference.

property reverse_name : str

Property reverse_name is of type str.
  • Return type: str

property reverse_reference : RecordLinkGroupReference

Property reverse_reference is of type RecordLinkGroupReference.

property standard_names : list[str]

Property standard_names is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property to_table : TableReference

Property to_table is of type TableReference.

RecordLinkGroupReference

class RecordLinkGroupReference(db_key=None, is_standard_name=None, name=None, partial_table_reference=None, record_link_group_identity=None, record_link_group_type=None, _is_owner=True)

Bases: object A type that allows identification of a particular record link group in a Granta MI database. This may be done by specifying the identity of the group, or its name and a partial table reference.

property db_key : str

Property db_key is of type str.
  • Return type: str

property is_standard_name : bool

Property is_standard_name is of type bool.

property name : str

Property name is of type str.
  • Return type: str

property partial_table_reference : PartialTableReference

Property partial_table_reference is of type PartialTableReference. Property record_link_group_identity is of type int.
  • Return type: int
Property record_link_group_type is of type str. See GRANTA_Constants for supported values.
  • Return type: str

RecordLinkModifications

class RecordLinkModifications(link_all_combinations=None, link_records=None, unlink_all_records=None, unlink_records=None, _is_owner=True)

Bases: object A set of modifications to be made to record link groups. Appends _linkAllCombinations to linkAllCombinations property on RecordLinkModifications C-object. Appends _linkRecords to linkRecords property on RecordLinkModifications C-object. Appends _unlinkAllRecords to unlinkAllRecords property on RecordLinkModifications C-object. Appends _unlinkRecords to unlinkRecords property on RecordLinkModifications C-object. Property link_all_combinations is a list of LinkAllCombinations objects.

WARNING

Do not attempt to edit or append to the returned value. Property link_records is a list of LinkRecords objects.

WARNING

Do not attempt to edit or append to the returned value. Property unlink_all_records is a list of UnlinkAllRecords objects.

WARNING

Do not attempt to edit or append to the returned value. Property unlink_records is a list of UnlinkRecords objects.

WARNING

Do not attempt to edit or append to the returned value.

RecordListReference

class RecordListReference(guid=None, _is_owner=True)

Bases: object A unique identifier for a record list.
  • Parameters: guid (str)

property guid : str

Property guid is of type str.
  • Return type: str

RecordManipulatorService

class RecordManipulatorService(mi_session, retries=0)

Bases: Service The Record Manipulator service provides a way to move a record whilst preserving its metadata and attribute values.

move_record(_req)

Reparents a record. Metadata such as creation date will be preserved, along with attribute values.

RecordMoveRequest

class RecordMoveRequest(db_key=None, new_parent_record_history_guid=None, record_history_guid=None, _is_owner=True)

Bases: object The details of a MoveRecord operation. The record to be moved and the new location are both specified with Record History GUIDs.
  • Parameters:
    • db_key (str)
    • new_parent_record_history_guid (str)
    • record_history_guid (str)

property db_key : str

Property db_key is of type str.
  • Return type: str

property new_parent_record_history_guid : str

Property new_parent_record_history_guid is of type str.
  • Return type: str

property record_history_guid : str

Property record_history_guid is of type str.
  • Return type: str

RecordNameSearchRequest

class RecordNameSearchRequest(case_sensitive_names=None, filter=None, populate_guids=None, record_name=None, search_full_names=None, search_short_names=None, table=None, _is_owner=True)

Bases: object The input for the record_name_search operation. Both the table and record_name are required.

property case_sensitive_names : bool

Property case_sensitive_names is of type bool.

property filter : RecordFilter

Property filter is of type RecordFilter.

property populate_guids : bool

Property populate_guids is of type bool.

property record_name : str

Property record_name is of type str.
  • Return type: str

property search_full_names : bool

Property search_full_names is of type bool.

property search_short_names : bool

Property search_short_names is of type bool.

property table : TableReference

Property table is of type TableReference.

RecordReference

class RecordReference(db_key=None, history_guid=None, identity=None, lookup_value=None, record_guid=None, version=None, record_uid=None, _is_owner=True)

Bases: object A type that allows identification of a particular record in a Granta MI database. This is done directly by specifying the Identity or GUID of the record.

property db_key : str

Property db_key is of type str.
  • Return type: str

property history_guid : str

Property history_guid is of type str.
  • Return type: str

property identity : int

Property identity is of type int.
  • Return type: int

property lookup_value : LookupValue

Property lookup_value is of type LookupValue.

property record_guid : str

Property record_guid is of type str.
  • Return type: str

property record_uid : str

Property record_uid is of type str.
  • Return type: str

property version : int

Property version is of type int.
  • Return type: int

RecordSearchCriterion

class RecordSearchCriterion(between_date_times_search_value=None, between_search_value=None, contains_all_search_value=None, contains_any_search_value=None, contains_search_value=None, does_not_contain_search_value=None, does_not_exist_search_value=None, exactly_search_value=None, exists_search_value=None, greater_than_search_value=None, less_than_search_value=None, search_attribute=None, type_=None, equal_to_search_value=None, _is_owner=True)

Bases: object One criterion that controls results returned from a search. A search comprises one or more such criteria.

property between_date_times_search_value : BetweenDateTimesSearchValue

Property between_date_times_search_value is of type BetweenDateTimesSearchValue.

property between_search_value : BetweenSearchValue

Property between_search_value is of type BetweenSearchValue.

property contains_all_search_value : ContainsAllSearchValue

Property contains_all_search_value is of type ContainsAllSearchValue.

property contains_any_search_value : ContainsAnySearchValue

Property contains_any_search_value is of type ContainsAnySearchValue.

property contains_search_value : ContainsSearchValue

Property contains_search_value is of type ContainsSearchValue.

property does_not_contain_search_value : DoesNotContainSearchValue

Property does_not_contain_search_value is of type DoesNotContainSearchValue.

property does_not_exist_search_value : DoesNotExistSearchValue

Property does_not_exist_search_value is of type DoesNotExistSearchValue.

property equal_to_search_value : EqualToSearchValue

Property equal_to_search_value is of type EqualToSearchValue.

property exactly_search_value : ExactlySearchValue

Property exactly_search_value is of type ExactlySearchValue.

property exists_search_value : ExistsSearchValue

Property exists_search_value is of type ExistsSearchValue.

property greater_than_search_value : GreaterThanSearchValue

Property greater_than_search_value is of type GreaterThanSearchValue.

property less_than_search_value : LessThanSearchValue

Property less_than_search_value is of type LessThanSearchValue.

property search_attribute : AttributeReference

Property search_attribute is of type AttributeReference.

property type_ : str

Property type_ is of type str.
  • Return type: str

RecordVersionState

class RecordVersionState(record_reference=None, version_state=None, has_released_revision=None, has_superseded_revision=None, has_withdrawn_revision=None, created_revision=None, modified_revision=None, released_revision=None, superseded_revision=None, withdrawn_revision=None, _is_owner=True)

Bases: object The version status of a particular Record in a Granta MI database.

class VersionState

Bases: object

Released = 0

Superseded = 1

Unknown = 5

Unreleased = 3

Unversioned = 4

Withdrawn = 2

property created_revision : DatabaseRevision

Property created_revision is of type DatabaseRevision.

property has_released_revision : bool

Property has_released_revision is of type bool.

property has_superseded_revision : bool

Property has_superseded_revision is of type bool.

property has_withdrawn_revision : bool

Property has_withdrawn_revision is of type bool.

property modified_revision : DatabaseRevision

Property modified_revision is of type DatabaseRevision.

property record_reference : RecordReference

Property record_reference is of type RecordReference.

property released_revision : DatabaseRevision

Property released_revision is of type DatabaseRevision.

property superseded_revision : DatabaseRevision

Property superseded_revision is of type DatabaseRevision.

property version_state : int

Property version_state is of type int. See RecordVersionState.VersionState for supported values.
  • Return type: int

property withdrawn_revision : DatabaseRevision

Property withdrawn_revision is of type DatabaseRevision.

RecordWithAttributeAddresses

class RecordWithAttributeAddresses(attribute_addresses=None, record_reference=None, _is_owner=True)

Bases: object A RecordReference with a list of attributes and their upload URL addresses.

add_attribute_address(_attributeAddress)

Appends _attributeAddress to attributeAddresses property on RecordWithAttributeAddresses C-object.

property attribute_addresses : list[AttributeAddress]

Property attribute_addresses is a list of AttributeAddress objects.

WARNING

Do not attempt to edit or append to the returned value.

property record_reference : RecordReference

Property record_reference is of type RecordReference.

ResolveReferencesRequest

class ResolveReferencesRequest(entities=None, _is_owner=True)

Bases: object Input for the resolve_references operation.

add_entitie(_recordReference)

Appends _recordReference to entities property on ResolveReferencesRequest C-object.

property entities : list[RecordReference]

Property entities is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

ResolveReferencesResponse

class ResolveReferencesResponse(c_obj)

Bases: Response Output from the resolve_references operation.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a ResolveReferencesResponse object.

property entity_resolutions : list[MIEntityResolution]

Property entity_resolutions is a list of MIEntityResolution objects.

WARNING

Do not attempt to edit or append to the returned value.

Response

class Response(c_obj)

Bases: ABC Base class for response types in Granta MI.

property service_layer_response : ServiceLayerResponse

The raw response object received from the Granta MI Service Layer.

RevisionInfo

class RevisionInfo(created=None, modified=None, update_count=None, _is_owner=True)

Bases: object Describes when an entity in a Granta MI database was created and updated.

property created : DatabaseRevision

Property created is of type DatabaseRevision.

property modified : DatabaseRevision

Property modified is of type DatabaseRevision.

property update_count : int

Property update_count is of type int.
  • Return type: int

RichText

class RichText(type_=None, value=None, _is_owner=True)

Bases: object Contains a piece of text and its type.
  • Parameters:

class Type

Bases: object

Markdown = 1

Plain = 0

property type_ : int

Property type_ is of type int.
  • Return type: int

property value : str

Property value is of type str.
  • Return type: str

SearchResult

class SearchResult(long_name=None, ranking=None, record_reference=None, short_name=None, color=None, record_type=None, _is_owner=True)

Bases: object An extension of NamedRecord with a ranking. The higher the ranking the better the match to your search criteria.

property color : str

Property color is of type str.
  • Return type: str

property long_name : str

Property long_name is of type str.
  • Return type: str

property ranking : str

Property ranking is of type str.
  • Return type: str

property record_reference : RecordReference

Property record_reference is of type RecordReference.

property record_type : str

Property record_type is of type str.
  • Return type: str

property short_name : str

Property short_name is of type str.
  • Return type: str

SearchService

class SearchService(mi_session, retries=0)

Bases: Service The Search service finds Records, within Granta MI Databases, matching specified criteria. Searches for records matching attribute-based criteria. Searches for Records with a given exact Record name. Searches for records matching simple text criteria.

Series

class Series(xy_points=None, constraints=None, decoration=None, _is_owner=True)

Bases: object Type for functional data which includes X-Y data and any constraints.

property constraints : Constraints

Property constraints is of type Constraints.

property decoration : int

Property decoration is of type int. See GRANTA_Constants for supported values.
  • Return type: int

property xy_points : XYData

Property xy_points is of type XYData.

Service

class Service(mi_session, retries=0)

Bases: object Base class for Granta MI Service objects. For internal use only.

ServiceLayerResponse

class ServiceLayerResponse(error_message=None, request_message=None, response_code=None, response_message=None, _is_owner=True)

Bases: object The HTTP response information from Granta MI Service Layer. Useful for debugging bad requests.
  • Parameters:
    • error_message (str)
    • request_message (str)
    • response_code (int)
    • response_message (str)

property error_message : str

Property error_message is of type str.
  • Return type: str

property request_message : str

Property request_message is of type str.
  • Return type: str

property response_code : int

Property response_code is of type int. This is an HTTP status code.
  • Return type: int

property response_message : str

Property response_message is of type str.
  • Return type: str

SetRecordAttributesRequest

class SetRecordAttributesRequest(import_error_mode=None, import_records=None, notes=None, release_notes=None, _is_owner=True)

Bases: object The input to a set record attributes operation. Includes an array of records to import.
  • Parameters:

add_import_record(_importRecord)

Appends _importRecord to importRecords property on SetRecordAttributesRequest C-object.

property import_error_mode : str

Property import_error_mode is of type str. See GRANTA_Constants for supported values.
  • Return type: str

property import_records : list[ImportRecord]

Property import_records is a list of ImportRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property notes : str

Property notes is of type str.
  • Return type: str

property release_notes : str

Property release_notes is of type str.
  • Return type: str

SetRecordAttributesResponse

class SetRecordAttributesResponse(c_obj)

Bases: Response Response for set_record_attributes operation. Includes an array of import records.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a SetRecordAttributesResponse object.

property records_imported : list[NamedRecord]

Property records_imported is a list of NamedRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

ShortTextDataType

class ShortTextDataType(is_applicable=None, value=None, _is_owner=True)

Bases: IDataValue Type for values of short text (string) data.
  • Parameters:

property is_applicable : bool

Property is_applicable is of type bool.

property value : str

Property value is of type str.
  • Return type: str

SimpleTextSearch

class SimpleTextSearch(db_key=None, populate_guids=None, record_filter=None, restrict_to_tables=None, search_filter=None, search_mode=None, search_value=None, _is_owner=True)

Bases: object The input to a simple_text_search operation. Both the db_key, and search value are required.

add_restrict_to_table(_partialTableReference)

Appends _partialTableReference to restrictToTables property on SimpleTextSearch C-object.

property db_key : str

Property db_key is of type str.
  • Return type: str

property populate_guids : bool

Property populate_guids is of type bool.

property record_filter : RecordFilter

Property record_filter is of type RecordFilter.

property restrict_to_tables : list[PartialTableReference]

Property restrict_to_tables is a list of PartialTableReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property search_filter : int

Property search_filter is of type int. See GRANTA_Constants for supported values.
  • Return type: int

property search_mode : int

Property search_mode is of type int. See GRANTA_Constants for supported values.
  • Return type: int

property search_value : str

Property search_value is of type str.
  • Return type: str

SimpleTextSearchResponse

class SimpleTextSearchResponse(c_obj)

Bases: Response The output to the simple_text_search operation. Contains a list of records returned by the search and a ServiceLayerResponse object.
  • Parameters: c_obj (ctypes._Pointer) – Pointer to a SimpleTextSearchResponse object.

add_search_result(_searchResult)

Appends _searchResult to searchResults property on SimpleTextSearchResponse C-object.

property search_results : list[SearchResult]

Property search_results is a list of SearchResult objects.

WARNING

Do not attempt to edit or append to the returned value.

SourceRecord

class SourceRecord(record=None, record_link_groups=None, _is_owner=True)

Bases: object A type that contains a record reference and associated record link groups.

property record : RecordReference

Property record is of type RecordReference. Property record_link_groups is of type LinkedRecordsDataType.

SourceUnitConversionSet

class SourceUnitConversionSet(conversions=None, source_symbol=None, _is_owner=True)

Bases: object All the unit conversions available for a specified unit.

property conversions : list[UnitConversionTarget]

Property conversions is a list of UnitConversionTarget objects.

WARNING

Do not attempt to edit or append to the returned value.

property source_symbol : str

Property source_symbol is of type str.
  • Return type: str

SpecificUnitConversionContext

class SpecificUnitConversionContext(absolute_units=None, currency=None, unit_symbol=None, _is_owner=True)

Bases: object Type defining how values with convertible units should be represented.
  • Parameters:
    • absolute_units (bool)
    • currency (str)
    • unit_symbol (str)

property absolute_units : bool

Property absolute_units is of type bool.

property currency : str

Property currency is of type str.
  • Return type: str

property unit_symbol : str

Property unit_symbol is of type str.
  • Return type: str

SubsetDetail

class SubsetDetail(name=None, subset=None, _is_owner=True)

Bases: object Detailed meta-information about a subset in a Granta MI database.

property name : str

Property name is of type str.
  • Return type: str

property subset : SubsetReference

Property subset is of type SubsetReference.

SubsetReference

class SubsetReference(db_key=None, name=None, partial_table_reference=None, subset_identity=None, _is_owner=True)

Bases: object A type that identifies a particular subset in a Granta MI database. This may be done by specifying the identity of the subset, or by specifying a name that will match (only) the subset along with the table to which the subset belongs.

property db_key : str

Property db_key is of type str.
  • Return type: str

property name : str

Property name is of type str.
  • Return type: str

property partial_table_reference : PartialTableReference

Property partial_table_reference is of type PartialTableReference. When used for input, this only needs to be specified if you are specifying a name rather than an id.

property subset_identity : int

Property subset_identity is of type int.
  • Return type: int

SubsetsDataType

class SubsetsDataType(data_version_no=None, import_node_name=None, named_subsets=None, node_name=None, type_string=None, _is_owner=True)

Bases: IDataValue Contains a list of subsets. Contains a list of subsets (returned by DataExport for the pseudo attribute for Subsets).
  • Parameters:
    • data_version_no (int)
    • import_node_name (str)
    • named_subsets (list of NamedSubset)
    • node_name (str)
    • type_string (str)

property data_version_no : int

Property data_version_no is of type int.
  • Return type: int

property import_node_name : str

Property import_node_name is of type str.
  • Return type: str

property named_subsets : list[NamedSubset]

Property named_subsets is a list of NamedSubset objects.

WARNING

Do not attempt to edit or append to the returned value.

property node_name : str

Property node_name is of type str.
  • Return type: str

property type_string : str

Property type_string is of type str.
  • Return type: str

TableDetail

class TableDetail(attribute_references=None, default_layout=None, default_subset=None, standard_attribute_references=None, table_filters=None, table_reference=None, _is_owner=True)

Bases: object Detailed meta-information about a table in a Granta MI database.

add_attribute_references(_attributeReference)

Appends _attributeReference to attributeReferences property on TableDetail C-object.

property attribute_references : list[AttributeReference]

Property attribute_references is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property default_layout : NamedLayout

Property default_layout is of type NamedLayout.

property default_subset : SubsetDetail

Property default_subset is of type SubsetDetail.

property standard_attribute_references : list[AttributeReference]

Property standard_attribute_references is a list of AttributeReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property table_filters : list[int]

Property table_filters is a list of int objects. See GRANTA_Constants for supported values.

WARNING

Do not attempt to edit or append to the returned value.

property table_reference : TableReference

Property table_reference is of type TableReference.

TableReference

class TableReference(db_key=None, guid=None, id_=None, name=None, _is_owner=True)

Bases: object A type that allows identification of a particular table in a particular Granta MI database. The db_key is required in addition to at least one of either: id, guid, or name.

property db_key : str

Property db_key is of type str.
  • Return type: str

property guid : str

Property guid is of type str.
  • Return type: str

property id_ : int

Property id_ is of type int.
  • Return type: int

property name : str

Property name is of type str.
  • Return type: str

TabularColumnDetail

class TabularColumnDetail(data_type=None, database_unit=None, discrete_values=None, name=None, revision_info=None, type_=None, identity=None, _is_owner=True)

Bases: object Describes a Tabular Column, defined in a Tabular Attribute. This details how the schema describes the Column, and does not provide information about the contents of the Column in any particular Datum.

property data_type : str

Property data_type is of type str.
  • Return type: str

property database_unit : str

Property database_unit is of type str.
  • Return type: str

property discrete_values : list[str]

Property discrete_values is a list of str objects.

WARNING

Do not attempt to edit or append to the returned value.

property identity : int

Property identity is of type int.
  • Return type: int

property name : str

Property name is of type str.
  • Return type: str

property revision_info : RevisionInfo

Property revision_info is of type RevisionInfo.

property type_ : int

Property type_ is of type int.
  • Return type: int

TabularDataCell

class TabularDataCell(data=None, data_type=None, date_data_value=None, discrete_data_value=None, file_data_value=None, hyperlink_data_value=None, integer_data_value=None, list_data_value=None, logical_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, empty_data_value=None, _is_owner=True)

Bases: object A Cell within an exported item of Tabular Data. The data type property can be used to determine what type of data the cell contains.

property data : IDataValue

Property data is of type IDataValue.

property data_type : str

Property data_type is of type str.
  • Return type: str

property date_data_value : DateDataType

Property date_data_value is of type DateDataType.

property discrete_data_value : DiscreteDataType

Property discrete_data_value is of type DiscreteDataType.

property empty_data_value : EmptyDataType

Property empty_data_value is of type EmptyDataType.

property file_data_value : FileDataType

Property file_data_value is of type FileDataType. Property hyperlink_data_value is of type HyperlinkDataType.

property integer_data_value : IntegerDataType

Property integer_data_value is of type IntegerDataType.

property list_data_value : ListDataType

Property list_data_value is of type ListDataType.

property logical_data_value : LogicalDataType

Property logical_data_value is of type LogicalDataType.

property long_text_data_value : LongTextDataType

Property long_text_data_value is of type LongTextDataType.

property picture_data_value : PictureDataType

Property picture_data_value is of type PictureDataType.

property point_data_value : PointDataType

Property point_data_value is of type PointDataType.

property range_data_value : RangeDataType

Property range_data_value is of type RangeDataType.

property short_text_data_value : ShortTextDataType

Property short_text_data_value is of type ShortTextDataType.

TabularDataImportCell

class TabularDataImportCell(column_name=None, data_type=None, date_data_value=None, discrete_data_value=None, empty_data_value=None, file_data_value=None, hyperlink_data_value=None, integer_data_value=None, logical_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, _is_owner=True)

Bases: object A Cell within an item of Tabular Data for import. In contrast to TabularDataCell that relates to existing data, TabularDataImportCell includes the column name and that column name must be provided.

property column_name : str

Property column_name is of type str.
  • Return type: str

property data_type : str

Property data_type is of type str.
  • Return type: str

property date_data_value : DateDataType

Property date_data_value is of type DateDataType.

property discrete_data_value : DiscreteDataType

Property discrete_data_value is of type DiscreteDataType.

property empty_data_value : EmptyDataType

Property empty_data_value is of type EmptyDataType.

property file_data_value : FileDataType

Property file_data_value is of type FileDataType. Property hyperlink_data_value is of type HyperlinkDataType.

property integer_data_value : IntegerDataType

Property integer_data_value is of type IntegerDataType.

property logical_data_value : LogicalDataType

Property logical_data_value is of type LogicalDataType.

property long_text_data_value : LongTextDataType

Property long_text_data_value is of type LongTextDataType.

property picture_data_value : PictureDataType

Property picture_data_value is of type PictureDataType.

property point_data_value : PointDataType

Property point_data_value is of type PointDataType.

property range_data_value : RangeDataType

Property range_data_value is of type RangeDataType.

property short_text_data_value : ShortTextDataType

Property short_text_data_value is of type ShortTextDataType.

TabularDataImportRow

class TabularDataImportRow(cells=None, linking_value=None, _is_owner=True)

Bases: object A Row within an item of Tabular Data, this type is specifically for creating a new tabular datum, or for overwriting existing data in an import operation.

add_cell_ref(_tabularDataImportCell)

Appends _tabularDataImportCell to cells property on TabularDataImportRow C-object.

property cells : list[TabularDataImportCell]

Property cells is a list of TabularDataImportCell objects.

WARNING

Do not attempt to edit or append to the returned value.

property linking_value : str

Property linking_value is of type str.
  • Return type: str

TabularDataImportType

class TabularDataImportType(import_rows=None, is_applicable=None, update_rows=None, _is_owner=True)

Bases: IDataValue Type representing an item of Tabular Data, this type is specifically for import operations.

add_import_row_refs(_tabularDataImportRow)

Appends _tabularDataImportRow to importRows property on TabularDataImportType C-object.

add_update_row_refs(_tabularDataUpdateRow)

Appends _tabularDataUpdateRow to updateRows property on TabularDataImportType C-object.

property import_rows : list[TabularDataImportRow]

Property import_rows is a list of TabularDataImportRow objects.

WARNING

Do not attempt to edit or append to the returned value.

property is_applicable : bool

Property is_applicable is of type bool.

property update_rows : list[TabularDataUpdateRow]

Property update_rows is a list of TabularDataUpdateRow objects.

WARNING

Do not attempt to edit or append to the returned value.

TabularDataRow

class TabularDataRow(id_=None, cells=None, linked_records=None, linking_value=None, _is_owner=True)

Bases: object A Row within an item of exported Tabular Data.

property cells : list[TabularDataCell]

Property cells is a list of TabularDataCell objects.

WARNING

Do not attempt to edit or append to the returned value.

property id_ : int

Property id_ is of type int.
  • Return type: int

property linked_records : list[RecordReference]

Property linked_records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

property linking_value : str

Property linking_value is of type str.
  • Return type: str

TabularDataType

class TabularDataType(columns=None, is_applicable=None, tabular_data_rows=None, summary_columns=None, summary_row=None, _is_owner=True)

Bases: IDataValue Type representing an item of exported Tabular Data, including metadata such as Column definitions. This type is not used for importing Tabular Data; instead, use TabularDataImportType.

add_column_ref(_tabularDataTypeColumn)

Appends _tabularDataTypeColumn to columns property on TabularDataType C-object.

property columns : list[TabularDataTypeColumn]

Property columns is a list of TabularDataTypeColumn objects.

WARNING

Do not attempt to edit or append to the returned value.

property is_applicable : bool

Property is_applicable is of type bool.

property summary_columns : list[TabularDataTypeSummaryColumn]

Property summary_columns is a list of TabularDataTypeSummaryColumn objects.

WARNING

Do not attempt to edit or append to the returned value.

property summary_row : TabularDataRow

Property summary_row is of type TabularDataRow.

property tabular_data_rows : list[TabularDataRow]

Property tabular_data_rows is a list of TabularDataRow objects.

WARNING

Do not attempt to edit or append to the returned value.

TabularDataTypeColumn

class TabularDataTypeColumn(column_type=None, data_type=None, database_unit=None, identity=None, name=None, _is_owner=True)

Bases: object Information about a column in a specific tabular attribute.
  • Parameters:
    • column_type (int)
    • data_type (str)
    • database_unit (str)
    • identity (int)
    • name (str)

class ColType

Bases: object

Local = 0

TargetAttribute = 1

TargetRecord = 2

TargetTabularColumn = 3

Unavailable = 4

property column_type : int

Property column_type is of type int.
  • Return type: int

property data_type : str

Property data_type is of type str.
  • Return type: str

property database_unit : str

Property database_unit is of type str.
  • Return type: str

property identity : int

Property identity is of type int.
  • Return type: int

property name : str

Property name is of type str.
  • Return type: str

TabularDataTypeSummaryColumn

class TabularDataTypeSummaryColumn(column_type=None, data_type=None, database_unit=None, identity=None, name=None, summary_rollup_cell_type=None, summary_rollup_type=None, _is_owner=True)

Bases: object Information about a summary column in a specific tabular attribute.
  • Parameters:
    • column_type (int)
    • data_type (str)
    • database_unit (str)
    • identity (int)
    • name (str)
    • summary_rollup_cell_type (str)
    • summary_rollup_type (int)

class TabularRollupType

Bases: object

Chart = 10

CoefficientOfVariation = 9

Count = 6

CountDistinct = 7

List = 0

ListDistinct = 8

Max = 1

Mean = 3

Min = 2

StandardDeviation = 4

Sum = 5

property column_type : int

Property column_type is of type int.
  • Return type: int

property data_type : str

Property data_type is of type str.
  • Return type: str

property database_unit : str

Property database_unit is of type str.
  • Return type: str

property identity : int

Property identity is of type int.
  • Return type: int

property name : str

Property name is of type str.
  • Return type: str

property summary_rollup_cell_type : str

Property summary_rollup_cell_type is of type str.
  • Return type: str

property summary_rollup_type : int

Property summary_rollup_type is of type int.
  • Return type: int

TabularDataUpdateRow

class TabularDataUpdateRow(id_=None, cells=None, linking_value=None, update_type=None, _is_owner=True)

Bases: object A Row within an item of Tabular Data, this type is specifically for updating existing tabular data. The .update_type property must be used to specify the type of row operation, Update, Append and Delete are supported. For delete operations, only the id_ property needs to be provided. For all other operations, at least one cell must be provided.

class ChangeType

Bases: object

Append = 1

Delete = 3

InsertBefore = 0

Update = 2

add_cell_ref(_tabularDataImportCell)

Appends _tabularDataImportCell to cells property on TabularDataUpdateRow C-object.

property cells : list[TabularDataImportCell]

Property cells is a list of TabularDataImportCell objects.

WARNING

Do not attempt to edit or append to the returned value.

property id_ : int

Property id_ is of type int.
  • Return type: int

property linking_value : str

Property linking_value is of type str.
  • Return type: str

property update_type : str

Property update_type is of type str.
  • Return type: str

TabularDetail

class TabularDetail(columns=None, linked_table=None, linking_attribute=None, _is_owner=True)

Bases: object Information about a specific tabular attribute. If the tabular attribute has a linking attribute, you can specify the linking attribute and the linked table containing that attribute.

property columns : list[TabularColumnDetail]

Property columns is a list of TabularColumnDetail objects.

WARNING

Do not attempt to edit or append to the returned value.

property linked_table : TableReference

Property linked_table is of type TableReference.

property linking_attribute : NamedAttribute

Property linking_attribute is of type NamedAttribute.

TargetedSourceRecord

class TargetedSourceRecord(source_record=None, target_records=None, _is_owner=True)

Bases: object A type for unlinking records, contains a source RecordReference and an array of target RecordReference objects.

add_target_record(_recordReference)

Appends _recordReference to targetRecords property on TargetedSourceRecord C-object.

property source_record : RecordReference

Property source_record is of type RecordReference.

property target_records : list[RecordReference]

Property target_records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

TrailingZeroInformation

class TrailingZeroInformation(entered_unit=None, entered_value=None, significant_figures=None, _is_owner=True)

Bases: object Type representing the numerical value as originally entered, including original unit and significant figures.
  • Parameters:
    • entered_unit (str)
    • entered_value (str)
    • significant_figures (int)

property entered_unit : str

Property entered_unit is of type str.
  • Return type: str

property entered_value : str

Property entered_value is of type str.
  • Return type: str

property significant_figures : int

Property significant_figures is of type int.
  • Return type: int

TreeRecord

class TreeRecord(children=None, color=None, long_name=None, parent_record_history_identity=None, record_reference=None, short_name=None, type_=None, _is_owner=True)

Bases: object Type representing a single record in a Granta MI database, along with information about its position in the node-tree.

add_children(_treeRecord)

Appends _treeRecord to children property on TreeRecord C-object.

property children : list[TreeRecord]

Property children is a list of TreeRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

property color : str

Property color is of type str.
  • Return type: str

property long_name : str

Property long_name is of type str.
  • Return type: str

property parent_record_history_identity : int

Property parent_record_history_identity is of type int.
  • Return type: int

property record_reference : RecordReference

Property record_reference is of type RecordReference.

property short_name : str

Property short_name is of type str.
  • Return type: str

property type_ : str

Property type_ is of type str.
  • Return type: str

UnitConversion

class UnitConversion(factor=None, offset=None, source_symbol=None, target_symbol=None, _is_owner=True)

Bases: object Information about how to convert from a specified source unit to a target unit.
  • Parameters:

property factor : float

Property factor is of type float.

property offset : float

Property offset is of type float.

property source_symbol : str

Property source_symbol is of type str.
  • Return type: str

property target_symbol : str

Property target_symbol is of type str.
  • Return type: str

UnitConversionContext

class UnitConversionContext(absolute_units=None, currency=None, unit_system=None, _is_owner=True)

Bases: object Type defining how values with units should be represented.

property absolute_units : bool

Property absolute_units is of type bool.

property currency : str

Property currency is of type str.
  • Return type: str

property unit_system : UnitSystemDetail

Property unit_system is of type UnitSystemDetail.

UnitConversionContextConversionSet

class UnitConversionContextConversionSet(unit_conversion_context=None, unit_conversions=None, _is_owner=True)

Bases: object All the unit conversions available with a specified unit conversion context.

add_unit_conversion(_unitConversion)

Appends _unitConversion to unitConversions property on UnitConversionContextConversionSet C-object.

property unit_conversion_context : UnitConversionContext

Property unit_conversion_context is of type UnitConversionContext.

property unit_conversions : list[UnitConversion]

Property unit_conversions is a list of UnitConversion objects.

WARNING

Do not attempt to edit or append to the returned value.

UnitConversionTarget

class UnitConversionTarget(factor=None, offset=None, target_symbol=None, _is_owner=True)

Bases: object Information about how to convert to a target unit. When this type is used directly, the source unit is assumed to be already known from a different type. To obtain a value in the target units, multiply the source value by the factor, and then add the offset.

property factor : float

Property factor is of type float.

property offset : float

Property offset is of type float.

property target_symbol : str

Property target_symbol is of type str.
  • Return type: str

UnitInformation

class UnitInformation(unit_name=None, unit_symbol=None, _is_owner=True)

Bases: object A type used to give details of units for quantities. When this type is output by the Service Layer, both name and symbol will be populated. When passed as input to the Service Layer, only name or symbol need to be populated; if both are populated, only the symbol is used.
  • Parameters:
    • unit_name (str)
    • unit_symbol (str)

property unit_name : str

Property unit_name is of type str.
  • Return type: str

property unit_symbol : str

Property unit_symbol is of type str.
  • Return type: str

UnitSymbol

class UnitSymbol(has_currency=None, symbol=None, _is_owner=True)

Bases: object A unit symbol known to MI, and whether it references a currency.
  • Parameters:

property has_currency : bool

Property has_currency is of type bool.

property symbol : str

Property symbol is of type str.
  • Return type: str

UnitSystemDetail

class UnitSystemDetail(display_names=None, name=None, _is_owner=True)

Bases: object A unit system, along with any localised names, if defined.

property display_names : list[DisplayName]

Property display_names is a list of DisplayName objects.

WARNING

Do not attempt to edit or append to the returned value.

property name : str

Property name is of type str.
  • Return type: str

UnittedParameterValue

class UnittedParameterValue(parameter_with_values=None, unit_symbol=None, _is_owner=True)

Bases: object A Parameter, along with a single value of that Parameter, optionally with units.

property parameter_with_values : ParameterReferenceAndValue

Property parameter_with_values is of type ParameterReferenceAndValue.

property unit_symbol : str

Property unit_symbol is of type str.
  • Return type: str

UnlinkAllRecords

class UnlinkAllRecords(node_name=None, source_records=None, _is_owner=True)

Bases: object For each given source record, remove all links in the Record Link Group.

add_source_record(_recordReference)

Appends _recordReference to sourceRecords property on UnlinkAllRecords C-object.

property node_name : str

Property node_name is of type str.
  • Return type: str

property source_records : list[RecordReference]

Property source_records is a list of RecordReference objects.

WARNING

Do not attempt to edit or append to the returned value.

UnlinkRecords

class UnlinkRecords(node_name=None, source_records=None, _is_owner=True)

Bases: object For each given source record, remove links to the target records specified for that source record. Silently skip any links that do not exist.

add_source_record(_targetedSourceRecord)

Appends _targetedSourceRecord to sourceRecords property on UnlinkRecords C-object.

property node_name : str

Property node_name is of type str.
  • Return type: str

property source_records : list[TargetedSourceRecord]

Property source_records is a list of TargetedSourceRecord objects.

WARNING

Do not attempt to edit or append to the returned value.

XYData

class XYData(xy_points=None, xy_ranges=None, type_=None, _is_owner=True)

Bases: object A collection of y-axis values for a graph where the y-axis values are either point or range values.

add_xy_point(_XYPoint)

Appends _XYPoint to XYPoints property on XYData C-object.

add_xy_range(_XYRange)

Appends _XYRange to XYRanges property on XYData C-object.

property type_ : str

Property type_ is of type str.
  • Return type: str

property xy_points : list[XYPoint]

Property xy_points is a list of XYPoint objects.

WARNING

Do not attempt to edit or append to the returned value.

property xy_ranges : list[XYRange]

Property xy_ranges is a list of XYRange objects.

WARNING

Do not attempt to edit or append to the returned value.

XYDiscrete

class XYDiscrete(y=None, is_estimated=None, parameter_value=None, _is_owner=True)

Bases: object An x-y datum where the y-axis value is a discrete value.

property is_estimated : bool

Property is_estimated is of type bool.

property parameter_value : ParameterValue

Property parameter_value is of type ParameterValue.

property y : str

Property y is of type str.
  • Return type: str

XYDiscreteData

class XYDiscreteData(xy_discretes=None, _is_owner=True)

Bases: object A collection of y-axis values for a graph where the y-axis values are discrete values.

add_xy_discrete(_XYDiscrete)

Appends _XYDiscrete to XYDiscretes property on XYDiscreteData C-object.

property xy_discretes : list[XYDiscrete]

Property xy_discretes is a list of XYDiscrete objects.

WARNING

Do not attempt to edit or append to the returned value.

XYPoint

class XYPoint(y=None, is_estimated=None, parameter_value=None, _is_owner=True)

Bases: object An x-y datum where the y-axis value is a point.

property is_estimated : bool

Property is_estimated is of type bool.

property parameter_value : ParameterValue

Property parameter_value is of type ParameterValue.

property y : float

Property y is of type float.

XYRange

class XYRange(is_estimated=None, lower_y=None, parameter_value=None, upper_y=None, _is_owner=True)

Bases: object An x-y datum where the y-axis value is a range.

property is_estimated : bool

Property is_estimated is of type bool.

property lower_y : float

Property lower_y is of type float.

property parameter_value : ParameterValue

Property parameter_value is of type ParameterValue.

property upper_y : float

Property upper_y is of type float.