import{bb as r,b4 as i,j as e,Q as c,b6 as a,b$ as u,aa as p,ab as l,q as f,cu as d,bc as h}from"./index-CK33qGU_.js";import{u as m}from"./useDownload-hrjXceJg.js";import"./useProject-BzBQtp4J.js";import"./length-fOfC3W0h.js";const b=(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=b(o,s==null?void 0:s.projectName);return e.jsxs(c,{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(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};
