feat: add launch_persistent_context + async variant (Python), fix import os at module level

This commit is contained in:
lilos
2026-03-04 12:19:56 +03:00
parent 51c3f464a5
commit c44b04a953
2 changed files with 198 additions and 1 deletions
+3 -1
View File
@@ -11,7 +11,7 @@ Usage:
browser.close()
"""
from .browser import launch, launch_async, launch_context
from .browser import launch, launch_async, launch_context, launch_persistent_context, launch_persistent_context_async
from .config import CHROMIUM_VERSION, get_default_stealth_args
from .download import binary_info, check_for_update, clear_cache, ensure_binary
from ._version import __version__
@@ -20,6 +20,8 @@ __all__ = [
"launch",
"launch_async",
"launch_context",
"launch_persistent_context",
"launch_persistent_context_async",
"ensure_binary",
"clear_cache",
"binary_info",