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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: install_playwright-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

File hashes

Hashes for install_playwright-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1122cd4ac63788e73f3ab02d8366e056cae6fff171db85b64e5925f8d6fa4b29
MD5 bd924b22814ac1932225c73768496a9c
BLAKE2b-256 f95bdacf52a586e8c792cf2225774c7297d3f58e64f8b5fec85a51759fb1790d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for install_playwright-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f764e4ce6490679bcd4cf08bd292737cf989cce35eb74079c0a7468c5bca9d0f
MD5 8ae725e059abf91a4c388c6fd042626a
BLAKE2b-256 bed1e86b1369275fcfca1fc17d644971ff3558866657a74363e4c92994a3dfbd

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