2026-05-12 21:34:14 -07:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
[project]
|
|
|
|
|
name = "invisible-playwright"
|
feat: public config helpers for third-party integrations (#25)
Adds invisible_playwright.config module with:
- get_default_stealth_prefs(seed, *, pin, locale, timezone,
extra_prefs, humanize, virtual_display) -> dict
- get_default_args() -> list
Both also re-exported at the package root alongside the existing
InvisiblePlaywright. ensure_binary is also re-exported there for
parity with the cloakbrowser.download.ensure_binary integration
pattern that downstream projects (Skyvern PR #5340, crawlee-python
PR #1794, agno PR #8129) already expect.
These helpers let third-party fetchers (changedetection.io plugins,
Crawlee BrowserPool subclasses, agno toolkits) drive
playwright.firefox.launch(executable_path=..., firefox_user_prefs=...)
themselves without depending on the InvisiblePlaywright context
manager owning the lifecycle. Same seed semantics, same humanize
toggle, same extra_prefs overlay as the existing wrapper.
Tests: tests/unit/test_config_public.py adds 14 unit tests covering
deterministic seed, locale/timezone/pin/extra_prefs/humanize
variations, and round-trip via the public namespace. Full unit suite
(392 tests) stays green.
Backwards compatible: InvisiblePlaywright surface is unchanged.
BINARY_VERSION stays at firefox-7. Python-only release.
2026-05-28 17:05:22 -07:00
|
|
|
version = "0.2.0"
|
2026-05-12 21:34:14 -07:00
|
|
|
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.11"
|
|
|
|
|
license = "MIT"
|
|
|
|
|
authors = [{ name = "feder-cr", email = "85809106+feder-cr@users.noreply.github.com" }]
|
|
|
|
|
keywords = ["playwright", "firefox", "stealth", "anti-detect", "automation"]
|
|
|
|
|
classifiers = [
|
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"Programming Language :: Python :: 3.11",
|
|
|
|
|
"Programming Language :: Python :: 3.12",
|
|
|
|
|
]
|
|
|
|
|
dependencies = [
|
|
|
|
|
"playwright>=1.40",
|
|
|
|
|
"platformdirs>=4",
|
|
|
|
|
"requests>=2.31",
|
|
|
|
|
"tqdm>=4.66",
|
|
|
|
|
"pywin32>=306; sys_platform == 'win32'",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
2026-05-16 17:14:08 -07:00
|
|
|
dev = ["pytest>=7", "pytest-mock>=3", "responses>=0.24", "build>=1"]
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
markers = [
|
|
|
|
|
"unit: pure-logic tests, no I/O or external deps",
|
|
|
|
|
"integration: multi-module tests, no browser",
|
|
|
|
|
"e2e: requires patched Firefox binary and display",
|
|
|
|
|
"slow: tests that build the wheel — opt-in only",
|
|
|
|
|
"linux_only: tests that require Linux platform",
|
|
|
|
|
]
|
|
|
|
|
addopts = "-m 'not slow and not e2e'"
|
2026-05-21 20:21:12 -07:00
|
|
|
# tests/playwright-upstream/ is a vendored Microsoft Playwright test suite
|
|
|
|
|
# used for compatibility verification on demand. It has its own deps
|
|
|
|
|
# (pixelmatch with API not matching our version) and a conftest that fails
|
|
|
|
|
# collection in our env. Run it explicitly with --override-ini for compat
|
|
|
|
|
# audits, not on every push.
|
|
|
|
|
norecursedirs = ["playwright-upstream"]
|
2026-05-12 21:34:14 -07:00
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
invisible-playwright = "invisible_playwright.cli:main"
|
|
|
|
|
|
|
|
|
|
[project.urls]
|
|
|
|
|
Homepage = "https://github.com/feder-cr/invisible_playwright"
|
|
|
|
|
Issues = "https://github.com/feder-cr/invisible_playwright/issues"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["src/invisible_playwright"]
|
|
|
|
|
|
2026-05-16 17:14:08 -07:00
|
|
|
[tool.hatch.build.targets.sdist]
|
|
|
|
|
include = ["src/invisible_playwright", "tests", "README.md", "LICENSE", "pyproject.toml"]
|