skillfed

install-playwright

Execute `playwright install` from Python

install-playwright v1.0.2 626.1K downloads/30d#5,692 on PyPI9
Permissive license MIT Active released

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-playwright

uv

uv add install-playwright

poetry

poetry add install-playwright

Installing 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

License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTyping :: Typed

Tags

playwright browser installation pythoninstall playwright browsers programmaticallyplaywright install from python codeautomate playwright setupplaywright cli wrapper pythonbrowser driver installation automationplaywright dependency setup
browser-automationplaywright-wrappersetup-automation

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

playwright

Automate Chromium, Firefox, and WebKit browsers…

permissive · top 1,000 on PyPI

rebrowser-playwright

A patched version of Playwright that automates…

permissive · top 15,000 on PyPI

pytest-playwright-asyncio

A pytest plugin that integrates Playwright…

permissive · top 15,000 on PyPI

scrapy-playwright

Integrates Playwright browser automation into…

permissive · top 5,000 on PyPI

hyperbrowser

Python SDK for controlling remote browser…

permissive · top 15,000 on PyPI

pytest-playwright

A pytest plugin that integrates Playwright…

permissive · top 5,000 on PyPI

testmuai-playwright-bindings

Runs exported browser automation tests locally…

permissive · top 15,000 on PyPI

tf-playwright-stealth

Patches Playwright to evade bot-detection…

permissive · top 15,000 on PyPI

playwright-stealth

Applies evasion techniques to Playwright…

permissive · top 5,000 on PyPI

patchright

Patchright is an undetected fork of Playwright…

permissive · top 5,000 on PyPI