Execute `playwright install` from Python
Project description
install-playwright-python
Execute playwright install from Python.
Install
pip install install-playwright
Example
from install_playwright import install
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
install([p.chromium])
browser = p.chromium.launch()
# ...
import asyncio
from playwright.async_api import async_playwright
async def main():
async with async_playwright() as p:
install([p.chromium])
browser = await p.chromium.launch()
# ...
License
MIT
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file install_playwright-1.0.0.tar.gz.
File metadata
- Download URL: install_playwright-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
620a93f41cb0ba1989e1a7f016ccbf3008137f8c204fff6d529ac2b79a6298e3
|
|
| MD5 |
3c3201aca5f83bd6964a7e827ee97514
|
|
| BLAKE2b-256 |
727fe58049588bd33c3dd38ab1027c29a15352737dc01f16111e5d4ae12465df
|
File details
Details for the file install_playwright-1.0.0-py3-none-any.whl.
File metadata
- Download URL: install_playwright-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e02a33275f1dbad5c0a4da1b8d92b4338019814ef4a75e42938a4b7458cb51c
|
|
| MD5 |
e850d5f5fb056cbe03ced6a45fd1fd08
|
|
| BLAKE2b-256 |
d6c3997bccccba0764c5a4d7da7829c99b59e25b6f38a0f38fd596c9eefde35a
|