import{S as ue,i as pe,s as ve,e as s,k as $,w as ne,t as f,M as me,c as o,d as t,m as E,a as i,x as ie,h as u,b as r,G as a,g as l,y as le,L as be,q as he,o as ce,B as de,v as _e}from"../chunks/vendor-hf-doc-builder.js";import{I as fe}from"../chunks/IconCopyLink-hf-doc-builder.js";function ye(V){let h,S,c,p,A,_,C,H,F,I,v,W,y,G,J,D,d,m,k,g,O,x,U,T,b,j,w,z,K,q,P,Q,N;return _=new fe({}),g=new fe({}),{c(){h=s("meta"),S=$(),c=s("h1"),p=s("a"),A=s("span"),ne(_.$$.fragment),C=$(),H=s("span"),F=f("Datasets server"),I=$(),v=s("p"),W=f("The \u{1F917} Datasets server gives access to the contents, metadata and basic statistics of the "),y=s("a"),G=f("Hugging Face Hub datasets"),J=f(" via a REST API."),D=$(),d=s("h2"),m=s("a"),k=s("span"),ne(g.$$.fragment),O=$(),x=s("span"),U=f("History"),T=$(),b=s("p"),j=f("The API has originally been developed to provide data to the "),w=s("a"),z=f("Dataset viewer"),K=f(" on the Hub. Because of the large volume of data, the information about the datasets cannot be extracted on-the-fly, and must be preprocessed and stored beforehand in order to later be accessed quickly on the Hub."),q=$(),P=s("p"),Q=f("We decided to make the API public to provide programmatic access to the information about datasets."),this.h()},l(e){const n=me('[data-svelte="svelte-1phssyn"]',document.head);h=o(n,"META",{name:!0,content:!0}),n.forEach(t),S=E(e),c=o(e,"H1",{class:!0});var R=i(c);p=o(R,"A",{id:!0,class:!0,href:!0});var X=i(p);A=o(X,"SPAN",{});var Y=i(A);ie(_.$$.fragment,Y),Y.forEach(t),X.forEach(t),C=E(R),H=o(R,"SPAN",{});var Z=i(H);F=u(Z,"Datasets server"),Z.forEach(t),R.forEach(t),I=E(e),v=o(e,"P",{});var B=i(v);W=u(B,"The \u{1F917} Datasets server gives access to the contents, metadata and basic statistics of the "),y=o(B,"A",{href:!0,rel:!0});var ee=i(y);G=u(ee,"Hugging Face Hub datasets"),ee.forEach(t),J=u(B," via a REST API."),B.forEach(t),D=E(e),d=o(e,"H2",{class:!0});var L=i(d);m=o(L,"A",{id:!0,class:!0,href:!0});var te=i(m);k=o(te,"SPAN",{});var ae=i(k);ie(g.$$.fragment,ae),ae.forEach(t),te.forEach(t),O=E(L),x=o(L,"SPAN",{});var se=i(x);U=u(se,"History"),se.forEach(t),L.forEach(t),T=E(e),b=o(e,"P",{});var M=i(b);j=u(M,"The API has originally been developed to provide data to the "),w=o(M,"A",{href:!0,rel:!0});var oe=i(w);z=u(oe,"Dataset viewer"),oe.forEach(t),K=u(M," on the Hub. Because of the large volume of data, the information about the datasets cannot be extracted on-the-fly, and must be preprocessed and stored beforehand in order to later be accessed quickly on the Hub."),M.forEach(t),q=E(e),P=o(e,"P",{});var re=i(P);Q=u(re,"We decided to make the API public to provide programmatic access to the information about datasets."),re.forEach(t),this.h()},h(){r(h,"name","hf:doc:metadata"),r(h,"content",JSON.stringify(ge)),r(p,"id","datasets-server"),r(p,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(p,"href","#datasets-server"),r(c,"class","relative group"),r(y,"href","https://huggingface.co/datasets"),r(y,"rel","nofollow"),r(m,"id","history"),r(m,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(m,"href","#history"),r(d,"class","relative group"),r(w,"href","https://huggingface.co/docs/hub/datasets-viewer"),r(w,"rel","nofollow")},m(e,n){a(document.head,h),l(e,S,n),l(e,c,n),a(c,p),a(p,A),le(_,A,null),a(c,C),a(c,H),a(H,F),l(e,I,n),l(e,v,n),a(v,W),a(v,y),a(y,G),a(v,J),l(e,D,n),l(e,d,n),a(d,m),a(m,k),le(g,k,null),a(d,O),a(d,x),a(x,U),l(e,T,n),l(e,b,n),a(b,j),a(b,w),a(w,z),a(b,K),l(e,q,n),l(e,P,n),a(P,Q),N=!0},p:be,i(e){N||(he(_.$$.fragment,e),he(g.$$.fragment,e),N=!0)},o(e){ce(_.$$.fragment,e),ce(g.$$.fragment,e),N=!1},d(e){t(h),e&&t(S),e&&t(c),de(_),e&&t(I),e&&t(v),e&&t(D),e&&t(d),de(g),e&&t(T),e&&t(b),e&&t(q),e&&t(P)}}}const ge={local:"datasets-server",sections:[{local:"history",title:"History"}],title:"Datasets server"};function we(V){return _e(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pe extends ue{constructor(h){super();pe(this,h,we,ye,ve,{})}}export{Pe as default,ge as metadata};
