Metadata-Version: 2.4
Name: rusticai-playwright
Version: 1.5.0
Summary: Rustic AI module for scraping using playwright
License-Expression: Apache-2.0
Author: Dragonscale Industries Inc.
Author-email: dev@dragonscale.ai
Requires-Python: >=3.13,<3.14
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Provides-Extra: test
Requires-Dist: flaky (>=3.8.1,<4.0.0) ; extra == "test"
Requires-Dist: install-playwright (>=1.0.3,<2.0.0)
Requires-Dist: markdownify (>=1.2.4,<2.0.0)
Requires-Dist: playwright (>=1.65.2,<2.0.0)
Requires-Dist: pytest (>=9.2.0,<10.0.0) ; extra == "test"
Requires-Dist: pytest-asyncio (>=1.5.0,<2.0.0) ; extra == "test"
Requires-Dist: rusticai-core (>=1.5.0,<1.6.0)
Requires-Dist: rusticai-testing (>=1.5.0,<1.6.0) ; extra == "test"
Project-URL: Homepage, https://www.rustic.ai/
Project-URL: Repository, https://github.com/rustic-ai/rustic-ai
Project-URL: Rustic AI Core, https://pypi.org/project/rusticai-core/
Description-Content-Type: text/markdown

# Rustic AI Playwright

This module employs [Playwright](https://playwright.dev/python/docs/intro) to facilitate web scraping tasks.

## Installing

```shell
pip install rusticai-playwright
```
**Note:** It depends on [rusticai-core](https://pypi.org/project/rusticai-core/)

## Building from Source

```shell
poetry install --with dev
poetry build
```

## Cancellation and idle cleanup

An outer scrape timeout cancels the coroutine owned by that request and waits for cooperative context cleanup. Other requests on the shared browser event loop continue. Idle browser retention runs as a separate cleanup task after the result returns; its delay does not consume the successful request's result timeout. Shutdown cancels pending idle cleanup and closes owned browser resources.

