install-playwright-1.0.0
توضیحات
Execute `playwright install` from Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | install-playwright-1.0.0 |
| نام | install-playwright |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | eggplants <w10776e8w@yahoo.co.jp> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/install-playwright/ |
| مجوز | MIT |
# install-playwright-python
[](
<https://badge.fury.io/py/install-playwright>
) [](
<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
نیازمندی
| مقدار | نام |
|---|---|
| - | playwright<2,>=1.49.1 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4,>=3.10 | Python |
نحوه نصب
نصب پکیج whl install-playwright-1.0.0:
pip install install-playwright-1.0.0.whl
نصب پکیج tar.gz install-playwright-1.0.0:
pip install install-playwright-1.0.0.tar.gz