searcch.importer.exporter package¶
Submodules¶
searcch.importer.exporter.json module¶
-
class
searcch.importer.exporter.json.
JSONExporter
(config, session, exporter_obj)[source]¶ Bases:
searcch.importer.exporter.BaseExporter
A simple JSON exporter that recursively flattens an Artifact record into a JSON document.
-
external
= False¶
-
jsontypes
= (<class 'dict'>, <class 'list'>, <class 'tuple'>, <class 'str'>, <class 'int'>, <class 'float'>, <class 'bool'>, <class 'NoneType'>)¶
-
name
= 'json'¶
-
version
= '1.0'¶
-
Module contents¶
-
class
searcch.importer.exporter.
BaseExporter
(config, session, exporter_obj)[source]¶ Bases:
object
An abstract base class that any Exporter must subclass.
-
__init__
(config, session, exporter_obj)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
config
¶
-
export_artifact
(artifact)[source]¶ Exports an artifact to the repository designated by an instance of this class.
-
exporter_obj
¶
-
session
¶
-