import{bw as r,bx as i,bo as c,aw as p,j as e,b as u,a3 as l,a5 as d,b1 as a,q as h,cM as j,c4 as k}from"./index-46ma1THH.js";const y=(t,o)=>({title:"Configuration",language:"python",content:`import hopsworks 
project = hopsworks.login(
    host="${t}",                            # DNS of your Hopsworks instance
    project="${o}",                      # Name of your Hopsworks project
    api_key_value="PASTE YOUR API KEY HERE"    # Hopsworks API key value 
)
fs = project.get_feature_store()               # Get the project's default feature store"`}),x=()=>{r(i.code);const t=c(),o=window.location.hostname,{project:s}=p(),n=y(o,s==null?void 0:s.projectName);return e.jsxs(u,{title:"Connect to Feature Store",actions:e.jsx(a,{href:k("/user_guides/integrations/python/"),external:!0,target:"_blank",p:0,intent:"inline",children:"documentation↗"}),children:[e.jsx(l,{mb:"20px",type:d.neutral,content:"To use this snippet, you have to paste an Hopsworks API key",cta:e.jsx(a,{onClick:()=>{t(h.account.api.create)},intent:"secondary",children:"Create API key"})}),e.jsx(j,{copyButton:!0,...n})]})};export{x as default};
