fix: Fixed vt_graph imports

pull/363/head
chrisr3d 2020-01-10 10:31:52 +01:00
parent f197abdcf6
commit f5452055f6
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
8 changed files with 13 additions and 17 deletions

View File

@ -1 +1,3 @@
from .vt_graph_parser import * # noqa
all = ['joe_parser', 'lastline_api']

View File

@ -4,9 +4,5 @@ This module provides methods to import graph from misp.
"""
from lib.vt_graph_parser.importers import from_pymisp_response
__all__ = [
"from_pymisp_response"
]
from .helpers import * # noqa
from .importers import * # noqa

View File

@ -2,3 +2,6 @@
This modules provides functions and attributes to help MISP importers.
"""
all = ["parsers", "rules", "wrappers"]

View File

@ -4,7 +4,7 @@ This module provides parsers for MISP inputs.
"""
from lib.vt_graph_parser.helpers.wrappers import MispAttribute
from vt_graph_parser.helpers.wrappers import MispAttribute
MISP_INPUT_ATTR = [

View File

@ -4,9 +4,4 @@ This module provides methods to import graphs from MISP.
"""
from lib.vt_graph_parser.importers.pymisp_response import from_pymisp_response
__all__ = [
"from_pymisp_response"
]
__all__ = ["base", "pymisp_response"]

View File

@ -5,7 +5,7 @@ This module provides a common method to import graph from misp attributes.
import vt_graph_api
from lib.vt_graph_parser.helpers.rules import MispEventInitialRule
from vt_graph_parser.helpers.rules import MispEventInitialRule
def import_misp_graph(

View File

@ -5,8 +5,8 @@ response payload giving by MISP API directly.
"""
from lib.vt_graph_parser.helpers.parsers import parse_pymisp_response
from lib.vt_graph_parser.importers.base import import_misp_graph
from vt_graph_parser.helpers.parsers import parse_pymisp_response
from vt_graph_parser.importers.base import import_misp_graph
def from_pymisp_response(

View File

@ -3,7 +3,7 @@
import base64
import json
from lib.vt_graph_parser import from_pymisp_response
from vt_graph_parser.importers.pymisp_response import from_pymisp_response
misperrors = {