@@ -52,12 +52,12 @@ Once the tag is pushed to GitHub, a workflow will build and publish the release.
52
52
As stated above, direct use of this package is unsupported. The recommended approach is to use the idiomatic
53
53
libraries written for specific API areas.
54
54
55
- We do understand that internal or external users might want to experiment with Granta MI Server API functionality that
55
+ We do understand that internal or external users might want to experiment with Granta MI Server API functionality that
56
56
is not exposed via an idiomatic python library. To that extent, the following sections demonstrate how to install and
57
57
get started with the library.
58
58
59
59
### Requirements
60
- The ` ansys-grantami-serverapi-openapi ` package requires Granta MI. The following table details compatibility between
60
+ The ` ansys-grantami-serverapi-openapi ` package requires Granta MI. The following table details compatibility between
61
61
Granta MI releases and versions of the Python package.
62
62
63
63
| Granta MI | ansys-grantami-serverapi-openapi |
@@ -69,8 +69,8 @@ Granta MI releases and versions of the Python package.
69
69
70
70
### Installation
71
71
72
- During active development phases of Granta MI, this repository is kept up to date with new versions of the API
73
- documentation. To use the most up-to-date version of this package in another project, add a dependency on the
72
+ During active development phases of Granta MI, this repository is kept up to date with new versions of the API
73
+ documentation. To use the most up-to-date version of this package in another project, add a dependency on the
74
74
repository's main branch, e.g. with poetry:
75
75
76
76
``` console
@@ -84,7 +84,7 @@ Or with pip:
84
84
```
85
85
86
86
### Minimal setup
87
- The following code snippet demonstrates how to perform the minimal setup required to interact with the API using this
87
+ The following code snippet demonstrates how to perform the minimal setup required to interact with the API using this
88
88
library.
89
89
90
90
``` python
@@ -130,11 +130,11 @@ class Connection(ApiClientFactory):
130
130
131
131
if __name__ == ' __main__' :
132
132
from ansys.grantami.serverapi_openapi import api
133
-
133
+
134
134
# Update URL and connection method for your system
135
135
URL = " http://my_server_name/mi_servicelayer"
136
136
api_client = Connection(api_url = URL ).with_autologon().connect()
137
-
137
+
138
138
schema_api = api.SchemaApi(api_client)
139
139
server_version = schema_api.v1alpha_schema_mi_version_get()
140
140
print (server_version.version)
0 commit comments