ipsurv.core package

IpSurv’s Module Index

ipsurv.core.target_groups module

class TargetGroups(args, pipeline)

Bases: object

find_group(data, target)
Parameters
  • data (ValueData) –

  • target (ipsurv.entity.Target) –

Return type

TargetGroup

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

  • target (ipsurv.entity.Target) –

  • group_type (int) –

  • cidr (str) –

Return type

TargetGroup

ipsurv.core.target_parser module

class TargetParser(args, pipeline, dns_resolver)

Bases: abc.ABC

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

Parameters
_assign_data_target(data, target)
Parameters
_identify_target(data, target, args)
Parameters
_parse_target(data, original, args)
Parameters
  • data (ValueData) –

  • original (str) –

  • args (argparse.Namespace) –

Return type

Target

_prepare_target_data(data, target)
Parameters
parse(data, original, args)
Parameters
  • data (ValueData) –

  • original (str) –

  • args (argparse.Namespace) –

Return type

Target