ipsurv.serializer package¶
ipsurv.serializer.serializer module¶
- class Serializer(args)¶
Bases:
abc.ABC
Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#serializer
- abstract build_error(error)¶
- create_labels(columns, mode)¶
- Parameters
columns (dict) –
mode (int) –
- Return type
dict
- filter_value(v)¶
- get_label(v, mode)¶
- output(v)¶
- output_complete(mode, args, rows)¶
- Parameters
mode (int) –
args (argparse.Namespace) –
rows (list) –
- output_message(msg)¶
- output_result(v)¶
- set_delimiter(delimiter)¶
- Parameters
delimiter (str) –
- set_status(data, target, args, skip)¶
- set_survey_mode(survey_mode)¶
- Parameters
survey_mode (int) –
ipsurv.serializer.json_serializer module¶
- class JsonSerializer(args)¶
Bases:
ipsurv.serializer.serializer.Serializer
Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#serializer
- build_error(error)¶
- filter_value(v)¶
- output(v)¶
- output_complete(mode, args, rows)¶
- Parameters
mode (int) –
args (argparse.Namespace) –
rows (list) –
- output_message(msg)¶
ipsurv.serializer.line_serializer module¶
- class LineSerializer(args)¶
Bases:
ipsurv.serializer.serializer.Serializer
Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#serializer
- build_error(error)¶
- filter_value(v)¶
- output(v)¶
- output_message(msg)¶