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.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78b87a24e122b507995594fc0a18ab19078e3aae99c640f029203b0a46904b19 |
|
MD5 | 4bb529e59842fdc66b917303b79eefcb |
|
BLAKE2b-256 | 271f23c2d72c31078e98e7bb2e79bbb2cdf1e80caa90e5a70e07207a9067ab78 |