import{bG as r,bH as i,bx as c,at as p,j as e,f as u,a4 as l,a5 as d,aJ as a,x as h,bU as j,ci as k}from"./index-DHiyXWqE.js";const f=(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"`}),y=()=>{r(i.code);const t=c(),o=window.location.hostname,{project:s}=p(),n=f(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{y as default};
