import{bx as r,bp as i,ay as c,j as e,y as p,b4 as a,c5 as u,ah as l,ai as y,s as h,c_ as d,by as j}from"./index-C1DmWO_C.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"`}),m=()=>{r(j.code);const t=i(),o=window.location.hostname,{project:s}=c(),n=k(o,s==null?void 0:s.projectName);return e.jsxs(p,{title:"Connect to Feature Store",actions:e.jsx(a,{href:u("/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(h.account.api.create)},intent:"secondary",children:"Create API key"})}),e.jsx(d,{copyButton:!0,...n})]})};export{m as default};
