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

Get mindsdb server version #85

Closed
paxcema opened this issue Oct 29, 2023 · 3 comments · Fixed by #89
Closed

Get mindsdb server version #85

paxcema opened this issue Oct 29, 2023 · 3 comments · Fixed by #89
Assignees
Labels
enhancement New feature or request

Comments

@paxcema
Copy link
Contributor

paxcema commented Oct 29, 2023

Is your feature request related to a problem? Please describe.
It should be possible to get the MindsDB server version through our SDKs.

Describe the solution you'd like
For example:

import mindsdb_sdk
server = mindsdb_sdk.connect('http://127.0.0.1:47334')
server.version()  # should return a version string, e.g. '23.10.1.0' 

This will be useful for our benchmarking suite.

@tomhuds tomhuds added the enhancement New feature or request label Oct 31, 2023
ea-rus added a commit that referenced this issue Dec 5, 2023
@ea-rus ea-rus mentioned this issue Dec 5, 2023
@ea-rus
Copy link
Contributor

ea-rus commented Dec 5, 2023

Would be this option ok?

print(server.status()['mindsdb_version'])

It uses this '/api/status' method and works for local version
Cloud doesn't return version at the moment
https://cloud.mindsdb.com/api/status

@paxcema
Copy link
Contributor Author

paxcema commented Dec 5, 2023

Oh, nice! Thanks, this is useful. Perhaps it should be documented?

@ea-rus
Copy link
Contributor

ea-rus commented Jan 15, 2024

Added to docs
https://mindsdb.github.io/mindsdb_python_sdk/server.html#mindsdb_sdk.server.Server.status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants