Execute `playwright install` from Python
Project description
install-playwright-python
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for install_playwright-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37850e49bdae09b72c0922b64bb623f4c44fd9ea09ba9ad5e113735399d8f8d2 |
|
MD5 | a04e871cd5ec7af3654bd8d08a15e1f8 |
|
BLAKE2b-256 | 9926ac0f806e4fd297df90ee69e3273bf84fc079cfc6254184cadda1f9f58cc0 |