install-playwright
Execute `playwright install` from Python
What it is and what it does
install-playwright wraps Playwright's CLI installation command to make it callable from within Python code. Instead of running `playwright install` as a shell command before or alongside your script, you import the install function and call it directly with the browser types you need, passing them as a list. This is useful when you want to programmatically ensure browser binaries are available at runtime—for instance, in containerized deployments, CI/CD pipelines, or applications that dynamically provision Playwright environments.
The package supports both sync and async Playwright workflows. It depends only on playwright itself and requires Python 3.10 or later. The codebase is actively maintained and carries no known security vulnerabilities.
Use it for:
- Ensure Playwright browser binaries are installed during application startup without relying on external shell commands.
- Automate browser setup in CI/CD pipelines where you want to manage Playwright installation from within Python test code.
- Deploy Playwright-based applications in containers where you need to install browsers as part of the runtime initialization.
- Build tools or frameworks that wrap Playwright and need to guarantee browser availability before launching automation.
- Simplify onboarding for users who want to use Playwright without manually running CLI setup steps.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python function to execute the Playwright browser installation command programmatically, wrapping the CLI tool for use within Python code.
Yes, if you use Playwright and need to install browsers programmatically from Python code rather than via shell commands. The package is actively maintained, has no security issues, and solves a real friction point in Playwright workflows. Install it if you're building applications or tools where you want to manage browser setup as part of your Python initialization logic.
Install
install-playwright on PyPI
pip
pip install install-playwrightuv
uv add install-playwrightpoetry
poetry add install-playwrightInstalling install-playwright
Before you install
Active maintenance with a recent release (7 days ago) and no known vulnerabilities. Low install friction with a single runtime dependency on playwright.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal obligations.
Quickstart
pip install install-playwright
from install_playwright import install
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
install([p.chromium])
browser = p.chromium.launch()
Requires Python 3.10 or later; playwright must be installed separately as a runtime dependency.
Verify before relying
- Whether the package handles all Playwright browser types or only a subset
- Whether it supports async and sync contexts equally or has known limitations in either mode
- Whether it works with Playwright versions beyond the current release cycle
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — playwright |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 626,051/month — #5,692 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: install_playwright-1.0.2-py3-none-any.whl
Keywords: browser, install, playwright
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
playwrightAutomate Chromium, Firefox, and WebKit browsers…
permissive · top 1,000 on PyPI
rebrowser-playwrightA patched version of Playwright that automates…
permissive · top 15,000 on PyPI
pytest-playwright-asyncioA pytest plugin that integrates Playwright…
permissive · top 15,000 on PyPI
scrapy-playwrightIntegrates Playwright browser automation into…
permissive · top 5,000 on PyPI
hyperbrowserPython SDK for controlling remote browser…
permissive · top 15,000 on PyPI
pytest-playwrightA pytest plugin that integrates Playwright…
permissive · top 5,000 on PyPI
testmuai-playwright-bindingsRuns exported browser automation tests locally…
permissive · top 15,000 on PyPI
tf-playwright-stealthPatches Playwright to evade bot-detection…
permissive · top 15,000 on PyPI
playwright-stealthApplies evasion techniques to Playwright…
permissive · top 5,000 on PyPI
patchrightPatchright is an undetected fork of Playwright…
permissive · top 5,000 on PyPI