import{aX as r,aR as i,j as e,K as c,aT as a,ci as u,a3 as p,a4 as l,e as f,cO as d,aY as h}from"./index-d6499a22.js";import{u as m}from"./useCurrentProject-b23444be.js";import"./useProject-0d0fdeb3.js";const j=(t,o)=>({title:"Configuration",language:"python",content:`import hsfs
conn = hsfs.connection(
    host="${t}",                                # DNS of your Feature Store instance
    project="${o}",                      # Name of your Hopsworks Feature Store project
    hostname_verification=False,                     # Disable for self-signed certificates
    api_key_value="PASTE YOUR API KEY HERE"          # Feature store API key value 
)
fs = conn.get_feature_store()           # Get the project's default feature store"`}),k=()=>{r(h.code);const t=i(),o=window.location.hostname,{project:s}=m(),n=j(o,s==null?void 0:s.projectName);return e.jsxs(c,{title:"Connect to Feature Store",actions:e.jsx(a,{href:"https://docs.hopsworks.ai/".concat(u.docsVersion,"/user_guides/integrations/python/"),external:!0,target:"_blank",p:0,intent:"inline",children:"documentation↗"}),children:[e.jsx(p,{mb:"20px",type:l.neutral,content:"To use this snippet, you have to paste an Hopsworks API key",cta:e.jsx(a,{onClick:()=>{t(f.account.api.create)},intent:"secondary",children:"Create API key"})}),e.jsx(d,{copyButton:!0,...n})]})};export{k as default};
