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

Uploaded Source

Built Distribution

install_playwright-0.0.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: install_playwright-0.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for install_playwright-0.0.0.tar.gz
Algorithm Hash digest
SHA256 ece6bf90ef620c324287f199947f75c69972ebd371f342d74b72fdab690bd56f
MD5 8589fe3d17498d51f19c0658d3095a62
BLAKE2b-256 0c955703b9c395d04899690d7a52f440962d270168eedeed382ed9d8cef23838

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for install_playwright-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78b87a24e122b507995594fc0a18ab19078e3aae99c640f029203b0a46904b19
MD5 4bb529e59842fdc66b917303b79eefcb
BLAKE2b-256 271f23c2d72c31078e98e7bb2e79bbb2cdf1e80caa90e5a70e07207a9067ab78

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