I want to use the Hopsworks API key as an environment variable that will be used in a streamlit app.
What method of Hopsworks python library can take the env variable as an input and then connect to the feature store?
Hi @rukshar69!
Simply set the environment variable HOPSWORKS_API_KEY
with the Hopsworks API key that you have.
Then you can run the following to connect to your feature store:
import hopsworks
project = hopsworks.login()
fs = project.get_feature_store()
For more docs on this you can read: Login - Hopsworks Documentation
Enjoy!