aeat.adapters.outbound.aeat.browser package¶
Central browser-automation surface for AEAT outbound adapters.
Owns the Playwright-backed browser sessions every outbound AEAT adapter
shares, plus the site-health probing that classifies whether the Sede is
reachable, rate-limiting, under maintenance, or serving a WAF challenge.
The optional browser runtime is materialised only by the session factories;
importing this facade exposes types and factories without opening a browser.
Non-OK site-health classifications are carried through
core.errors.SiteHealthError so diagnostics and live-read
application code can inspect one status envelope instead of re-parsing pages.
Major declarations:
BrowserSessionandDefaultBrowserSession, withcreate_browser_session()anddefault_browser_session_factory()— the session abstraction and its factories.run_health_check()withSiteHealthStatusandSiteHealthState— the reachability probe and its verdict.EvasionStrategyandPlaywrightStealthEvasion— the bot-detection evasion seam.BrowserError,BrowserValidationError, andBrowserFailureMode— the failure taxonomy.
See also
adapters.outbound.aeat.auth.BrowserContextProvisionerAuth-provider hook consumed by
BrowserSession.create_context().adapters.outbound.aeat.auth.CertificateContextProvisionerCertificate-auth provisioner that adds Playwright client-certificate kwargs and the context thumbprint marker.
adapters.outbound.aeat.sedeRead-only Sede readers that consume these browser sessions.
Submodules¶
- aeat.adapters.outbound.aeat.browser._errors module
BrowserErrorBrowserValidationErrorBrowserEvasionErrorBrowserFailureModeBrowserFailureMode.SESSION_BUSYBrowserFailureMode.BROWSER_LAUNCH_FAILEDBrowserFailureMode.CONTEXT_CREATE_FAILEDBrowserFailureMode.EVASION_FAILEDBrowserFailureMode.CONTEXT_ANNOTATION_FAILEDBrowserFailureMode.PAGE_CONTENT_FAILEDBrowserFailureMode.NAVIGATION_TIMEOUTBrowserFailureMode.NAVIGATION_TRANSPORT_ERRORBrowserFailureMode.SITE_HEALTH_NON_OKBrowserFailureMode.BROWSER_CLOSE_FAILED
- aeat.adapters.outbound.aeat.browser._factory module
- aeat.adapters.outbound.aeat.browser._site_health module
- aeat.adapters.outbound.aeat.browser._site_health_parsers module
- aeat.adapters.outbound.aeat.browser._site_health_probe module
- aeat.adapters.outbound.aeat.browser.evasion module
- aeat.adapters.outbound.aeat.browser.health module
- aeat.adapters.outbound.aeat.browser.profile module
- aeat.adapters.outbound.aeat.browser.session module