diff --git a/README.md b/README.md index d5a297f58..4c0a980a0 100644 --- a/README.md +++ b/README.md @@ -193,17 +193,12 @@ Documentation is available at [Hopsworks Documentation](https://docs.hopsworks.a For general questions about the usage of Hopsworks and the Feature Store please open a topic on [Hopsworks Community](https://community.hopsworks.ai/). -Please report any issue using [Github issue tracking](https://github.com/logicalclocks/hopsworks-api/issues). - -### Related to Feautre Store API - -Please attach the client environment from the output below to your issue, if it is related to Feature Store API: +Please report any issue using [Github issue tracking](https://github.com/logicalclocks/hopsworks-api/issues) and attach the client environment from the output below to your issue: ```python import hopsworks -import hsfs -hopsworks.login().get_feature_store() -print(hsfs.get_env()) +hopsworks.login() +print(hopsworks.get_sdk_info()) ``` ## Contributing diff --git a/python/hopsworks/__init__.py b/python/hopsworks/__init__.py index e9599ab10..eb2b0c090 100644 --- a/python/hopsworks/__init__.py +++ b/python/hopsworks/__init__.py @@ -318,7 +318,7 @@ def _get_cached_api_key_path(): def _prompt_project(valid_connection, project, is_app): if project is None: - saas_projects = valid_connection.get_projects() + saas_projects = valid_connection._project_api._get_projects() if len(saas_projects) == 0: if is_app: raise ProjectException("Could not find any project") @@ -355,7 +355,7 @@ def _prompt_project(valid_connection, project, is_app): ) else: try: - return valid_connection.get_project(project) + return valid_connection._project_api._get_project(project) except RestAPIError as x: raise ProjectException("Could not find project {}".format(project)) from x @@ -481,3 +481,7 @@ def _set_active_project(project): def disable_usage_logging(): usage.disable() + + +def get_sdk_info(): + return usage.get_env()