mythx_cli.formatter package

mythx_cli.formatter.base

class mythx_cli.formatter.base.BaseFormatter[source]

Bases: abc.ABC

static format_analysis_list(obj: Union[mythx_models.response.analysis_list.AnalysisListResponse, List[mythx_models.response.analysis_status.AnalysisStatusResponse]])[source]
static format_analysis_status(resp: mythx_models.response.analysis_status.AnalysisStatusResponse) → str[source]
static format_detected_issues(obj: mythx_models.response.detected_issues.DetectedIssuesResponse, inp: mythx_models.response.analysis_input.AnalysisInputResponse)[source]
static format_version(obj: mythx_models.response.version.VersionResponse)[source]

mythx_cli.formatter.json

class mythx_cli.formatter.json.JSONFormatter[source]

Bases: mythx_cli.formatter.base.BaseFormatter

static format_analysis_list(resp: mythx_models.response.analysis_list.AnalysisListResponse) → str[source]
static format_analysis_status(resp: mythx_models.response.analysis_status.AnalysisStatusResponse) → str[source]
static format_detected_issues(resp: mythx_models.response.detected_issues.DetectedIssuesResponse, inp: mythx_models.response.analysis_input.AnalysisInputResponse) → str[source]
static format_version(resp: mythx_models.response.version.VersionResponse) → str[source]
class mythx_cli.formatter.json.PrettyJSONFormatter[source]

Bases: mythx_cli.formatter.base.BaseFormatter

static format_analysis_list(obj: mythx_models.response.analysis_list.AnalysisListResponse) → str[source]
static format_analysis_status(obj: mythx_models.response.analysis_status.AnalysisStatusResponse) → str[source]
static format_detected_issues(obj: mythx_models.response.detected_issues.DetectedIssuesResponse, inp: mythx_models.response.analysis_input.AnalysisInputResponse)[source]
static format_version(obj: mythx_models.response.version.VersionResponse)[source]

mythx_cli.formatter.simple_stdout

class mythx_cli.formatter.simple_stdout.SimpleFormatter[source]

Bases: mythx_cli.formatter.base.BaseFormatter

static format_analysis_list(resp: mythx_models.response.analysis_list.AnalysisListResponse) → str[source]
static format_analysis_status(resp: mythx_models.response.analysis_status.AnalysisStatusResponse) → str[source]
static format_detected_issues(resp: mythx_models.response.detected_issues.DetectedIssuesResponse, inp: mythx_models.response.analysis_input.AnalysisInputResponse) → str[source]
static format_version(resp: mythx_models.response.version.VersionResponse) → str[source]