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
File details
Details for the file install_playwright-0.1.0.tar.gz
.
File metadata
- Download URL: install_playwright-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd9eb0ee05cfb2734b21d3a42ae3cf253840d858c3a7d867f015b54000f955c8 |
|
MD5 | 67a694b1d48e0c6dd723ff76cd3fa60b |
|
BLAKE2b-256 | c3114d7cb2d9404a3c17a65e550ac903c2430e4f8e1b34c3239fa4f85afd086c |
File details
Details for the file install_playwright-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: install_playwright-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37850e49bdae09b72c0922b64bb623f4c44fd9ea09ba9ad5e113735399d8f8d2 |
|
MD5 | a04e871cd5ec7af3654bd8d08a15e1f8 |
|
BLAKE2b-256 | 9926ac0f806e4fd297df90ee69e3273bf84fc079cfc6254184cadda1f9f58cc0 |