--- id: install-playwright version: "1.0.2" license: MIT license_treatment: permissive maintenance: active --- # install-playwright — Execute `playwright install` from Python License: permissive · Maintenance: active · Downloads: 626.1K/mo ## 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 above — 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 pip install install-playwright uv add install-playwright 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_current - Install friction: low - Maintenance: active - Downloads: 626.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags playwright browser installation python, install playwright browsers programmatically, playwright install from python code, automate playwright setup, playwright cli wrapper python, browser driver installation automation, playwright dependency setup, browser-automation, playwright-wrapper, setup-automation [View on SkillFed](https://skillfed.io/packages/install-playwright) · [View on PyPI](https://pypi.org/project/install-playwright/)