Buckets:

download
raw
7.01 kB
import{s as fe,n as ue,o as $e}from"../chunks/scheduler.2b22cead.js";import{S as ge,i as ve,e as u,s as l,c as i,h as he,a as $,d as n,b as a,f as ce,g as o,j as B,k as ne,l as de,m as s,n as p,t as m,o as r,p as c}from"../chunks/index.1a0e8013.js";import{C as ye,H as k,E as Me}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.001a0219.js";import{C as se}from"../chunks/CodeBlock.22bd22a2.js";function Te(le){let f,Z,R,q,v,A,h,I,g,ae="<p>This page is still being filled in. Missing: guidance on which connection method to pick for each scenario, troubleshooting for timeouts / HF Space cold-starts / auth errors, and the MCP client path.</p>",F,d,ie="Learn how to connect to OpenEnv environments via different methods.",H,y,L,M,W,T,oe="Connect to environments running on remote servers or Hugging Face Spaces:",Q,b,P,w,N,J,pe="Run environments locally using Docker:",X,j,D,C,G,U,me="OpenEnv environments can be hosted on Hugging Face Spaces for easy sharing:",z,_,Y,S,O,x,re='<li><a href="auto-discovery">Auto-Discovery</a> - Discover available environments</li> <li><a href="async-sync">Async vs Sync Usage</a> - Choose the right client mode</li>',K,E,ee,V,te;return v=new ye({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),h=new k({props:{title:"Connecting to Servers",local:"connecting-to-servers",headingTag:"h1"}}),y=new k({props:{title:"Connection Methods",local:"connection-methods",headingTag:"h2"}}),M=new k({props:{title:"HTTP URL (Remote Servers)",local:"http-url-remote-servers",headingTag:"h3"}}),b=new se({props:{code:"ZnJvbSUyMG9wZW5lbnYlMjBpbXBvcnQlMjBBdXRvRW52JTBBJTBBJTIzJTIwSHVnZ2luZ0ZhY2UlMjBTcGFjZSUwQWVudiUyMCUzRCUyMEF1dG9FbnYuZnJvbV9lbnYoJTIyb3BlbmVudiUyRmVjaG9fZW52JTIyKSUwQSUwQSUyMyUyMERpcmVjdCUyMFVSTCUwQWVudiUyMCUzRCUyMEF1dG9FbnYuZnJvbV9lbnYoJTIyZWNobyUyMiUyQyUyMGJhc2VfdXJsJTNEJTIyaHR0cCUzQSUyRiUyRnlvdXItc2VydmVyJTNBODAwMCUyMik=",highlighted:`<span class="hljs-keyword">from</span> openenv <span class="hljs-keyword">import</span> AutoEnv
<span class="hljs-comment"># HuggingFace Space</span>
env = AutoEnv.from_env(<span class="hljs-string">&quot;openenv/echo_env&quot;</span>)
<span class="hljs-comment"># Direct URL</span>
env = AutoEnv.from_env(<span class="hljs-string">&quot;echo&quot;</span>, base_url=<span class="hljs-string">&quot;http://your-server:8000&quot;</span>)`,lang:"python",wrap:!1}}),w=new k({props:{title:"Docker (Local Development)",local:"docker-local-development",headingTag:"h3"}}),j=new se({props:{code:"ZnJvbSUyMG9wZW5lbnYlMjBpbXBvcnQlMjBBdXRvRW52JTBBJTBBZW52JTIwJTNEJTIwQXV0b0Vudi5mcm9tX2VudiglMEElMjAlMjAlMjAlMjAlMjJjb2RpbmclMjIlMkMlMEElMjAlMjAlMjAlMjBkb2NrZXJfaW1hZ2UlM0QlMjJjb2RpbmctZW52JTNBbGF0ZXN0JTIyJTJDJTBBJTIwJTIwJTIwJTIwd2FpdF90aW1lb3V0JTNENjAuMCUwQSk=",highlighted:`<span class="hljs-keyword">from</span> openenv <span class="hljs-keyword">import</span> AutoEnv
env = AutoEnv.from_env(
<span class="hljs-string">&quot;coding&quot;</span>,
docker_image=<span class="hljs-string">&quot;coding-env:latest&quot;</span>,
wait_timeout=<span class="hljs-number">60.0</span>
)`,lang:"python",wrap:!1}}),C=new k({props:{title:"Hugging Face Spaces",local:"hugging-face-spaces",headingTag:"h3"}}),_=new se({props:{code:"ZW52JTIwJTNEJTIwQXV0b0Vudi5mcm9tX2VudiglMjJ1c2VybmFtZSUyRm15LWVudmlyb25tZW50JTIyKQ==",highlighted:'env = AutoEnv.from_env(<span class="hljs-string">&quot;username/my-environment&quot;</span>)',lang:"python",wrap:!1}}),S=new k({props:{title:"Next Steps",local:"next-steps",headingTag:"h2"}}),E=new Me({props:{source:"https://github.com/huggingface/openenv/blob/main/docs/source/guides/connecting.md"}}),{c(){f=u("meta"),Z=l(),R=u("p"),q=l(),i(v.$$.fragment),A=l(),i(h.$$.fragment),I=l(),g=u("blockquote"),g.innerHTML=ae,F=l(),d=u("p"),d.textContent=ie,H=l(),i(y.$$.fragment),L=l(),i(M.$$.fragment),W=l(),T=u("p"),T.textContent=oe,Q=l(),i(b.$$.fragment),P=l(),i(w.$$.fragment),N=l(),J=u("p"),J.textContent=pe,X=l(),i(j.$$.fragment),D=l(),i(C.$$.fragment),G=l(),U=u("p"),U.textContent=me,z=l(),i(_.$$.fragment),Y=l(),i(S.$$.fragment),O=l(),x=u("ul"),x.innerHTML=re,K=l(),i(E.$$.fragment),ee=l(),V=u("p"),this.h()},l(e){const t=he("svelte-u9bgzb",document.head);f=$(t,"META",{name:!0,content:!0}),t.forEach(n),Z=a(e),R=$(e,"P",{}),ce(R).forEach(n),q=a(e),o(v.$$.fragment,e),A=a(e),o(h.$$.fragment,e),I=a(e),g=$(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),B(g)!=="svelte-f98umk"&&(g.innerHTML=ae),F=a(e),d=$(e,"P",{"data-svelte-h":!0}),B(d)!=="svelte-11ztc6e"&&(d.textContent=ie),H=a(e),o(y.$$.fragment,e),L=a(e),o(M.$$.fragment,e),W=a(e),T=$(e,"P",{"data-svelte-h":!0}),B(T)!=="svelte-1fa7q79"&&(T.textContent=oe),Q=a(e),o(b.$$.fragment,e),P=a(e),o(w.$$.fragment,e),N=a(e),J=$(e,"P",{"data-svelte-h":!0}),B(J)!=="svelte-rzts75"&&(J.textContent=pe),X=a(e),o(j.$$.fragment,e),D=a(e),o(C.$$.fragment,e),G=a(e),U=$(e,"P",{"data-svelte-h":!0}),B(U)!=="svelte-18cpa4q"&&(U.textContent=me),z=a(e),o(_.$$.fragment,e),Y=a(e),o(S.$$.fragment,e),O=a(e),x=$(e,"UL",{"data-svelte-h":!0}),B(x)!=="svelte-1paqni1"&&(x.innerHTML=re),K=a(e),o(E.$$.fragment,e),ee=a(e),V=$(e,"P",{}),ce(V).forEach(n),this.h()},h(){ne(f,"name","hf:doc:metadata"),ne(f,"content",be),ne(g,"class","note")},m(e,t){de(document.head,f),s(e,Z,t),s(e,R,t),s(e,q,t),p(v,e,t),s(e,A,t),p(h,e,t),s(e,I,t),s(e,g,t),s(e,F,t),s(e,d,t),s(e,H,t),p(y,e,t),s(e,L,t),p(M,e,t),s(e,W,t),s(e,T,t),s(e,Q,t),p(b,e,t),s(e,P,t),p(w,e,t),s(e,N,t),s(e,J,t),s(e,X,t),p(j,e,t),s(e,D,t),p(C,e,t),s(e,G,t),s(e,U,t),s(e,z,t),p(_,e,t),s(e,Y,t),p(S,e,t),s(e,O,t),s(e,x,t),s(e,K,t),p(E,e,t),s(e,ee,t),s(e,V,t),te=!0},p:ue,i(e){te||(m(v.$$.fragment,e),m(h.$$.fragment,e),m(y.$$.fragment,e),m(M.$$.fragment,e),m(b.$$.fragment,e),m(w.$$.fragment,e),m(j.$$.fragment,e),m(C.$$.fragment,e),m(_.$$.fragment,e),m(S.$$.fragment,e),m(E.$$.fragment,e),te=!0)},o(e){r(v.$$.fragment,e),r(h.$$.fragment,e),r(y.$$.fragment,e),r(M.$$.fragment,e),r(b.$$.fragment,e),r(w.$$.fragment,e),r(j.$$.fragment,e),r(C.$$.fragment,e),r(_.$$.fragment,e),r(S.$$.fragment,e),r(E.$$.fragment,e),te=!1},d(e){e&&(n(Z),n(R),n(q),n(A),n(I),n(g),n(F),n(d),n(H),n(L),n(W),n(T),n(Q),n(P),n(N),n(J),n(X),n(D),n(G),n(U),n(z),n(Y),n(O),n(x),n(K),n(ee),n(V)),n(f),c(v,e),c(h,e),c(y,e),c(M,e),c(b,e),c(w,e),c(j,e),c(C,e),c(_,e),c(S,e),c(E,e)}}}const be='{"title":"Connecting to Servers","local":"connecting-to-servers","sections":[{"title":"Connection Methods","local":"connection-methods","sections":[{"title":"HTTP URL (Remote Servers)","local":"http-url-remote-servers","sections":[],"depth":3},{"title":"Docker (Local Development)","local":"docker-local-development","sections":[],"depth":3},{"title":"Hugging Face Spaces","local":"hugging-face-spaces","sections":[],"depth":3}],"depth":2},{"title":"Next Steps","local":"next-steps","sections":[],"depth":2}],"depth":1}';function we(le){return $e(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _e extends ge{constructor(f){super(),ve(this,f,we,Te,fe,{})}}export{_e as component};

Xet Storage Details

Size:
7.01 kB
·
Xet hash:
7af4461a475b0195d7a8912c230fe05a56efb12fc0bc7dafd6c5d45f40e817ba

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.