test_argschema_parser module¶
-
class
test_argschema_parser.
MyNestedSchema
(extra=None, only=(), exclude=(), prefix=u'', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶ Bases:
argschema.schemas.DefaultSchema
¶ key description default field_type json_type two a nested boolean (REQUIRED) Boolean
bool one nested integer (REQUIRED) Integer
int -
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_argschema_parser.
MyNestedSchemaWithDefaults
(extra=None, only=(), exclude=(), prefix=u'', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶ Bases:
argschema.schemas.DefaultSchema
¶ key description default field_type json_type two a nested boolean True Boolean
bool one nested integer 1 Integer
int -
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_argschema_parser.
MyParser
(input_data=None, schema_type=None, output_schema_type=None, args=None, input_source=None, output_sink=None, logger_name='argschema.argschema_parser')[source]¶ Bases:
argschema.argschema_parser.ArgSchemaParser
Note
This class takes a ArgSchema as an input to parse inputs , with a default schema of type
MySchema
-
class
test_argschema_parser.
MySchema
(extra=None, only=(), exclude=(), prefix=u'', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶ Bases:
argschema.schemas.ArgSchema
This schema is designed to be a schema_type for an ArgSchemaParser object¶ key description default field_type json_type a parameter a (REQUIRED) Integer
int nest a nested schema NA MyNestedSchema
dict b optional b string parameter my value String
unicode log_level set the logging level of the module ERROR LogLevel
unicode -
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_argschema_parser.
MySchema2
(extra=None, only=(), exclude=(), prefix=u'', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)[source]¶ Bases:
argschema.schemas.ArgSchema
This schema is designed to be a schema_type for an ArgSchemaParser object¶ key description default field_type json_type a parameter a (REQUIRED) Integer
int nest a nested schema NA MyNestedSchemaWithDefaults
dict b optional b string parameter my value String
unicode log_level set the logging level of the module ERROR LogLevel
unicode -
opts
= <marshmallow.schema.SchemaOpts object>¶
-