https://github.com/eggplants/install-playwright-python
Execute `playwright install` from Python
https://github.com/eggplants/install-playwright-python
auto-installer playwright playwright-python python util
Last synced: 14 days ago
JSON representation
Execute `playwright install` from Python
- Host: GitHub
- URL: https://github.com/eggplants/install-playwright-python
- Owner: eggplants
- License: mit
- Created: 2022-12-23T18:38:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-06T08:34:36.000Z (15 days ago)
- Last Synced: 2025-05-07T02:29:40.517Z (14 days ago)
- Topics: auto-installer, playwright, playwright-python, python, util
- Language: Python
- Homepage:
- Size: 331 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# install-playwright-python
[](
) [](
) [](
) [](
) [](
)Execute [`playwright install`](https://playwright.dev/python/docs/cli) from Python.
```python
from install_playwright import install
``````python
from playwright.sync_api import sync_playwrightwith sync_playwright() as p:
install(p.chrome)
browser = p.chrome.launch()
# ...
``````python
import asyncio
from playwright.async_api import async_playwrightasync def main():
async with async_playwright() as p:
install(p.chrome)
browser = await p.chrome.launch()
# ...
```## Install
```bash
pip install install-playwright
```## License
MIT