Metadata-Version: 2.1
Name: install_playwright
Version: 0.1.0
Summary: Execute `playwright install` from Python
Home-page: https://github.com/eggplants/install-playwright-python
License: MIT
Keywords: playwright,install,browser
Author: eggplants
Author-email: w10776e8w@yahoo.co.jp
Requires-Python: >=3.8,<4
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Dist: playwright (>=1.9,<2.0)
Project-URL: Repository, https://github.com/eggplants/install-playwright-python
Description-Content-Type: text/markdown

# install-playwright-python

[![PyPI version](
  <https://badge.fury.io/py/install-playwright.svg>
  )](
  <https://badge.fury.io/py/install-playwright>
) [![Maintainability](
  <https://api.codeclimate.com/v1/badges/75293ef4c40e3382cfe8/maintainability>
  )](
  <https://codeclimate.com/github/eggplants/install-playwright-python/maintainability>
) [![pre-commit.ci status](
  <https://results.pre-commit.ci/badge/github/eggplants/install-playwright-python/master.svg>
  )](
  <https://results.pre-commit.ci/latest/github/eggplants/install-playwright-python/master>
) [![Test Coverage](
  <https://api.codeclimate.com/v1/badges/75293ef4c40e3382cfe8/test_coverage>
  )](
  <https://codeclimate.com/github/eggplants/install-playwright-python/test_coverage>
) [![Test](
  <https://github.com/eggplants/install-playwright-python/actions/workflows/test.yml/badge.svg>
  )](
  <https://github.com/eggplants/install-playwright-python/actions/workflows/test.yml>
)

Execute [`playwright install`](https://playwright.dev/python/docs/cli) from Python.

```python
from install_playwright import install
```

```python
from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    install(p.chrome)
    browser = p.chrome.launch()
    # ...
```

```python
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

```bash
pip install install-playwright
```

## License

MIT

