the choices should be the set of allowed values, any values set in field that aren't in choices should throw an error:
class Foo(Orm):
bar = Field(str, True, choices=["che", "baz"])
f = Foo()
f.bar = "che" # no problem
f.bar = "boom" # raises ValueError because "boom" isn't in choices
Help would be similar to the help field in argparse:
bar = Field(str, True, help="The help string for the bar field")
the choices should be the set of allowed values, any values set in field that aren't in choices should throw an error:
Help would be similar to the help field in
argparse
: