Pythonutils Update and Mailing List

Michael Foord fuzzyman at gmail.com
Thu Sep 23 11:57:17 CEST 2004


Yup.. another exciting new set of updates to the pythonutils
scripts... ;-)

Main Page - http://www.voidspace.org.uk/atlantibots/pythonutils.html
Examples and small modules -
http://www.voidspace.org.uk/atlantibots/recipebook.html
Voidspace CGI Homepage - http://www.voidspace.xennos.com
Pythonutils mailing list -
http://voidspace.xennos.com/mailman/listinfo/pythonutils_voidspace.xennos.com


*NEW* auth_example        Version 1.0.0
This is more of a tutorial than a script. It shows how to do basic
authentication over http (a 401 error) using python. Several examples
and explanation of what is happening at each stage. Useful for writing
http clients or understanding http. Located at
http://www.voidspace.org.uk/atlantibots/recipebook.html


*NEW* Pythonutils Mailing List
http://voidspace.xennos.com/mailman/listinfo/pythonutils_voidspace.xennos.com
For news about updates on all the Voidspace Python scripts and
programs. This includes Nanagram, Dirwatcher, approx and ConfigObj et
al. Also support, bugfixes and discussion.


*UPDATE* approx        Version 0.6.0
approx.py - cgiproxy for browsing in a restricted internet
environment.
Basic authentication works - including multiple users with multiple
realms.
Bug fixed in multiple user cookie support.
Refactored to be cleaner and easier to work on. (Could still be
better)
Removed duplicate error handling code.
In the event of errors (e.g. 404 error) the form to enter a URL is
printed - making browsing easier...
Reimplemented the POST method in a much simpler way - this way just
proxies file uploads etc. (And imposes max file upload size)
Added logging of requests - also for debugging.
Some more helpful error messages and 'more correct' handling of unkown
error codes.
Proxying of request headers from the browser to the new request.



*UPDATE* guestbook        Version 1.1.1
guestbook.py - python guestbook with HTML templates.
Email feature is now cross platform, not just for Linux servers. (Uses
smtplib rather than sendmail).
Attempting to fix a problem with carriage returns - odd.
Changed license text.
Various minor tinkerings..
Removed the need to have the script name in the template.
Added the word poker to the list of banned words (to stop certain
adverts).
Added 'from_email' to the templates - which means this version of
guestbook.py isn't compatible with an old template file. Added a work
around so people won't notice (You *can* use old templates if you want
to)...


*UPDATE* http_test        Version 1.3.0
http_test.py    - script illustrating CGI environment and http. Useful
for debugging. Online version as well.
Will work with cookielib as well as ClientCookie.
Will display an http error 'reason' if one exists...
Print the form even in the event of errors.
Will do basic authentication - stored username/passwords are valid for
2 minutes.


*UPDATE* dataenc        Version 1.1.5
dataenc.py    - secure time limited logins over CGI and binary to
ascii conversion.
Increased speed in table_enc and table_dec.
Version 1.1.4
Slight docs improvement.
Slight speed improvement in binleave and binunleave.


*UPDATE* ConfigObj        Version 3.2.2
configobj.py and fullconfigobj.py    - ultra simple config file
reading and writing.
Defined basestring for Python 2.2. (Thanks to Imre Andras Robert for
uncovering this).


*UPDATE* caseless        Version 2.1.1
caseless.py    - case insensitive dictionary, list and sort method.
Defined sliceobj for versions of Python prior to 2.3


*NEW* in_test            Version 1.0.0
in_test.py - view raw CGI POST data
A simple test CGI that show several HTML forms and then displays the
raw data posted to the CGI from the form. I created it for my own
purposes - but someone else may find it useful to understand/view how
the browser sends form data to a CGI. (Including file uploads).
Online version at http://www.voidspace.xennos.com/index.html#in_test


*REMINDER* Xennos Hosting
Cheap web hosting including python 2.2 and mailman. Hosting packages
from $1 a month. I've been with Xennos for nearly a year, on one of
their cheaper packages, and am very pleased with the service.

http://www.xennos.com
Any of my Python CGIs (http://www.voidspace.xennos.com ) can be
installed and used on a xennos account - great for creating/testing
CGIs. (And no - I don't own any shares.... but it would be nice to see
a few more python CGIs around - anyone fancy building a decent python
forum CGI ?...)


Regards,


Fuzzy


More information about the Python-announce-list mailing list