Commits

Anonymous committed 099cdaf

regen

Comments (0)

Files changed (7)

docs/_build/doctrees/environment.pickle

Binary file modified.

docs/_build/doctrees/resource.doctree

Binary file modified.

docs/_build/html/genindex.html

 <dt><a href="resource.html#restclient.rest.Resource">Resource (class in restclient.rest)</a></dt>
 <dt><a href="resource.html#simplecouchdb.resource.ResourceNotFound">ResourceNotFound</a></dt></dl></td><td width="33%" valign="top"><dl>
 <dt><a href="resource.html#restclient.rest.RestClient">RestClient (class in restclient.rest)</a></dt>
-<dt><a href="resource.html#module-restclient">restclient (module)</a>, <a href="httpclient.html#module-restclient">[1]</a></dt>
+<dt><a href="httpclient.html#module-restclient">restclient (module)</a>, <a href="resource.html#module-restclient">[1]</a></dt>
 </dl></td></tr></table>
 
 <h2 id="S">S</h2>

docs/_build/html/modindex.html

    <tr class="cap"><td></td><td><a name="cap-R"><strong>R</strong></a></td><td></td></tr><tr>
      <td></td>
      <td>
-     <a href="httpclient.html#module-restclient"><tt class="xref">restclient</tt></a></td><td>
+     <a href="resource.html#module-restclient"><tt class="xref">restclient</tt></a></td><td>
      <em></em></td></tr>
    </table>
 

docs/_build/html/objects.inv

 # Sphinx inventory version 1
 # Project: python-restclient
 # Version: 0.2
-restclient mod httpclient.html
+restclient mod resource.html
 restclient.rest.Resource.put method resource.html
 restclient.rest.Resource.get method resource.html
 restclient.http.HTTPClient class httpclient.html

docs/_build/html/resource.html

     <link rel="index" title="Index" href="genindex.html" />
     <link rel="search" title="Search" href="search.html" />
     <link rel="top" title="python-restclient v0.2 documentation" href="index.html" />
+    <link rel="next" title="HTTP Clients" href="httpclient.html" />
     <link rel="prev" title="Getting Started" href="gettingstarted.html" /> 
   </head>
   <body>
           <a href="modindex.html" title="Global Module Index"
              accesskey="M">modules</a> |</li>
         <li class="right" >
+          <a href="httpclient.html" title="HTTP Clients"
+             accesskey="N">next</a> |</li>
+        <li class="right" >
           <a href="gettingstarted.html" title="Getting Started"
              accesskey="P">previous</a> |</li>
         <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
 <dl class="class">
 <dt id="restclient.rest.RestClient">
 <!--[restclient.rest.RestClient]-->class <tt class="descclassname">restclient.rest.</tt><tt class="descname">RestClient</tt><big>(</big><em>httpclient=None</em><big>)</big><a class="headerlink" href="#restclient.rest.RestClient" title="Permalink to this definition">¶</a></dt>
-<dd><p>Basic rest client
-&gt;&gt;&gt; res = RestClient()
-&gt;&gt;&gt; xml = res.get(&#8216;<a class="reference" href="http://pypaste.com/about">http://pypaste.com/about</a>&#8216;)
-&gt;&gt;&gt; json = res.get(&#8216;<a class="reference" href="http://pypaste.com/3XDqQ8G83LlzVWgCeWdwru">http://pypaste.com/3XDqQ8G83LlzVWgCeWdwru</a>&#8216;, headers={&#8216;accept&#8217;: &#8216;application/json&#8217;})
-&gt;&gt;&gt; json
-&#8216;{&#8220;snippet&#8221;: &#8220;testing API.&#8221;, &#8220;title&#8221;: &#8220;&#8221;, &#8220;id&#8221;: &#8220;3XDqQ8G83LlzVWgCeWdwru&#8221;, &#8220;language&#8221;: &#8220;text&#8221;, &#8220;revision&#8221;: &#8220;363934613139&#8221;}&#8217;</p>
+<dd><p>Basic rest client</p>
+<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">res</span> <span class="o">=</span> <span class="n">RestClient</span><span class="p">()</span>
+<span class="gp">&gt;&gt;&gt; </span><span class="n">xml</span> <span class="o">=</span> <span class="n">res</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">&#39;http://pypaste.com/about&#39;</span><span class="p">)</span>
+<span class="gp">&gt;&gt;&gt; </span><span class="n">json</span> <span class="o">=</span> <span class="n">res</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">&#39;http://pypaste.com/3XDqQ8G83LlzVWgCeWdwru&#39;</span><span class="p">,</span> <span class="n">headers</span><span class="o">=</span><span class="p">{</span><span class="s">&#39;accept&#39;</span><span class="p">:</span> <span class="s">&#39;application/json&#39;</span><span class="p">})</span>
+<span class="gp">&gt;&gt;&gt; </span><span class="n">json</span>
+<span class="go">&#39;{&quot;snippet&quot;: &quot;testing API.&quot;, &quot;title&quot;: &quot;&quot;, &quot;id&quot;: &quot;3XDqQ8G83LlzVWgCeWdwru&quot;, &quot;language&quot;: &quot;text&quot;, &quot;revision&quot;: &quot;363934613139&quot;}&#39;</span>
+</pre></div>
+</div>
 <p>RestClient represent an HTTP client.</p>
 <p><strong>Properties</strong></p>
 <dl class="attribute">
 
             <h4>Previous topic</h4>
             <p class="topless"><a href="gettingstarted.html" title="previous chapter">Getting Started</a></p>
+            <h4>Next topic</h4>
+            <p class="topless"><a href="httpclient.html" title="next chapter">HTTP Clients</a></p>
             <h3>This Page</h3>
             <ul class="this-page-menu">
               <li><a href="_sources/resource.txt">Show Source</a></li>
           <a href="modindex.html" title="Global Module Index"
              accesskey="M">modules</a> |</li>
         <li class="right" >
+          <a href="httpclient.html" title="HTTP Clients"
+             accesskey="N">next</a> |</li>
+        <li class="right" >
           <a href="gettingstarted.html" title="Getting Started"
              accesskey="P">previous</a> |</li>
         <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 

docs/_build/html/searchindex.js

-Search.setIndex({desctypes:{"0":"method","1":"class","2":"function","3":"attribute","4":"exception"},terms:{urllib2httpclien:1,all:2,code:[0,2],text:2,over:2,rest:[0,2,4],veri:1,actuib:1,via:3,through:[0,4],follow:4,mainli:0,yet:0,languag:2,paramet:[2,1],xml:2,absolut:2,style:4,specif:1,depend:[2,1],expos:0,wed:4,sinatra:4,except:[4,2],param:[2,1],should:[4,1],add:[2,1],tracker:4,dict:[2,1],master:4,"__call__":2,"case":1,httplib2httpclient:[2,1],applic:[0,2],sourc:[4,3],"return":1,string:2,get:[0,1,2,3,4],python:[0,1,3,4],prefer:1,auth:1,have:[0,1],know:4,"new":2,report:4,brows:4,requir:[4,3],restclient:[0,1,2,3,4],httpbasicauthhandl:1,like:4,getdefaulthttpcli:1,benoitc:3,authent:2,patch:1,provid:2,api:[0,2],common:2,timeout:1,contain:4,found:2,page:[0,4],mean:1,"3xdqq8g83llzvwgcewdwru":2,pthon:3,set:[2,1],repres:[2,1],some:1,direct:4,past:0,see:[2,1],curlhttpclient:1,toctre:4,fail:2,resourc:[0,1,2,4],server:2,librari:0,index:4,statu:2,simplecouchdb:[3,2],make_request:0,someth:1,pypast:2,urllib:1,your:[3,1,2,4],access:[2,1],delet:[4,2,1],version:3,adapt:4,"import":[0,2,1],setdefaulthttpcli:1,get_status_cod:2,method:[2,1],refer:4,altern:3,full:2,run:1,proxi:[2,1],kei:0,engura:3,usag:0,fisrt:4,symlink:3,bodi:[2,1],step:4,base:[2,1],here:1,repositori:3,releas:3,org:3,post:[4,2,1],sphinx:4,optionn:[2,1],about:[4,2],last:[3,2],friendpast:[0,2],could:[3,2],manag:1,microframework:4,instanc:[2,1],constructor:1,action:4,mani:1,implement:1,"5roqe9xtz7lcclgzoqs4ip":[0,2],com:[0,2],oper:1,own:2,httppasswordmgrwithdefaultrealm:1,additionn:2,instanti:2,pythonpath:3,modul:[0,1,2,4],inspir:4,powerful:1,easy_instal:3,put:[4,2,1],resr2:2,fast:1,path:[3,2],instal:[0,2,3,4],payload:2,avail:3,alternatli:3,from:[0,2,3,1],wai:1,support:[0,1,4],been:1,mercuri:3,start:[0,4],json:[0,2],handler:1,interfac:[2,1],includ:[2,1],basic:[2,1],call:[0,1,4],httpclient:[2,1],"function":[4,1],head:[4,2,1],sudo:3,option:2,auth_handl:1,copi:3,setuptool:3,search:4,specifi:4,site:3,least:4,accept:[0,2],requestfail:2,cheeseshop:3,recommand:1,bug:4,serv:2,none:[2,1],pycurl:[2,1],"default":[2,1],setup:3,properti:2,dev:3,url:1,can:[3,1,2,4],str:[2,1],dec:4,root:4,update_uri:2,createhttpcli:1,featur:[0,4],quickstart:4,creat:[4,1],request:[0,2,1],pass:2,anywher:3,indic:4,edfault:2,packag:3,file:4,tabl:4,need:[3,1,2,4],revis:2,curl:1,"__init__":1,alwai:3,develop:[4,3],welcom:[4,1],want:[0,2,1],perform:[0,1,4],titl:2,make:[3,2],add_password:1,header:[0,2,1],camp:4,snippet:2,also:[3,2,1],when:[2,1],client:[0,1,2,4],read:0,resourcenotfound:2,which:1,subdirectori:3,test:[2,1],command:3,you:[0,1,2,3,4],document:[0,4],simpl:4,tutorial:0,complet:4,http:[0,1,2,3,4],though:1,our:3,cach:1,clone:[3,2],object:[2,1],urllib2:[2,1],password_mgr:1,most:3,rais:2,authentif:[2,1],respons:1,"class":[4,2,1],urllib2httpcli:1,recent:3,bitbucket:[4,3],don:1,ani:[2,1],operform:1,directori:3,doc:0,later:3,descript:[0,2],uri:2,depth:0,exampl:[0,2,1],add_credenti:1,thi:[0,1,2,3,4],choos:1,everyth:4,parameterss:2,self:1,httplib2:[2,1]},titles:["Getting Started","HTTP Clients","Resource","Installation","Welcome to python-restclient&#8217;s documentation!"],modules:{restclient:1},descrefs:{"restclient.RestClient":{httpclient:[2,3]},"restclient.rest.RestClient.Resource":{put:[2,0],head:[2,0],"delete":[2,0],post:[2,0],get:[2,0]},"simplecouchdb.resource":{RequestFailed:[2,4],ResourceNotFound:[2,4]},"restclient.http":{createHTTPClient:[1,2],setDefaultHTTPClient:[1,2],HTTPLib2HTTPClient:[1,1],CurlHTTPClient:[1,1],Urllib2HTTPClient:[1,1],getDefaultHTTPClient:[1,2],HTTPClient:[1,1]},"restclient.Resource":{uri:[2,3],httpclient:[2,3]},"restclient.rest.Resource":{head:[2,0],get:[2,0],clone:[2,0],"__call__":[2,0],put:[2,0],post:[2,0],get_status_code:[2,0],update_uri:[2,0],"delete":[2,0]},"restclient.http.Urllib2HTTPClient":{"__init__":[1,0]},"restclient.http.HTTPClient":{request:[1,0]},"restclient.rest":{Resource:[2,1],RestClient:[2,1]}},filenames:["gettingstarted","httpclient","resource","installation","index"]})
+Search.setIndex({desctypes:{"0":"method","1":"class","2":"function","3":"attribute","4":"exception"},terms:{urllib2httpclien:4,all:1,code:[0,1],text:1,over:1,rest:[0,1,3],veri:4,actuib:4,own:1,through:[0,3],file:3,follow:3,mainli:0,yet:0,languag:1,paramet:[1,4],xml:1,absolut:1,style:3,specif:4,depend:[1,4],expos:0,wed:3,except:[3,1],param:[1,4],should:[3,4],add:[1,4],tracker:3,dict:[1,4],"__call__":1,pass:1,httplib2httpclient:[1,4],applic:[0,1],sourc:[3,2],"return":4,string:1,later:2,get:[0,1,2,3,4],python:[0,2,3,4],powerful:4,auth:4,know:3,"import":[0,1,4],report:3,brows:3,requir:[3,2],restclient:[0,1,2,3,4],httpbasicauthhandl:4,like:3,getdefaulthttpcli:4,benoitc:2,authent:1,patch:4,"default":[1,4],resr2:1,common:1,timeout:4,contain:3,found:1,page:[0,3],mean:4,altern:2,pthon:2,set:[1,4],repres:[1,4],some:4,direct:3,past:0,see:[1,4],curlhttpclient:4,toctre:3,fail:1,http:[0,1,2,3,4],server:1,librari:0,index:3,statu:1,simplecouchdb:[2,1],make_request:0,someth:4,pypast:1,urllib:4,payload:1,access:[1,4],delet:[3,1,4],version:2,adapt:3,"new":1,setdefaulthttpcli:4,get_status_cod:1,method:[1,4],refer:3,"3xdqq8g83llzvwgcewdwru":1,full:1,run:4,proxi:[1,4],kei:0,usag:0,engura:2,fisrt:3,symlink:2,interfac:[1,4],bodi:[1,4],step:3,base:[1,4],here:4,repositori:2,releas:2,org:2,post:[3,1,4],don:4,optionn:[1,4],about:[3,1],last:[2,1],friendpast:[0,1],most:2,could:[2,1],manag:4,microframework:3,instanc:[1,4],constructor:4,action:3,mani:4,implement:4,createhttpcli:4,com:[0,1],oper:4,via:2,httppasswordmgrwithdefaultrealm:4,additionn:1,instanti:1,pythonpath:2,modul:[0,1,3,4],inspir:3,prefer:4,easy_instal:2,put:[3,1,4],api:[0,1],been:4,path:[2,1],instal:[0,1,2,3],your:[2,1,3,4],mercuri:2,alternatli:2,from:[0,1,2,4],wai:4,support:[0,3,4],fast:4,avail:2,start:[0,3],json:[0,1],handler:4,call:[0,3,4],includ:[1,4],basic:[1,4],master:3,httpclient:[1,4],"function":[3,4],head:[3,1,4],option:1,auth_handl:4,copi:2,setuptool:2,search:3,specifi:3,anywher:2,least:3,indic:3,requestfail:1,cheeseshop:2,recommand:4,bug:3,serv:1,also:[2,1,4],none:[1,4],pycurl:[1,4],provid:1,setup:2,properti:1,dev:2,directori:2,can:[2,1,3,4],str:[1,4],dec:3,root:3,update_uri:1,"5roqe9xtz7lcclgzoqs4ip":[0,1],featur:[0,3],quickstart:3,creat:[3,4],descript:[0,1],sudo:2,site:2,accept:[0,1],edfault:1,packag:2,have:[0,4],tabl:3,need:[2,1,3,4],revis:1,curl:4,"__init__":4,alwai:2,develop:[3,2],welcom:[3,4],want:[0,1,4],perform:[0,3,4],titl:1,make:[2,1],add_password:4,header:[0,1,4],snippet:1,sinatra:3,when:[1,4],exampl:[0,1,4],read:0,resourcenotfound:1,which:4,subdirectori:2,test:[1,4],add_credenti:4,you:[0,1,2,3,4],document:[0,3],simpl:3,tutorial:0,complet:3,resourc:[0,1,3,4],though:4,our:2,cach:4,clone:[2,1],object:[1,4],urllib2:[1,4],password_mgr:4,"case":4,rais:1,authentif:[1,4],respons:4,"class":[3,1,4],urllib2httpcli:4,recent:2,bitbucket:[3,2],sphinx:3,ani:[1,4],operform:4,url:4,doc:0,camp:3,request:[0,1,4],uri:1,depth:0,client:[0,1,3,4],command:2,thi:[0,1,2,3,4],choos:4,everyth:3,parameterss:1,self:4,httplib2:[1,4]},titles:["Getting Started","Resource","Installation","Welcome to python-restclient&#8217;s documentation!","HTTP Clients"],modules:{restclient:1},descrefs:{"restclient.RestClient":{httpclient:[1,3]},"restclient.rest.RestClient.Resource":{put:[1,0],head:[1,0],"delete":[1,0],post:[1,0],get:[1,0]},"simplecouchdb.resource":{RequestFailed:[1,4],ResourceNotFound:[1,4]},"restclient.http":{createHTTPClient:[4,2],setDefaultHTTPClient:[4,2],HTTPLib2HTTPClient:[4,1],CurlHTTPClient:[4,1],Urllib2HTTPClient:[4,1],getDefaultHTTPClient:[4,2],HTTPClient:[4,1]},"restclient.Resource":{uri:[1,3],httpclient:[1,3]},"restclient.rest.Resource":{head:[1,0],get:[1,0],clone:[1,0],"__call__":[1,0],put:[1,0],post:[1,0],get_status_code:[1,0],update_uri:[1,0],"delete":[1,0]},"restclient.http.Urllib2HTTPClient":{"__init__":[4,0]},"restclient.http.HTTPClient":{request:[4,0]},"restclient.rest":{Resource:[1,1],RestClient:[1,1]}},filenames:["gettingstarted","resource","installation","index","httpclient"]})