After installing the package using pip install tf-playwright-stealth, I encountered an import error when trying to use:
from playwright_stealth import stealth_sync
The import fails because init.py is missing from the playwright_stealth directory in the installed package. As a result, stealth_sync, stealth_async, and StealthConfig are not exposed at the top level.
Here’s a screenshot of the installed structure — note the absence of init.py:

Expected behavior:
init.py should exist and contain:
from playwright_stealth.stealth import StealthConfig, stealth_sync, stealth_async
__all__ = ["StealthConfig", "stealth_async", "stealth_sync"]
This would allow users to import stealth_sync as shown in the documentation.
Thanks for your work on this package!
After installing the package using
pip install tf-playwright-stealth, I encountered an import error when trying to use:The import fails because init.py is missing from the playwright_stealth directory in the installed package. As a result, stealth_sync, stealth_async, and StealthConfig are not exposed at the top level.
Here’s a screenshot of the installed structure — note the absence of init.py:
Expected behavior:
init.py should exist and contain:
This would allow users to import stealth_sync as shown in the documentation.
Thanks for your work on this package!