Skip to main content
Requires Python 3.10 or newer. No runtime dependencies. The API is synchronous, as its transport is.

Client

Options

str
required
Authenticates detection, telemetry, and capture. Raises FrostWolfError when missing or blank.
str
default:"https://api.frostwolf.app"
Base URL of the FrostWolf API.
bool
default:"True"
Ship scan metrics to the console. Detection is unaffected either way.
int
default:"5000"
How often the telemetry queue is flushed.
int
default:"50"
Flush as soon as this many events are queued.
int
default:"1000"
Drop the oldest events past this depth.
int
default:"5000"
Abort a request after this long.
bool
default:"False"
Return matched substrings and include them in telemetry.
"block" | "allow"
default:"block"
What to do when the detection call fails. block fails closed.
bool | CaptureOptions
default:"False"
Capture request and response bodies for decorated calls.
Transport
Override the HTTP transport. Defaults to urllib.
Callable[[Exception], None]
Called when a detection call or background flush fails. Never raises.
GuardOptions
Defaults applied to every guard call.

GuardOptions

CloakConfig

Client methods

fw.guard

fw.guard.cloak

Example

Errors