1. Benoit Chesneau
  2. py-restclient

Commits

ben...@localhost.nymphormation.net  committed 79ced07

more changes.

  • Participants
  • Parent commits 51e5de2
  • Branches default
  • Tags v1.0

Comments (0)

Files changed (22)

File docs/_build/doctrees/environment.pickle

Binary file modified.

File docs/_build/doctrees/gettingstarted.doctree

Binary file modified.

File docs/_build/doctrees/httpclient.doctree

Binary file modified.

File docs/_build/doctrees/index.doctree

Binary file modified.

File docs/_build/doctrees/resource.doctree

Binary file modified.

File docs/_build/html/_sources/gettingstarted.txt

View file
     from restclient import Resource
     res = Resource('http://friendpaste.com')
     page = res.get()
+    print page
+    print page.http_code
+    
 
 
 Perform HTTP call support  with `restclient.rest.RestClient`.

File docs/_build/html/_sources/httpclient.txt

View file
+.. _httpclient:
+
 HTTP Clients
 ============
-.. module:: restclient
+
+.. module:: restclient.http
 
 HTTP Clients are object based on :mod:`restclient.http.HTTPClient` that
 perform HTPP operations.
     .. automethod:: restclient.http.Urllib2HTTPClient.__init__
 
 .. autoclass:: restclient.http.CurlHTTPClient
-    
-    .. automethod:: restclient.http.HTTPClient.add_credentials
+
+    .. automethod:: restclient.http.CurlHTTPClient.__init__
+    .. automethod:: restclient.http.CurlHTTPClient.add_credentials
 
 .. autoclass:: restclient.http.HTTPLib2HTTPClient
+

File docs/_build/html/_sources/resource.txt

View file
 
     .. automethod:: restclient.rest.Resource.put
 
-    .. automethod:: restclient.rest.Resource.get_status_code
-
     .. automethod:: restclient.rest.Resource.update_uri
 
 RestClient class

File docs/_build/html/genindex.html

View file
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Index &mdash; python-restclient v0.2 documentation</title>
+    <title>Index &mdash; python-restclient v1.0 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.2',
+        VERSION:     '1.0',
         COLLAPSE_MODINDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/doctools.js"></script>
     <link rel="index" title="Index" href="" />
     <link rel="search" title="Search" href="search.html" />
-    <link rel="top" title="python-restclient v0.2 documentation" href="index.html" /> 
+    <link rel="top" title="python-restclient v1.0 documentation" href="index.html" /> 
   </head>
   <body>
     <div class="related">
         <li class="right" >
           <a href="modindex.html" title="Global Module Index"
              accesskey="M">modules</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>  
     <div class="document">
 
    <h1 id="index">Index</h1>
 
-   <a href="#_"><strong>_</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#G"><strong>G</strong></a> | <a href="#H"><strong>H</strong></a> | <a href="#M"><strong>M</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#U"><strong>U</strong></a> 
+   <a href="#_"><strong>_</strong></a> | <a href="#A"><strong>A</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#G"><strong>G</strong></a> | <a href="#H"><strong>H</strong></a> | <a href="#M"><strong>M</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#U"><strong>U</strong></a> 
 
    <hr />
 
 <dl>
 
 <dt><a href="resource.html#restclient.rest.Resource.__call__">__call__() (restclient.rest.Resource method)</a></dt>
