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.0.0.tar.gz
.
File metadata
- Download URL: install_playwright-0.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ece6bf90ef620c324287f199947f75c69972ebd371f342d74b72fdab690bd56f |
|
MD5 | 8589fe3d17498d51f19c0658d3095a62 |
|
BLAKE2b-256 | 0c955703b9c395d04899690d7a52f440962d270168eedeed382ed9d8cef23838 |
File details
Details for the file install_playwright-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: install_playwright-0.0.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78b87a24e122b507995594fc0a18ab19078e3aae99c640f029203b0a46904b19 |
|
MD5 | 4bb529e59842fdc66b917303b79eefcb |
|
BLAKE2b-256 | 271f23c2d72c31078e98e7bb2e79bbb2cdf1e80caa90e5a70e07207a9067ab78 |