This documentation is a work in progress. Please help expand it.
YORM has two container types:
from yorm.types import List, Dictionary
List converter stores an attribute containing a sequence of homogenous values and is fetched as a
list. The base class must extended for use and specify a single mapped attribute named
@yorm.attr(all=Float) class Things(List): ... @yorm.attr(things=Things) class Stuff: ...
will store the
things attribute as a list of
things: - 1.0 - 2.3
A shorthand syntax is also available to extend the
This is equivalent to the previous example:
@yorm.attr(things=List.of_type(Float)) class Stuff: ...