ov.config#
Configuration – the single source of truth for ov’s defaults.
Everything is a keyword-only field on OvConfig with a smart default, so
ov.observe(url) works with zero config while every knob stays reachable.
Environment variables (OV_*) override the defaults; an explicit constructor
argument overrides the environment.
This module also encodes the default-safety checklist from the spec’s
boundary note (§6): redaction is on, secret/PII capture is off, a polite rate is
applied, robots.txt intent is respected by default, and a foreign target
requires an explicit authorized=True acknowledgement.
Functions
Return the XDG-aligned default root for |
Classes
|
Resolved settings for a capture/analysis run (keyword-only, env-overridable). |
- class ov.config.OvConfig(*, store_root=default_store_root(), headed=False, browser='chromium', nav_timeout_ms=30000, default_probes=('navigation', 'network', 'dom', 'screenshot', 'console', 'fingerprint', 'assets', 'a11y'), max_body_bytes=2000000, console_text_cap=2000, ws_frame_cap=4096, capture_body_content_types=('application/json', 'application/javascript', 'text/javascript', 'text/html', 'text/css', 'text/event-stream', 'application/graphql', 'application/xml', 'text/plain'), max_steps=40, max_failures=6, wall_clock_s=300.0, no_progress_steps=3, redact_values=True, capture_secrets=False, respect_robots=True, polite_rate_s=0.3, authorized=False, use_proxy=False, stealth_profile=None)[source]#
Bases:
objectResolved settings for a capture/analysis run (keyword-only, env-overridable).
Construct with
from_env()for the env-aware default, or pass explicit fields to override. The instance is snapshotted into everyCaptureRun(settings_snapshot) for provenance.