Skip to content

Missing __init__.py in playwright_stealth prevents import #43

Description

@aprinur

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:

Image

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions