test_argschema_parser module¶
-
class
test_argschema_parser.
MyNestedSchema
(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]¶ Bases: argschema.schemas.DefaultSchema
MyNestedSchema¶ key description default field_type json_type one nested integer (REQUIRED) Integer int two a nested boolean (REQUIRED) Boolean bool -
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_argschema_parser.
MyNestedSchemaWithDefaults
(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]¶ Bases: argschema.schemas.DefaultSchema
MyNestedSchemaWithDefaults¶ key description default field_type json_type one nested integer 1 Integer int two a nested boolean True Boolean bool -
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
(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]¶ Bases: argschema.schemas.ArgSchema
This schema is designed to be a schema_type for an ArgSchemaParser objectMySchema¶ key description default field_type json_type input_json file path of input json file NA InputFile str output_json file path to output json file NA OutputFile str log_level set the logging level of the module ERROR LogLevel str a parameter a (REQUIRED) Integer int b optional b string parameter my value String str nest a nested schema NA MyNestedSchema dict -
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_argschema_parser.
MySchema2
(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]¶ Bases: argschema.schemas.ArgSchema
This schema is designed to be a schema_type for an ArgSchemaParser objectMySchema2¶ key description default field_type json_type input_json file path of input json file NA InputFile str output_json file path to output json file NA OutputFile str log_level set the logging level of the module ERROR LogLevel str a parameter a (REQUIRED) Integer int b optional b string parameter my value String str nest a nested schema NA MyNestedSchemaWithDefaults dict -
opts
= <marshmallow.schema.SchemaOpts object>¶
-