Skip to content

API Reference parrot_tools.cloudsploit.parser

github-actions[bot] edited this page Nov 5, 2026 · 4 revisions

parrot_tools.cloudsploit.parser

View source

Parses CloudSploit JSON output into typed ScanResult objects.

Alias ScanFinding

Re-exported from parrot_tools.cloudsploit.models.ScanFinding.

Alias ScanResult

Re-exported from parrot_tools.cloudsploit.models.ScanResult.

Class ScanResultParser

Parses CloudSploit JSON output into typed ScanResult objects.

Method ScanResultParser.parse

Parse raw CloudSploit JSON string into ScanResult.

parse(raw_json: str, timestamp: Optional[datetime] = None) -> ScanResult

Parameter Type Default Description
raw_json str Raw JSON string from CloudSploit output.
timestamp Optional[datetime] None Override scan timestamp. Defaults to now.

Returns: ScanResult — Parsed ScanResult with findings and computed summary.

Method ScanResultParser.filter_by_severity

Return a new ScanResult containing only findings with the given severity levels.

filter_by_severity(result: ScanResult, levels: list[SeverityLevel]) -> ScanResult

Parameter Type Default Description
result ScanResult
levels list[SeverityLevel]

Returns: ScanResult

Method ScanResultParser.filter_by_category

Return a new ScanResult containing only findings in the given categories.

filter_by_category(result: ScanResult, categories: list[str]) -> ScanResult

Parameter Type Default Description
result ScanResult
categories list[str]

Returns: ScanResult

Method ScanResultParser.filter_by_region

Return a new ScanResult containing only findings in the given regions.

filter_by_region(result: ScanResult, regions: list[str]) -> ScanResult

Parameter Type Default Description
result ScanResult
regions list[str]

Returns: ScanResult

Method ScanResultParser.save_result

Save ScanResult as JSON to filesystem.

save_result(result: ScanResult, path: str) -> str

Parameter Type Default Description
result ScanResult The ScanResult to persist.
path str Destination file path.

Returns: str — The absolute path of the saved file.

Method ScanResultParser.load_result

Load a ScanResult from a previously saved JSON file.

load_result(path: str) -> ScanResult

Parameter Type Default Description
path str Path to the JSON file.

Returns: ScanResult — Deserialized ScanResult.

Alias ScanSummary

Re-exported from parrot_tools.cloudsploit.models.ScanSummary.

Alias SeverityLevel

Re-exported from parrot_tools.cloudsploit.models.SeverityLevel.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally