# install-playwright-python
[](
<https://badge.fury.io/py/install-playwright>
) [](
<https://codeclimate.com/github/eggplants/install-playwright-python/maintainability>
) [](
<https://results.pre-commit.ci/latest/github/eggplants/install-playwright-python/master>
) [](
<https://codeclimate.com/github/eggplants/install-playwright-python/test_coverage>
) [](
<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
Raw data
{
"_id": null,
"home_page": "https://github.com/eggplants/install-playwright-python",
"name": "install_playwright",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.8",
"maintainer_email": null,
"keywords": "playwright, install, browser",
"author": "eggplants",
"author_email": "w10776e8w@yahoo.co.jp",
"download_url": "https://files.pythonhosted.org/packages/c3/11/4d7cb2d9404a3c17a65e550ac903c2430e4f8e1b34c3239fa4f85afd086c/install_playwright-0.1.0.tar.gz",
"platform": null,
"description": "# install-playwright-python\n\n[](\n <https://badge.fury.io/py/install-playwright>\n) [](\n <https://codeclimate.com/github/eggplants/install-playwright-python/maintainability>\n) [](\n <https://results.pre-commit.ci/latest/github/eggplants/install-playwright-python/master>\n) [](\n <https://codeclimate.com/github/eggplants/install-playwright-python/test_coverage>\n) [](\n <https://github.com/eggplants/install-playwright-python/actions/workflows/test.yml>\n)\n\nExecute [`playwright install`](https://playwright.dev/python/docs/cli) from Python.\n\n```python\nfrom install_playwright import install\n```\n\n```python\nfrom playwright.sync_api import sync_playwright\n\nwith sync_playwright() as p:\n install(p.chrome)\n browser = p.chrome.launch()\n # ...\n```\n\n```python\nimport asyncio\nfrom playwright.async_api import async_playwright\n\nasync def main():\n async with async_playwright() as p:\n install(p.chrome)\n browser = await p.chrome.launch()\n # ...\n```\n\n## Install\n\n```bash\npip install install-playwright\n```\n\n## License\n\nMIT\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Execute `playwright install` from Python",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/eggplants/install-playwright-python",
"Repository": "https://github.com/eggplants/install-playwright-python"
},
"split_keywords": [
"playwright",
" install",
" browser"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9926ac0f806e4fd297df90ee69e3273bf84fc079cfc6254184cadda1f9f58cc0",
"md5": "a04e871cd5ec7af3654bd8d08a15e1f8",
"sha256": "37850e49bdae09b72c0922b64bb623f4c44fd9ea09ba9ad5e113735399d8f8d2"
},
"downloads": -1,
"filename": "install_playwright-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a04e871cd5ec7af3654bd8d08a15e1f8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.8",
"size": 3236,
"upload_time": "2024-04-30T02:40:34",
"upload_time_iso_8601": "2024-04-30T02:40:34.090925Z",
"url": "https://files.pythonhosted.org/packages/99/26/ac0f806e4fd297df90ee69e3273bf84fc079cfc6254184cadda1f9f58cc0/install_playwright-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c3114d7cb2d9404a3c17a65e550ac903c2430e4f8e1b34c3239fa4f85afd086c",
"md5": "67a694b1d48e0c6dd723ff76cd3fa60b",
"sha256": "bd9eb0ee05cfb2734b21d3a42ae3cf253840d858c3a7d867f015b54000f955c8"
},
"downloads": -1,
"filename": "install_playwright-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "67a694b1d48e0c6dd723ff76cd3fa60b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.8",
"size": 2969,
"upload_time": "2024-04-30T02:40:35",
"upload_time_iso_8601": "2024-04-30T02:40:35.593508Z",
"url": "https://files.pythonhosted.org/packages/c3/11/4d7cb2d9404a3c17a65e550ac903c2430e4f8e1b34c3239fa4f85afd086c/install_playwright-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-30 02:40:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "eggplants",
"github_project": "install-playwright-python",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "install_playwright"
}