Skip to main content

🎭 Playwright APIRequest builder

Checked with mypy Code style: black Imports: isort

Documented

Read it here 🔗 documentation
Read more about the builder pattern on 🔗 refactoring.guru

Example

# sync example
from playwright.sync_api import sync_playwright
from playwright_request.sync_builder import RequestBuilder

with sync_playwright() as p:
    builder = RequestBuilder(p, base_url='https://playwright.dev/')
    request = builder.get("python/docs/intro").create_request()
    response = request()
    print(response.text())
# async example
import asyncio
from playwright.async_api import async_playwright
from playwright_request.async_builder import RequestBuilder

async def main():
    async with async_playwright() as p:
        builder = RequestBuilder(p, base_url='https://playwright.dev/')
        request = builder.get("python/docs/intro").create_request()
        response = await request()
        print(await response.text())

asyncio.run(main())

Requirements

Python3
Playwright >= 1.26.0

Metadata

Release files for playwright-apirequest-builder 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for playwright-apirequest-builder 1.0.0
File Size Uploaded Provenance Actions
playwright-apirequest-builder-1.0.0.tar.gz 10.0 kB Without provenance Details for playwright-apirequest-builder-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for playwright-apirequest-builder 1.0.0
File Interpreter ABI Platform Actions
playwright_apirequest_builder-1.0.0-py3-none-any.whl Python 3 none any Details for playwright_apirequest_builder-1.0.0-py3-none-any.whl

Total release size: 20.4 kB

Release files / playwright-apirequest-builder-1.0.0.tar.gz

Download URL playwright-apirequest-builder-1.0.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
758d5857e73a7e4a41bd1bba2662b64163fd4f9467841398329b2edc73d0f399
BLAKE2b-256 checksum
How to use checksums
cd7adab28254cafbb27ed7860be7addbc56f77cdbc7f1aed61d70b0387150b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / playwright_apirequest_builder-1.0.0-py3-none-any.whl

Download URL playwright_apirequest_builder-1.0.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ce7a760664a78fef1862900e4d98be31b3eb067ec489fec30b6d23123219371
BLAKE2b-256 checksum
How to use checksums
72c518c8590750be175542b31e0e6abf604c502b67b779291f18892e40fdea6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Security for playwright-apirequest-builder 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page