import{aY as r,aS as i,j as e,E as c,aU as s,cj as u,a3 as p,a4 as l,b as f,cR as h,aZ as d}from"./index-ea7817a2.js";import{u as m}from"./useCurrentProject-0132f110.js";import"./useProject-77619fff.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"`}),x=()=>{r(d.code);const t=i(),o=window.location.hostname,{project:a}=m(),n=j(o,a==null?void 0:a.projectName);return e.jsxs(c,{title:"Connect to Feature Store",actions:e.jsx(s,{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(s,{onClick:()=>{t(f.account.api.create)},intent:"secondary",children:"Create API key"})}),e.jsx(h,{copyButton:!0,...n})]})};export{x as default};
