import{bx as r,by as i,bo as c,aw as p,j as e,W as u,a3 as l,a5 as y,aJ as a,t as d,cN as h,c5 as j}from"./index-_eM6l4Nf.js";const k=(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=k(o,s==null?void 0:s.projectName);return e.jsxs(u,{title:"Connect to Feature Store",actions:e.jsx(a,{href:j("/user_guides/integrations/python/"),external:!0,target:"_blank",p:0,intent:"inline",children:"documentation↗"}),children:[e.jsx(l,{mb:"20px",type:y.neutral,content:"To use this snippet, you have to paste an Hopsworks API key",cta:e.jsx(a,{onClick:()=>{t(d.account.api.create)},intent:"secondary",children:"Create API key"})}),e.jsx(h,{copyButton:!0,...n})]})};export{x as default};