-<dt><a href="httpclient.html#restclient.http.Urllib2HTTPClient.__init__">__init__() (restclient.http.Urllib2HTTPClient method)</a></dt></dl></td><td width="33%" valign="top"><dl>
+<dt><a href="httpclient.html#restclient.http.CurlHTTPClient.__init__">__init__() (restclient.http.CurlHTTPClient method)</a></dt>
+  <dd><dl>
+    <dt><a href="httpclient.html#restclient.http.Urllib2HTTPClient.__init__">(restclient.http.Urllib2HTTPClient method)</a></dt>
+  </dl></dd></dl></td><td width="33%" valign="top"><dl>
+</dl></td></tr></table>
+
+<h2 id="A">A</h2>
+<table width="100%" class="indextable"><tr><td width="33%" valign="top">
+<dl>
+
+<dt><a href="httpclient.html#restclient.http.CurlHTTPClient.add_credentials">add_credentials() (restclient.http.CurlHTTPClient method)</a></dt></dl></td><td width="33%" valign="top"><dl>
 </dl></td></tr></table>
 
 <h2 id="C">C</h2>
 <dt><a href="httpclient.html#restclient.http.HTTPClient.request">request() (restclient.http.HTTPClient method)</a></dt>
 <dt><a href="resource.html#restclient.rest.RequestFailed">RequestFailed</a></dt>
 <dt><a href="resource.html#restclient.rest.Resource">Resource (class in restclient.rest)</a></dt>
-<dt><a href="resource.html#restclient.rest.ResourceNotFound">ResourceNotFound</a></dt></dl></td><td width="33%" valign="top"><dl>
-<dt><a href="resource.html#restclient.rest.ResourceResult">ResourceResult (class in restclient.rest)</a></dt>
+<dt><a href="resource.html#restclient.rest.ResourceNotFound">ResourceNotFound</a></dt>
+<dt><a href="resource.html#restclient.rest.ResourceResult">ResourceResult (class in restclient.rest)</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="resource.html#module-restclient">restclient (module)</a></dt>
+<dt><a href="httpclient.html#module-restclient.http">restclient.http (module)</a></dt>
 </dl></td></tr></table>
 
 <h2 id="S">S</h2>
         <li class="right" >
           <a href="modindex.html" title="Global Module Index"
              accesskey="M">modules</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

File docs/_build/html/gettingstarted.html

View file
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Getting Started &mdash; python-restclient v0.2 documentation</title>
+    <title>Getting Started &mdash; python-restclient v1.0 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.2',
+        VERSION:     '1.0',
         COLLAPSE_MODINDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/doctools.js"></script>
     <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="Resource" href="resource.html" />
+    <link rel="top" title="python-restclient v1.0 documentation" href="index.html" />
+    <link rel="next" title="What&#8217;s New in python-restclient 1.0" href="whatsnew.html" />
     <link rel="prev" title="Installation" href="installation.html" /> 
   </head>
   <body>
           <a href="modindex.html" title="Global Module Index"
              accesskey="M">modules</a> |</li>
         <li class="right" >
