SQLAlchemy - Dicionário de tags

Tenho uma pergunta sobre o SQLAlchemy. Como posso adicionar à minha classe mapeada o atributo semelhante a dicionário, que mapeia as chaves da string em valores de string e que serão armazenadas no banco de dados (na mesma ou em outra tabela como objeto mapeado original). Quero que esse suporte seja adicionado a tags arbitrárias dos meus objeto

Encontrei o seguinte exemplo na documentação do SQLAlchemy:

from sqlalchemy.orm.collections import column_mapped_collection, attribute_mapped_collection, mapped_collection

mapper(Item, items_table, properties={
# key by column
'notes': relation(Note, collection_class=column_mapped_collection(notes_table.c.keyword)),
# or named attribute
'notes2': relation(Note, collection_class=attribute_mapped_collection('keyword')),
# or any callable
'notes3': relation(Note, collection_class=mapped_collection(lambda entity: entity.a + entity.b))
})

item = Item()
item.notes['color'] = Note('color', 'blue')

Mas quero o seguinte comportamento:

mapper(Item, items_table, properties={
# key by column
'notes': relation(...),
})

item = Item()
item.notes['color'] = 'blue'

É possível no SQLAlchemy?

Obrigad

questionAnswers(2)

yourAnswerToTheQuestion