You need to put your UniqueConstraint in the __table_args__ class
attribute for SQLAlchemy to see it, something like this:
class User(Base):
__tablename__ = 'user'
__table_args__ = (
UniqueConstraint('lname', 'fname', name='full_name'),
)
See the examples at
http://docs.sqlalchemy.org/en/rel_0_8/orm/extensions/declarative.html#table-configuration.
Note that __table_args__ here is a 1-element tuple - the comma on the
end of the line is important.
Hope that helps,
Simon