ANN: ClientCookie 0.4.9 released (first stable release)

John J. Lee jjl@pobox.com
03 Nov 2003 00:37:41 +0000


http://wwwsearch.sourceforge.net/ClientCookie/

Stable bugfix release.

I've made this a stable release and will make remaining interface
changes in a 0.9.x release.  0.9.x will then split into a stable
version 1.0 compatible with old Pythons, and a cleaned-up version
which I hope will make it into the Python 2.4 standard library.  0.3.x
is no longer supported.  See the following for how to switch from
0.3.x to 0.4.x:

http://wwwsearch.sourceforge.net/ClientCookie/porting.txt

Changes since 0.4.8a:
 * Very minor interface change: rehashed string representation methods
   so they behave in a more standard way.
 * The beginnings of some unit tests for the urllib2 support, finally!
 * Bug fixes.

Requires Python >= 1.5.2.

ClientCookie is a Python module for handling HTTP cookies on the client
client side, useful for accessing web sites that require cookies to be
set and then returned later.  It also provides some other (optional)
useful stuff: HTTP-EQUIV and Refresh handling, automatic adding of the
Referer [sic] header and lazily-seek()able responses.  These extras are
implemented using an extension that makes it easier to add new
functionality to urllib2.  It has developed from a port of Gisle Aas'
Perl module HTTP::Cookies, from the libwww-perl library.

Simple usage:

 import ClientCookie
 response = ClientCookie.urlopen("http://foo.bar.com/")

This function behaves identically to urllib2.urlopen, except that it deals
with cookies automatically.  That's probably all you need to know.


John