/usr/share/doc/python-couchdb/html/changes.html is in python-couchdb 0.10-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>5. Changes — couchdb-python 0.10 documentation</title>
<link rel="stylesheet" href="_static/classic.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.10',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="couchdb-python 0.10 documentation" href="index.html" />
<link rel="prev" title="4. Mapping CouchDB documents to Python objects: couchdb.mapping" href="mapping.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="mapping.html" title="4. Mapping CouchDB documents to Python objects: couchdb.mapping"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">couchdb-python 0.10 documentation</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="changes">
<h1>5. Changes<a class="headerlink" href="#changes" title="Permalink to this headline">¶</a></h1>
<div class="section" id="version-0-10-2014-07-15">
<h2>5.1. Version 0.10 (2014-07-15)<a class="headerlink" href="#version-0-10-2014-07-15" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>Now compatible with Python 2.7, 3.3 and 3.4</li>
<li>Added batch processing for the <cite>couchdb-dump</cite> tool</li>
<li>A very basic API to access the <cite>_security</cite> object</li>
<li>A way to access the <cite>update_seq</cite> value on view results</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-9-2013-04-25">
<h2>5.2. Version 0.9 (2013-04-25)<a class="headerlink" href="#version-0-9-2013-04-25" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>Don’t validate database names on the client side. This means some methods
dealing with database names can return different exceptions than before.</li>
<li>Use HTTP socket more efficiently to avoid the Nagle algorithm, greatly
improving performace. Note: add the <cite>{nodelay, true}</cite> option to the CouchDB
server’s httpd/socket_options config.</li>
<li>Add support for show and list functions.</li>
<li>Add support for calling update handlers.</li>
<li>Add support for purging documents.</li>
<li>Add <cite>iterview()</cite> for more efficient iteration over large view results.</li>
<li>Add view cleanup API.</li>
<li>Enhance <cite>Server.stats()</cite> to optionally retrieve a single set of statistics.</li>
<li>Implement <cite>Session</cite> timeouts.</li>
<li>Add <cite>error</cite> property to <cite>Row</cite> objects.</li>
<li>Add <cite>default=None</cite> arg to <cite>mapping.Document.get()</cite> to make it a little more
dict-like.</li>
<li>Enhance <cite>Database.info()</cite> so it can also be used to get info for a design
doc.</li>
<li>Add view definition options, e.g. collation.</li>
<li>Fix support for authentication in dump/load tools.</li>
<li>Support non-ASCII document IDs in serialization format.</li>
<li>Protect <cite>ResponseBody</cite> from being iterated/closed multiple times.</li>
<li>Rename iteration method for ResponseBody chunks to <cite>iterchunks()</cite> to
prevent usage for non-chunked responses.</li>
<li>JSON encoding exceptions are no longer masked, resulting in better error
messages.</li>
<li><cite>cjson</cite> support is now deprecated.</li>
<li>Fix <cite>Row.value</cite> and <cite>Row.__repr__</cite> to never raise exceptions.</li>
<li>Fix Python view server’s reduce to handle empty map results list.</li>
<li>Use locale-independent timestamp identifiers for HTTP cache.</li>
<li>Don’t require setuptools/distribute to install the core package. (Still
needed to install the console scripts.)</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-8-aug-13-2010">
<h2>5.3. Version 0.8 (Aug 13, 2010)<a class="headerlink" href="#version-0-8-aug-13-2010" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>The couchdb-replicate script has changed from being a poor man’s version of
continuous replication (predating it) to being a simple script to help
kick off replication jobs across databases and servers.</li>
<li>Reinclude all http exception types in the ‘couchdb’ package’s scope.</li>
<li>Replaced epydoc API docs by more extensive Sphinx-based documentation.</li>
<li>Request retries schedule and frequency are now customizable.</li>
<li>Allow more kinds of request errors to trigger a retry.</li>
<li>Improve wrapping of view results.</li>
<li>Added a <cite>uuids()</cite> method to the <cite>client.Server</cite> class (issue 122).</li>
<li>Tested with CouchDB 0.10 - 1.0 (and Python 2.4 - 2.7).</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-7-0-apr-15-2010">
<h2>5.4. Version 0.7.0 (Apr 15, 2010)<a class="headerlink" href="#version-0-7-0-apr-15-2010" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>Breaking change: the dependency on <cite>httplib2</cite> has been replaced by
an internal <cite>couchdb.http</cite> library. This changes the API in several places.
Most importantly, <cite>resource.request()</cite> now returns a 3-member tuple.</li>
<li>Breaking change: <cite>couchdb.schema</cite> has been renamed to <cite>couchdb.mapping</cite>.
This better reflects what is actually provided. Classes inside
<cite>couchdb.mapping</cite> have been similarly renamed (e.g. <cite>Schema</cite> -> <cite>Mapping</cite>).</li>
<li>Breaking change: <cite>couchdb.schema.View</cite> has been renamed to
<cite>couchdb.mapping.ViewField</cite>, in order to help distinguish it from
<cite>couchdb.client.View</cite>.</li>
<li>Breaking change: the <cite>client.Server</cite> properties <cite>version</cite> and <cite>config</cite>
have become methods in order to improve API consistency.</li>
<li>Prevent <cite>schema.ListField</cite> objects from sharing the same default (issue 107).</li>
<li>Added a <cite>changes()</cite> method to the <cite>client.Database</cite> class (issue 103).</li>
<li>Added an optional argument to the ‘Database.compact` method to enable
view compaction (the rest of issue 37).</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-6-1-dec-14-2009">
<h2>5.5. Version 0.6.1 (Dec 14, 2009)<a class="headerlink" href="#version-0-6-1-dec-14-2009" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>Compatible with CouchDB 0.9.x and 0.10.x.</li>
<li>Removed debugging statement from <cite>json</cite> module (issue 82).</li>
<li>Fixed a few bugs resulting from typos.</li>
<li>Added a <cite>replicate()</cite> method to the <cite>client.Server</cite> class (issue 61).</li>
<li>Honor the boundary argument in the dump script code (issue 100).</li>
<li>Added a <cite>stats()</cite> method to the <cite>client.Server</cite> class.</li>
<li>Added a <cite>tasks()</cite> method to the <cite>client.Server</cite> class.</li>
<li>Allow slashes in path components passed to the uri function (issue 96).</li>
<li><cite>schema.DictField</cite> objects now have a separate backing dictionary for each
instance of their <cite>schema.Document</cite> (issue 101).</li>
<li><cite>schema.ListField</cite> proxy objects now have a more consistent (though somewhat
slower) <cite>count()</cite> method (issue 91).</li>
<li><cite>schema.ListField</cite> objects now have correct behavior for slicing operations
and the <cite>pop()</cite> method (issue 92).</li>
<li>Added a <cite>revisions()</cite> method to the Database class (issue 99).</li>
<li>Make sure we always return UTF-8 from the view server (issue 81).</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-6-jul-2-2009">
<h2>5.6. Version 0.6 (Jul 2, 2009)<a class="headerlink" href="#version-0-6-jul-2-2009" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>Compatible with CouchDB 0.9.x.</li>
<li><cite>schema.DictField</cite> instances no longer need to be bound to a <cite>Schema</cite>
(issue 51).</li>
<li>Added a <cite>config</cite> property to the <cite>client.Server</cite> class (issue 67).</li>
<li>Added a <cite>compact()</cite> method to the <cite>client.Database</cite> class (issue 37).</li>
<li>Changed the <cite>update()</cite> method of the <cite>client.Database</cite> class to simplify
the handling of errors. The method now returns a list of <cite>(success, docid,
rev_or_exc)</cite> tuples. See the docstring of that method for the details.</li>
<li><cite>schema.ListField</cite> proxy objects now support the <cite>__contains__()</cite> and
<cite>index()</cite> methods (issue 77).</li>
<li>The results of the <cite>query()</cite> and <cite>view()</cite> methods in the <cite>schema.Document</cite>
class are now properly wrapped in objects of the class if the <cite>include_docs</cite>
option is set (issue 76).</li>
<li>Removed the <cite>eager</cite> option on the <cite>query()</cite> and <cite>view()</cite> methods of
<cite>schema.Document</cite>. Use the <cite>include_docs</cite> option instead, which doesn’t
require an additional request per document.</li>
<li>Added a <cite>copy()</cite> method to the <cite>client.Database</cite> class, which translates to
a HTTP COPY request (issue 74).</li>
<li>Accessing a non-existing database through <cite>Server.__getitem__</cite> now throws
a <cite>ResourceNotFound</cite> exception as advertised (issue 41).</li>
<li>Added a <cite>delete()</cite> method to the <cite>client.Server</cite> class for consistency
(issue 64).</li>
<li>The <cite>couchdb-dump</cite> tool now operates in a streaming fashion, writing one
document at a time to the resulting MIME multipart file (issue 58).</li>
<li>It is now possible to explicitly set the JSON module that should be used
for decoding/encoding JSON data. The currently available choices are
<cite>simplejson</cite>, <cite>cjson</cite>, and <cite>json</cite> (the standard library module). It is also
possible to use custom decoding/encoding functions.</li>
<li>Add logging to the Python view server. It can now be configured to log to a
given file or the standard error stream, and the log level can be set debug
to see all communication between CouchDB and the view server (issue 55).</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-5-nov-29-2008">
<h2>5.7. Version 0.5 (Nov 29, 2008)<a class="headerlink" href="#version-0-5-nov-29-2008" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li><cite>schema.Document</cite> objects can now be used in the documents list passed to
<cite>client.Database.update()</cite>.</li>
<li><cite>Server.__contains__()</cite> and <cite>Database.__contains__()</cite> now use the HTTP HEAD
method to avoid unnecessary transmission of data. <cite>Database.__del__()</cite> also
uses HEAD to determine the latest revision of the document.</li>
<li>The <cite>Database</cite> class now has a method <cite>delete()</cite> that takes a document
dictionary as parameter. This method should be used in preference to
<cite>__del__</cite> as it allow conflict detection and handling.</li>
<li>Added <cite>cache</cite> and <cite>timeout</cite> arguments to the <cite>client.Server</cite> initializer.</li>
<li>The <cite>Database</cite> class now provides methods for deleting, retrieving, and
updating attachments.</li>
<li>The Python view server now exposes a <cite>log()</cite> function to map and reduce
functions (issue 21).</li>
<li>Handling of the rereduce stage in the Python view server has been fixed.</li>
<li>The <cite>Server</cite> and <cite>Database</cite> classes now implement the <cite>__nonzero__</cite> hook
so that they produce sensible results in boolean conditions.</li>
<li>The client module will now reattempt a request that failed with a
“connection reset by peer” error.</li>
<li>inf/nan values now raise a <cite>ValueError</cite> on the client side instead of
triggering an internal server error (issue 31).</li>
<li>Added a new <cite>couchdb.design</cite> module that provides functionality for
managing views in design documents, so that they can be defined in the
Python application code, and the design documents actually stored in the
database can be kept in sync with the definitions in the code.</li>
<li>The <cite>include_docs</cite> option for CouchDB views is now supported by the new
<cite>doc</cite> property of row instances in view results. Thanks to Paul Davis for
the patch (issue 33).</li>
<li>The <cite>keys</cite> option for views is now supported (issue 35).</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-4-jun-28-2008">
<h2>5.8. Version 0.4 (Jun 28, 2008)<a class="headerlink" href="#version-0-4-jun-28-2008" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>Updated for compatibility with CouchDB 0.8.0</li>
<li>Added command-line scripts for importing/exporting databases.</li>
<li>The <cite>Database.update()</cite> function will now actually perform the <cite>POST</cite>
request even when you do not iterate over the results (issue 5).</li>
<li>The <cite>_view</cite> prefix can now be omitted when specifying view names.</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-3-feb-6-2008">
<h2>5.9. Version 0.3 (Feb 6, 2008)<a class="headerlink" href="#version-0-3-feb-6-2008" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>The <cite>schema.Document</cite> class now has a <cite>view()</cite> method that can be used to
execute a CouchDB view and map the result rows back to objects of that
schema.</li>
<li>The test suite now uses the new default port of CouchDB, 5984.</li>
<li>Views now return proxy objects to which you can apply slice syntax for
“key”, “startkey”, and “endkey” filtering.</li>
<li>Add a <cite>query()</cite> classmethod to the <cite>Document</cite> class.</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-2-nov-21-2007">
<h2>5.10. Version 0.2 (Nov 21, 2007)<a class="headerlink" href="#version-0-2-nov-21-2007" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>Added __len__ and __iter__ to the <cite>schema.Schema</cite> class to iterate
over and get the number of items in a document or compound field.</li>
<li>The “version” property of client.Server now returns a plain string
instead of a tuple of ints.</li>
<li>The client library now identifies itself with a meaningful
User-Agent string.</li>
<li><cite>schema.Document.store()</cite> now returns the document object instance,
instead of just the document ID.</li>
<li>The string representation of <cite>schema.Document</cite> objects is now more
comprehensive.</li>
<li>Only the view parameters “key”, “startkey”, and “endkey” are JSON
encoded, anything else is left alone.</li>
<li>Slashes in document IDs are now URL-quoted until CouchDB supports
them.</li>
<li>Allow the content-type to be passed for temp views via
<cite>client.Database.query()</cite> so that view languages other than
Javascript can be used.</li>
<li>Added <cite>client.Database.update()</cite> method to bulk insert/update
documents in a database.</li>
<li>The view-server script wrapper has been renamed to <cite>couchpy</cite>.</li>
<li><cite>couchpy</cite> now supports <cite>–help</cite> and <cite>–version</cite> options.</li>
<li>Updated for compatibility with CouchDB release 0.7.0.</li>
</ul>
</div></blockquote>
</div>
<div class="section" id="version-0-1-sep-23-2007">
<h2>5.11. Version 0.1 (Sep 23, 2007)<a class="headerlink" href="#version-0-1-sep-23-2007" title="Permalink to this headline">¶</a></h2>
<blockquote>
<div><ul class="simple">
<li>First public release.</li>
</ul>
</div></blockquote>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">5. Changes</a><ul>
<li><a class="reference internal" href="#version-0-10-2014-07-15">5.1. Version 0.10 (2014-07-15)</a></li>
<li><a class="reference internal" href="#version-0-9-2013-04-25">5.2. Version 0.9 (2013-04-25)</a></li>
<li><a class="reference internal" href="#version-0-8-aug-13-2010">5.3. Version 0.8 (Aug 13, 2010)</a></li>
<li><a class="reference internal" href="#version-0-7-0-apr-15-2010">5.4. Version 0.7.0 (Apr 15, 2010)</a></li>
<li><a class="reference internal" href="#version-0-6-1-dec-14-2009">5.5. Version 0.6.1 (Dec 14, 2009)</a></li>
<li><a class="reference internal" href="#version-0-6-jul-2-2009">5.6. Version 0.6 (Jul 2, 2009)</a></li>
<li><a class="reference internal" href="#version-0-5-nov-29-2008">5.7. Version 0.5 (Nov 29, 2008)</a></li>
<li><a class="reference internal" href="#version-0-4-jun-28-2008">5.8. Version 0.4 (Jun 28, 2008)</a></li>
<li><a class="reference internal" href="#version-0-3-feb-6-2008">5.9. Version 0.3 (Feb 6, 2008)</a></li>
<li><a class="reference internal" href="#version-0-2-nov-21-2007">5.10. Version 0.2 (Nov 21, 2007)</a></li>
<li><a class="reference internal" href="#version-0-1-sep-23-2007">5.11. Version 0.1 (Sep 23, 2007)</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="mapping.html"
title="previous chapter">4. Mapping CouchDB documents to Python objects: couchdb.mapping</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/changes.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="mapping.html" title="4. Mapping CouchDB documents to Python objects: couchdb.mapping"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">couchdb-python 0.10 documentation</a> »</li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2010, Dirkjan Ochtman.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.3.
</div>
</body>
</html>
|