-          <a href="resource.html" title="Resource"
+          <a href="whatsnew.html" title="What&#8217;s New in python-restclient 1.0"
              accesskey="N">next</a> |</li>
         <li class="right" >
           <a href="installation.html" title="Installation"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>  
     <div class="document">
 <div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">restclient</span> <span class="kn">import</span> <span class="n">Resource</span>
 <span class="n">res</span> <span class="o">=</span> <span class="n">Resource</span><span class="p">(</span><span class="s">&#39;http://friendpaste.com&#39;</span><span class="p">)</span>
 <span class="n">page</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="k">print</span> <span class="n">page</span>
+<span class="k">print</span> <span class="n">page</span><span class="o">.</span><span class="n">http_code</span>
 </pre></div>
 </div>
 </div>
             <h4>Previous topic</h4>
             <p class="topless"><a href="installation.html" title="previous chapter">Installation</a></p>
             <h4>Next topic</h4>
-            <p class="topless"><a href="resource.html" title="next chapter">Resource</a></p>
+            <p class="topless"><a href="whatsnew.html" title="next chapter">What&#8217;s New in python-restclient 1.0</a></p>
             <h3>This Page</h3>
             <ul class="this-page-menu">
               <li><a href="_sources/gettingstarted.txt">Show Source</a></li>
           <a href="modindex.html" title="Global Module Index"
              accesskey="M">modules</a> |</li>
         <li class="right" >
-          <a href="resource.html" title="Resource"
+          <a href="whatsnew.html" title="What&#8217;s New in python-restclient 1.0"
              accesskey="N">next</a> |</li>
         <li class="right" >
           <a href="installation.html" title="Installation"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

File docs/_build/html/httpclient.html

View file
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>HTTP Clients &mdash; python-restclient v0.2 documentation</title>
+    <title>HTTP Clients &mdash; python-restclient v1.0 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.2',
+        VERSION:     '1.0',
         COLLAPSE_MODINDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/doctools.js"></script>
     <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="top" title="python-restclient v1.0 documentation" href="index.html" />
     <link rel="prev" title="Resource" href="resource.html" /> 
   </head>
   <body>
         <li class="right" >
           <a href="resource.html" title="Resource"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>  
     <div class="document">
           <div class="body">
             
   
-  <div class="section" id="module-restclient">
-<h1>HTTP Clients<a class="headerlink" href="#module-restclient" title="Permalink to this headline">¶</a></h1>
+  <div class="section" id="module-restclient.http">
+<span id="httpclient"></span><h1>HTTP Clients<a class="headerlink" href="#module-restclient.http" title="Permalink to this headline">¶</a></h1>
 <p>HTTP Clients are object based on <tt class="xref docutils literal"><span class="pre">restclient.http.HTTPClient</span></tt> that
 perform HTPP operations.</p>
 <p>You can choose the one you want as httpclient in Resource or RestClient:</p>
 <p class="first admonition-title">See also</p>
 <p class="last"><a class="reference" href="http://pycurl.sourceforge.net">Pycurl</a></p>
 </div>
+<dl class="method">
+<dt id="restclient.http.CurlHTTPClient.__init__">
+<!--[restclient.http.CurlHTTPClient.__init__]--><tt class="descname">__init__</tt><big>(</big><em>timeout=None</em><big>)</big><a class="headerlink" href="#restclient.http.CurlHTTPClient.__init__" title="Permalink to this definition">¶</a></dt>
+<dd></dd></dl>
+
+<dl class="method">
+<dt id="restclient.http.CurlHTTPClient.add_credentials">
+<!--[restclient.http.CurlHTTPClient.add_credentials]--><tt class="descname">add_credentials</tt><big>(</big><em>user</em>, <em>password</em><big>)</big><a class="headerlink" href="#restclient.http.CurlHTTPClient.add_credentials" title="Permalink to this definition">¶</a></dt>
+<dd></dd></dl>
+
 </dd></dl>
 
 <dl class="class">
         <li class="right" >
           <a href="resource.html" title="Resource"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

File docs/_build/html/index.html

View file
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Welcome to python-restclient&#8217;s documentation! &mdash; python-restclient v0.2 documentation</title>
+    <title>Welcome to python-restclient&#8217;s documentation! &mdash; python-restclient v1.0 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.2',
+        VERSION:     '1.0',
         COLLAPSE_MODINDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/doctools.js"></script>
     <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="" />
+    <link rel="top" title="python-restclient v1.0 documentation" href="" />
     <link rel="next" title="Installation" href="installation.html" /> 
   </head>
   <body>
         <li class="right" >
           <a href="installation.html" title="Installation"
              accesskey="N">next</a> |</li>
-        <li><a href="">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>  
     <div class="document">
 <ul>
 <li class="toctree-l1"><a class="reference" href="whatsnew.html">What&#8217;s New in python-restclient 1.0</a><ul>
 <li class="toctree-l2"><a class="reference" href="whatsnew.html#change-in-results-returned">Change in results returned</a></li>
+<li class="toctree-l2"><a class="reference" href="whatsnew.html#choose-http-client-backend">Choose http client backend</a></li>
 </ul>
 </li>
 </ul>
         <li class="right" >
           <a href="installation.html" title="Installation"
              accesskey="N">next</a> |</li>
-        <li><a href="">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

File docs/_build/html/installation.html

View file
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Installation &mdash; python-restclient v0.2 documentation</title>
+    <title>Installation &mdash; python-restclient v1.0 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.2',
+        VERSION:     '1.0',
         COLLAPSE_MODINDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/doctools.js"></script>
     <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="top" title="python-restclient v1.0 documentation" href="index.html" />
     <link rel="next" title="Getting Started" href="gettingstarted.html" />
     <link rel="prev" title="Welcome to python-restclient&#8217;s documentation!" href="index.html" /> 
   </head>
         <li class="right" >
           <a href="index.html" title="Welcome to python-restclient&#8217;s documentation!"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>  
     <div class="document">
         <li class="right" >
           <a href="index.html" title="Welcome to python-restclient&#8217;s documentation!"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

File docs/_build/html/modindex.html

View file
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Global Module Index &mdash; python-restclient v0.2 documentation</title>
+    <title>Global Module Index &mdash; python-restclient v1.0 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.2',
+        VERSION:     '1.0',
         COLLAPSE_MODINDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/doctools.js"></script>
     <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="top" title="python-restclient v1.0 documentation" href="index.html" />
  
 
-    <script type="text/javascript">
-      DOCUMENTATION_OPTIONS.COLLAPSE_MODINDEX = true;
-    </script>
-
 
   </head>
   <body>
         <li class="right" >
           <a href="" title="Global Module Index"
              accesskey="M">modules</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>  
     <div class="document">
 
    <table width="100%" class="indextable" cellspacing="0" cellpadding="2"><tr class="pcap"><td></td><td>&nbsp;</td><td></td></tr>
    <tr class="cap"><td></td><td><a name="cap-R"><strong>R</strong></a></td><td></td></tr><tr>
-     <td></td>
+     <td><img src="_static/minus.png" id="toggle-1"
+            class="toggler" style="display: none" alt="-" /></td>
      <td>
      <a href="resource.html#module-restclient"><tt class="xref">restclient</tt></a></td><td>
+     <em></em></td></tr><tr class="cg-1">
+     <td></td>
+     <td>&nbsp;&nbsp;&nbsp;
+     <a href="httpclient.html#module-restclient.http"><tt class="xref">restclient.http</tt></a></td><td>
      <em></em></td></tr>
    </table>
 
         <li class="right" >
           <a href="" title="Global Module Index"
              accesskey="M">modules</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

File docs/_build/html/objects.inv

View file
 # Sphinx inventory version 1
 # Project: python-restclient
-# Version: 0.2
+# Version: 1.0
+restclient.http mod httpclient.html
 restclient mod resource.html
 restclient.rest.Resource.put method resource.html
 restclient.rest.RestClient.put method resource.html
 restclient.http.Urllib2HTTPClient class httpclient.html
 restclient.rest.RestClient.get method resource.html
 restclient.rest.Resource.clone method resource.html
+restclient.http.CurlHTTPClient.__init__ method httpclient.html
 restclient.rest.RestClient.post method resource.html
 restclient.RestClient.httpclient attribute resource.html
-restclient.Resource.httpclient attribute resource.html
+restclient.rest.RestClient class resource.html
 restclient.rest.RestClient.delete method resource.html
 restclient.rest.Unauthorized exception resource.html
 restclient.http.Urllib2HTTPClient.__init__ method httpclient.html
-restclient.rest.Resource.update_uri method resource.html
+restclient.rest.RequestFailed exception resource.html
 restclient.rest.ResourceNotFound exception resource.html
 restclient.rest.Resource.__call__ method resource.html
 restclient.http.setDefaultHTTPClient function httpclient.html
 restclient.rest.Resource.post method resource.html
 restclient.rest.Resource.head method resource.html
 restclient.rest.Resource.delete method resource.html
+restclient.http.CurlHTTPClient.add_credentials method httpclient.html
 restclient.Resource.uri attribute resource.html
 restclient.rest.RestClient.make_request method resource.html
-restclient.rest.RestClient class resource.html
+restclient.Resource.httpclient attribute resource.html
 restclient.rest.RestClient.head method resource.html
 restclient.http.HTTPClient.request method httpclient.html
 restclient.http.CurlHTTPClient class httpclient.html
-restclient.rest.RequestFailed exception resource.html
+restclient.rest.Resource.update_uri method resource.html

File docs/_build/html/resource.html

View file
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Resource &mdash; python-restclient v0.2 documentation</title>
+    <title>Resource &mdash; python-restclient v1.0 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.2',
+        VERSION:     '1.0',
         COLLAPSE_MODINDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/doctools.js"></script>
     <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="top" title="python-restclient v1.0 documentation" href="index.html" />
     <link rel="next" title="HTTP Clients" href="httpclient.html" />
     <link rel="prev" title="What&#8217;s New in python-restclient 1.0" href="whatsnew.html" /> 
   </head>
         <li class="right" >
           <a href="whatsnew.html" title="What&#8217;s New in python-restclient 1.0"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>  
     <div class="document">
         <li class="right" >
           <a href="whatsnew.html" title="What&#8217;s New in python-restclient 1.0"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

File docs/_build/html/search.html

View file
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Search &mdash; python-restclient v0.2 documentation</title>
+    <title>Search &mdash; python-restclient v1.0 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.2',
+        VERSION:     '1.0',
         COLLAPSE_MODINDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/searchtools.js"></script>
     <link rel="index" title="Index" href="genindex.html" />
     <link rel="search" title="Search" href="" />
-    <link rel="top" title="python-restclient v0.2 documentation" href="index.html" /> 
+    <link rel="top" title="python-restclient v1.0 documentation" href="index.html" /> 
   </head>
   <body>
     <div class="related">
         <li class="right" >
           <a href="modindex.html" title="Global Module Index"
              accesskey="M">modules</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>  
     <div class="document">
         <li class="right" >
           <a href="modindex.html" title="Global Module Index"
              accesskey="M">modules</a> |</li>
-        <li><a href="index.html">python-restclient v0.2 documentation</a> &raquo;</li> 
+        <li><a href="index.html">python-restclient v1.0 documentation</a> &raquo;</li> 
       </ul>
     </div>
   

File docs/_build/html/searchindex.js

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

File docs/conf.py

View file
 # built documents.
 #
 # The short X.Y version.
-version = '0.2'
+version = '1.0'
 # The full version, including alpha/beta/rc tags.
-release = '0.2'
+release = '1.0'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File docs/gettingstarted.txt

View file
     from restclient import Resource
     res = Resource('http://friendpaste.com')
     page = res.get()
+    print page
+    print page.http_code
+    
 
 
 Perform HTTP call support  with `restclient.rest.RestClient`.

File docs/httpclient.txt

View file
+.. _httpclient:
+
 HTTP Clients
 ============
-.. module:: restclient
+
+.. module:: restclient.http
 
 HTTP Clients are object based on :mod:`restclient.http.HTTPClient` that
 perform HTPP operations.
     .. automethod:: restclient.http.Urllib2HTTPClient.__init__
 
 .. autoclass:: restclient.http.CurlHTTPClient
-    
-    .. automethod:: restclient.http.HTTPClient.add_credentials
+
+    .. automethod:: restclient.http.CurlHTTPClient.__init__
+    .. automethod:: restclient.http.CurlHTTPClient.add_credentials
 
 .. autoclass:: restclient.http.HTTPLib2HTTPClient
+

File docs/resource.txt

View file
 
     .. automethod:: restclient.rest.Resource.put
 
-    .. automethod:: restclient.rest.Resource.get_status_code
-
     .. automethod:: restclient.rest.Resource.update_uri
 
 RestClient class