Universal-Playwright for python
universal-playwright for python is a binary-free distribution of the Microsoft browser automation library. It is very lightweight and platform independent, thus extending playwright compatibility to virtually all platforms, including those not supported by the original version (e.g: Alpine Linux).
pip install universal-playwright
The release version of this package matches the exact release version of the original playwright for python.
🎭 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 universal-playwright 1.64.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| universal_playwright-1.64.1-py3-none-any.whl | Python 3 | none | any | Details for universal_playwright-1.64.1-py3-none-any.whl |
Release files / universal_playwright-1.64.1-py3-none-any.whl
| Download URL | universal_playwright-1.64.1-py3-none-any.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2264ce1dcb6a8ac791ca3e0aa231da795173d16cec2871f24808aaf7a8fbfc1b
|
|
BLAKE2b-256 checksum How to use checksums |
a2ed4faa57110c3a17b7fc518dea1b68d77a5de507401b9b63321e6dddc6f1e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.17
|
Security for universal-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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.