Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 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 (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-10T23:28:13.000Z (26 days ago)
- Last Synced: 2024-10-25T12:38:13.057Z (12 days ago)
- Topics: auto-installer, playwright, playwright-python, python, util
- Language: Python
- Homepage:
- Size: 344 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# install-playwright-python
[![PyPI version](
)](
) [![Maintainability](
)](
) [![pre-commit.ci status](
)](
) [![Test Coverage](
)](
) [![Test](
)](
)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