Skip to main content

Execute `playwright install` from Python

Project description

install-playwright-python

PyPI version CI

Execute playwright install from Python.

Install

pip install install-playwright

Example

from install_playwright import install
from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    install([p.chromium])
    browser = p.chromium.launch()
    # ...
import asyncio
from playwright.async_api import async_playwright

async def main():
    async with async_playwright() as p:
        install([p.chromium])
        browser = await p.chromium.launch()
        # ...

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

install_playwright-1.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

install_playwright-1.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file install_playwright-1.0.1.tar.gz.

File metadata

  • Download URL: install_playwright-1.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for install_playwright-1.0.1.tar.gz
Algorithm Hash digest
SHA256 304601bdda81fab88c03c5e9f04acd58dc3c76401fe793a2999c9879095cdb84
MD5 cbc3eeb934cc055699595e8e78aac4d8
BLAKE2b-256 dbd842df9af5b5342af5c609d7b6d9942a4c2d4e82891a268283c3bea7495ce4

See more details on using hashes here.

File details

Details for the file install_playwright-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: install_playwright-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for install_playwright-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68d8402003865716eaaf5e5f3e18dfb4058765fe412f2c431ed9102eb207164c
MD5 2a93699965e80865aac1d96f50519f3f
BLAKE2b-256 fce6b356b127734f790815453f2d05a7b30b1b75fdb50b1eb322beef823c4dc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page