mirror of
https://github.com/ChronosX88/PyNesca.git
synced 2024-11-22 13:12:18 +00:00
17 lines
448 B
Python
17 lines
448 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class AbstractParser(ABC):
|
|
'''The class describes fields parsing mechanisms'''
|
|
|
|
@abstractmethod
|
|
def parse_address_field(self, field):
|
|
'''In address field can be plased any text, describing address of
|
|
scanning target'''
|
|
pass
|
|
|
|
@abstractmethod
|
|
def parse_port_field(self, field):
|
|
'''In port field only numbers, whitespaces, comma and '-' allowed'''
|
|
pass
|