alecthomas/voluptuous — pull request #29 by blackwithwhite666 (2013-03-19 11:42:59+00:00)
Title: Add ability to validate objects

Add ability to validate objects. For example:
```
>>> from voluptuous import Object
>>> class Structure(object):
... def __init__(self, q=None):
... self.q = q
... def __repr__(self):
... return ''.format(self)
...
>>> schema = Schema(Object({'q': 'one'}, cls=Structure))
>>> schema(Structure(q='one'))

```

It can be useful to validate some generated structure, for example thrift stubs.