Skip to main content

Execute `playwright install` from Python

Project description

install-playwright-python

PyPI version Maintainability pre-commit.ci status Test Coverage Test

Execute playwright install from Python.

from install_playwright import install
from playwright.sync_api import sync_playwright

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

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

Install

pip install install-playwright

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-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

install_playwright-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: install_playwright-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1018-azure

File hashes

Hashes for install_playwright-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd9eb0ee05cfb2734b21d3a42ae3cf253840d858c3a7d867f015b54000f955c8
MD5 67a694b1d48e0c6dd723ff76cd3fa60b
BLAKE2b-256 c3114d7cb2d9404a3c17a65e550ac903c2430e4f8e1b34c3239fa4f85afd086c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for install_playwright-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37850e49bdae09b72c0922b64bb623f4c44fd9ea09ba9ad5e113735399d8f8d2
MD5 a04e871cd5ec7af3654bd8d08a15e1f8
BLAKE2b-256 9926ac0f806e4fd297df90ee69e3273bf84fc079cfc6254184cadda1f9f58cc0

See more details on using hashes here.

Supported by

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