Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README package versions and example code #252

Merged
merged 3 commits into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,20 @@ Granta MI releases and versions of the Python package.

| Granta MI | ansys-grantami-serverapi-openapi |
|-----------|----------------------------------|
| 2025R1 | v4.0.0 |
| 2024R2 | v3.0.0 |
| 2024R1 | v2.0.0 |
| 2023R2 | v1.0.0 |

Alternatively, use the PyGranta meta-package with a requirement specifier. The following code will install all
PyGranta pacakges compatible with Granta MI 2023 R2, including `ansys-grantami-serverapi-openapi` v1.0.0:
PyGranta packages compatible with Granta MI 2024 R2, including `ansys-grantami-serverapi-openapi` v3.0.0:

```console
pip install pygranta==2023.2.0
pip install pygranta==2024.2.0
```

See [PyGranta Package versions](https://grantami.docs.pyansys.com/version/dev/package_versions.html) for a detailed list
of packages included in each meta-package release.

### Installation

Expand Down Expand Up @@ -144,6 +147,6 @@ if __name__ == '__main__':
api_client = Connection(api_url=URL).with_autologon().connect()

schema_api = api.SchemaApi(api_client)
server_version = schema_api.v1alpha_schema_mi_version_get()
server_version = schema_api.get_version()
print(server_version.version)
```