import{bC as r,bw as i,j as e,m as c,aG as a,c1 as p,af as u,ag as l,s as m,aK as h,bD as d}from"./index-dP1W1_bd.js";import{u as j}from"./useDownload-C3yCvYJa.js";import"./useProject-CXVt1xnE.js";import"./length-BzpOfCdE.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"`}),C=()=>{r(d.code);const t=i(),o=window.location.hostname,{project:s}=j(),n=f(o,s==null?void 0:s.projectName);return e.jsxs(c,{title:"Connect to Feature Store",actions:e.jsx(a,{href:p("/user_guides/integrations/python/"),external:!0,target:"_blank",p:0,intent:"inline",children:"documentation↗"}),children:[e.jsx(u,{mb:"20px",type:l.neutral,content:"To use this snippet, you have to paste an Hopsworks API key",cta:e.jsx(a,{onClick:()=>{t(m.account.api.create)},intent:"secondary",children:"Create API key"})}),e.jsx(h,{copyButton:!0,...n})]})};export{C as default};
