🎭 Playwright for Python

Playwright is a Python library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast. See how Playwright is better.
| Linux | macOS | Windows | |
|---|---|---|---|
| Chromium 156.0.8078.4 | ✅ | ✅ | ✅ |
| WebKit 27.2 | ✅ | ✅ | ✅ |
| Firefox 157.0 | ✅ | ✅ | ✅ |
Documentation
https://playwright.dev/python/docs/intro
API Reference
https://playwright.dev/python/docs/api/class-playwright
Example
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
for browser_type in [p.chromium, p.firefox, p.webkit]:
browser = browser_type.launch()
page = browser.new_page()
page.goto('http://playwright.dev')
page.screenshot(path=f'example-{browser_type.name}.png')
browser.close()
import asyncio
from playwright.async_api import async_playwright
async def main():
async with async_playwright() as p:
for browser_type in [p.chromium, p.firefox, p.webkit]:
browser = await browser_type.launch()
page = await browser.new_page()
await page.goto('http://playwright.dev')
await page.screenshot(path=f'example-{browser_type.name}.png')
await browser.close()
asyncio.run(main())
Other languages
More comfortable in another programming language? Playwright is also available in
Metadata
Release files for playwright 1.64.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| playwright-1.64.1-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details |
| playwright-1.64.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| playwright-1.64.1-py3-none-win32.whl | Python 3 | none | Windows x86-32 | Details |
| playwright-1.64.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| playwright-1.64.1-py3-none-manylinux1_x86_64.whl | Python 3 | none | Linux glibc 2.5+ x86-64 | Details |
| playwright-1.64.1-py3-none-macosx_11_0_universal2.whl | Python 3 | none | macOS 11.0+ universal2 (ARM64, x86-64) | Details |
| playwright-1.64.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| playwright-1.64.1-py3-none-macosx_10_13_x86_64.whl | Python 3 | none | macOS 10.13+ x86-64 | Details |
Total release size: 341.1 MB
Release files / playwright-1.64.1-py3-none-win_arm64.whl
| Download URL | playwright-1.64.1-py3-none-win_arm64.whl |
|---|---|
| Size | 34.7 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
983ccd085453ea5a7588193657fc349a6ffbf7bf7ba663fd58dc81e4aa3af9d9
|
|
BLAKE2b-256 checksum How to use checksums |
c54bd7ddde9467a5fcfe6a0d3c954732332e98a4f4a9025fd42c8d091c16e5f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / playwright-1.64.1-py3-none-win_amd64.whl
| Download URL | playwright-1.64.1-py3-none-win_amd64.whl |
|---|---|
| Size | 38.8 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5e240a79464434c9260957b9ef59a5808e02e96e3fcabdc717fd7485260b9730
|
|
BLAKE2b-256 checksum How to use checksums |
960a64db6851aa1852a4f76be28eea71d4e2bf9f3ce493ee2e66939426729046
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / playwright-1.64.1-py3-none-win32.whl
| Download URL | playwright-1.64.1-py3-none-win32.whl |
|---|---|
| Size | 38.8 MB |
| Tags | Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
d3c48b31da426c2f3562d0919cb9ea4e5415f6dbd29d7211fa4d66cca24fbd2f
|
|
BLAKE2b-256 checksum How to use checksums |
33878ff7af99387ee72ae9b46a66ece7a0c0aa63f73320ecf6dd3dd087fa840a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / playwright-1.64.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | playwright-1.64.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 48.2 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
a29fda44725e11b0b625c4bff6458a1f6dbee97b88c9788d12e18a8344458c2d
|
|
BLAKE2b-256 checksum How to use checksums |
0c11545f25e47ec54e1e8a2892ef9994fc2b298f909ab37b88578e3a1f87ac2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / playwright-1.64.1-py3-none-manylinux1_x86_64.whl
| Download URL | playwright-1.64.1-py3-none-manylinux1_x86_64.whl |
|---|---|
| Size | 48.5 MB |
| Tags | Linux glibc 2.5+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
577b8d88778c245cfbd145ae17cf53044f084b1b46c55c69081d4069d56057e2
|
|
BLAKE2b-256 checksum How to use checksums |
15b9e481a34572933b5cf179d5637c98da488c732ee339dff5b73a0624d2e42b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / playwright-1.64.1-py3-none-macosx_11_0_universal2.whl
| Download URL | playwright-1.64.1-py3-none-macosx_11_0_universal2.whl |
|---|---|
| Size | 44.5 MB |
| Tags | Python 3 macOS 11.0+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
6a6f99adad1ae40e6ee62efe89785db861ce7ddd57651521cb31894183cc4ae3
|
|
BLAKE2b-256 checksum How to use checksums |
44fa468f313a56d33a6420705147c8d47bef558f087856edf38c5b13eef8aa6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / playwright-1.64.1-py3-none-macosx_11_0_arm64.whl
| Download URL | playwright-1.64.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 43.2 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
59f7b041284ce8d1b72098ae50ca48a2d83692eec25154ab5ba79d4b6b4fe8a9
|
|
BLAKE2b-256 checksum How to use checksums |
724f572bbbe60a5787ca61a84bad934c3ce19c08c2bc9c0e9781bf0d99cad1a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / playwright-1.64.1-py3-none-macosx_10_13_x86_64.whl
| Download URL | playwright-1.64.1-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 44.5 MB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
29453ff76e25c17d0b45658cacd6b92e9eec46e8db21e134fb3b7143df50f013
|
|
BLAKE2b-256 checksum How to use checksums |
8dc8cc677856d89a0c077673b40ab915ed5597bf1347b205cabe70121c431ca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for playwright 1.64.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 8 files in this release have been uploaded with provenance metadata.
Attestation for playwright-1.64.1-py3-none-win_arm64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.