validate.py is a
module for validating values against a specification. It can be used
with ConfigObj, or as a
It is extensible, and as well as doing type conversion from strings,
you can easily implement your own functions for transforming values in
any way you please.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.