cadrumo.adapters.outbound.aeat.browser.profile module¶
Profile defaults for Playwright browser sessions.
Profile is the small browser-runtime record consumed by
adapters.outbound.aeat.browser.session.BrowserSession,
adapters.outbound.aeat.browser.factory.default_browser_session_factory(), and
Sede helpers that open Playwright pages. It carries the profile name, optional
user agent, and the locale/timezone values
forwarded into browser.new_context(...).
The locale and timezone defaults are resolved lazily from
core.config.Settings when a Profile is instantiated. Importing
this module therefore does not construct settings or validate external
constants for commands that never touch the browser adapter.
See also
adapters.outbound.aeat.browser.session.BrowserSession.create_context()Consumes
Profileto build Playwright context kwargs.adapters.outbound.aeat.browser.factory.opened_browser_page()Uses
Profilefor short-lived Sede browser contexts.
- class Profile(name, user_agent=None, locale=<factory>, timezone_id=<factory>)[source]¶
Bases:
objectBrowser profile values forwarded into a Playwright context.
Auth providers and Sede readers pass decrypted storage state explicitly as an in-memory mapping to
adapters.outbound.aeat.browser.session.BrowserSession.create_context().localeandtimezone_iddefault fromcore.config.Settingsat construction time unless supplied explicitly.- Variables:
name – A unique identifier for this profile.
user_agent – Optional custom User-Agent string.
locale – Optional locale (e.g., ‘es-ES’); defaults to
Settings.cadrumo_browser_locale.timezone_id – Optional timezone (e.g., ‘Europe/Madrid’); defaults to
Settings.cadrumo_browser_timezone.
- Parameters: