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.
MyParser
(input_data=None, schema_type=None, output_schema_type=None, args=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 b optional b string parameter my value String
unicode log_level set the logging level of the module ERROR LogLevel
unicode nest a nested schema NA MyNestedSchema
dict input_json file path of input json file NA InputFile
unicode output_json file path to output json file NA OutputFile
unicode -
opts
= <marshmallow.schema.SchemaOpts object>¶
-