ipsurv.core package

IpSurv’s Module Index

ipsurv.core.pipeline module

class Pipeline

Bases: abc.ABC

Description: https://deer-hunt.github.io/ipsurv/pages/ipsurv-cmd/program_architecture_classes.html#pipeline

begin_process(mode, args, rows)
Parameters
  • mode (int) –

  • args (argparse.Namespace) –

  • rows (list) –

build(data, target)
Parameters
build_error(error)
complete_process(mode, args, rows)
Parameters
  • mode (int) –

  • args (argparse.Namespace) –

  • rows (list) –

create_group(data, target, group_type, cidr)
Parameters
  • data (ValueData) –

  • target (Target) –

  • group_type (int) –

  • cidr (str) –

Return type

TargetGroup

detect_survey_mode(mode)
Parameters

mode (int) –

find_group(data, target)
Parameters
Return type

TargetGroup

get_group_identify(data, target)
Parameters
Return type

int

init_configure(arguments, env_args)
Parameters
  • arguments (dict) –

  • env_args (dict) –

initialize(config, serializer)
Parameters
output_result(v)
output_result_self(data)
Parameters

data (ValueData) –

post_collect(data, target, args, skip)
Parameters
  • data (ValueData) –

  • target (Target) –

  • args (argparse.Namespace) –

  • skip (bool) –

post_configure(args, env_args, env_conf)
Parameters
  • args (argparse.Namespace) –

  • env_args (dict) –

  • env_conf (dict) –

post_request(data, name, collector, success, response)
Parameters
pre_collect(data, target, args)
Parameters
pre_configure(args, env_args, env_conf)
Parameters
  • args (argparse.Namespace) –

  • env_args (dict) –

  • env_conf (dict) –

pre_output_headers(data)
Parameters

data (ValueData) –

pre_request(data, name, collector)
Parameters
pre_target_identify(data, target)
Parameters
pre_target_parse(data, original)
Parameters