Metadata-Version: 2.4
Name: install-playwright
Version: 1.0.1
Summary: Execute `playwright install` from Python
Project-URL: Repository, https://github.com/eggplants/install-playwright-python
Author-email: eggplants <w10776e8w@yahoo.co.jp>
License-Expression: MIT
License-File: LICENSE
Keywords: browser,install,playwright
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Typing :: Typed
Requires-Python: <4,>=3.10
Requires-Dist: playwright<2,>=1.49.1
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>
) [![CI](
  <https://github.com/eggplants/install-playwright-python/actions/workflows/ci.yml/badge.svg>
  )](
  <https://github.com/eggplants/install-playwright-python/actions/workflows/ci.yml>
)

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

## Install

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

## Example

```python
from install_playwright import install
```

```python
from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    install([p.chromium])
    browser = p.chromium.launch()
    # ...
```

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