Page info
Author
Wichert Akkerman
Navigation
Home
Where it all starts
Code
Useful and useless code
Presentations
What I have been telling others
Rants
I love to complain
My sites
Paradiso calendar
An easy to use calendar
HugeURL
For better URL bragging rights

python-dhm

Summary Collection of python utilities
Current version 0.6
Documentation view online
Downloads dhm-0.6.tar.gz

A collection of various tools I use in python projects. They cover a broad range of things: classes to make it easier to deal with LDAP and SQL databases, CGI-related tools, general string manipulation, process handling, etc.

Changes

0.6
  • Add MANIFEST.in and use that to install some documentation files
  • Fix typo in cgiutils.Request which caused REMOTE_USER to be missed
  • Add SQLFilterDict class
  • Change order of parameters for sqldict classes to be more logical (use named parameters if you want to be backwards compatible)
  • Close race where command.Command would miss data written just before a child process exited
  • Allow /._ in a token in the config parser
  • Add CodecFile function to strtools module to get a file instance with a specific encoding
  • Support Sybase using Dave Cole's Sybase module
  • Remove sqlsession module in favour of new sqlpersistence
  • Add new sql.row module, replacing SQLObject
  • Move all SQL-related modules to dhm.sql module
  • Remove session module, it never was stable enough and I use dhm.sql.persistence now
  • Make sqldict instances iterable
  • Add event module, which implements a C# event type in python
0.5
  • Switch all SQL using code to using sqlwrap parameter encoding.
  • Add a factory function to sqlwrap to get the correct Server class instance.
  • Change transaction class: require explicit rollback instead of waiting for garbage collection since we do not know when that will happen. assert on this in the Transaction destructor.
  • Update ldapObject to use current python-ldap LDIF interface.
  • Remove cgiutils.OutputPage, might return using a SimpleTAL interface.
  • Switch to using psycopg in favour of pgdb.
  • Support MS-SQL using Dave Cole's MSSQL module.
0.4 (subversion revision 94)
  • Fix encoding of DateTime types
  • New modules: sectionedfile, simplerfc822, sqldict, sqlsession, sqlwrap and textfile.
  • The new sqlwrap and the updated dbutils modules makes it possible to write portable SQL using code by working around a few issues in the DB-API 2.0 standard.
0.3 (subversion revision 58)
  • Consistently use string functions instead of the string module
  • New strtools function: RegexFilter
  • procutils has been removed; its functionality can be gotten by combining the command and strtools modules
  • dbutils.encode can now deal with dates and times using mx.DatTime
0.2 (subversion revision 48)
  • First release