Pylowright browser automation helpers
Project description
pylowright
A lightweight browser automation helper package for Playwright-based browser automation.
Installation
Install the package locally for development:
pip install -e .
Install runtime dependencies:
pip install playwright
playwright install
Usage
Import the package and create a browser session using the provided APIs:
from pylowright import Browser
browser = Browser.persistent(profile="chrome")
try:
browser.goto("https://example.com")
print(browser.title)
finally:
browser.close()
Or use a session directly:
from pylowright.browser import BrowserSession
from playwright.sync_api import sync_playwright
with sync_playwright() as pw:
session = BrowserSession.ephemeral(pw.chromium, profile="chrome")
session.goto("https://example.com")
print(session.title)
session.close()
Testing
Run tests:
pytest -q
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylowright-0.4.tar.gz
(14.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pylowright-0.4-py3-none-any.whl
(16.0 kB
view details)
File details
Details for the file pylowright-0.4.tar.gz.
File metadata
- Download URL: pylowright-0.4.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38675b612f4a219677b7a80373f72b8f16ed5af3114786819df59c683e594bdd
|
|
| MD5 |
fd11bda66ec9ec1b129f0b0a41090eb1
|
|
| BLAKE2b-256 |
cc00c657b30e6dbf3b6e99e32ebc7d89de370d8b4a58c5f35db664900b9a0c90
|
File details
Details for the file pylowright-0.4-py3-none-any.whl.
File metadata
- Download URL: pylowright-0.4-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd729696b4573a1890f4e0a711d215d39f49ed9d91297fe07d1ad0becfbe6e89
|
|
| MD5 |
226572ffccc4da82f6bad23305702431
|
|
| BLAKE2b-256 |
c5da6905dbdad42c5b97490d4eecc4f71805eed1fad3feb8b4374568ddc1ba41
|