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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f764e4ce6490679bcd4cf08bd292737cf989cce35eb74079c0a7468c5bca9d0f |
|
MD5 | 8ae725e059abf91a4c388c6fd042626a |
|
BLAKE2b-256 | bed1e86b1369275fcfca1fc17d644971ff3558866657a74363e4c92994a3dfbd |