class MyModel(schemas.StringModel): import_format = r"(?P<left>.*)==(?P<right>\d*)" export_format = "{left}=={right}" left = schemas.StringType() right = schemas.IntType()
class SchemaExample(schemas.Model): arg1 = schemas.StringType(required=True) arg2 = schemas.ListType(schemas.IntType)
class ModelExample(schemas.ResultSet): name = schemas.StringType()