Gecko Web Runtime Client
Python page and browser client for a versioned Firefox-derived WPR runtime. It exposes pages, contexts, navigation, DOM access, screenshots, diagnostics, Turnstile and WeChat workflow adapters.
The native runtime is installed separately:
python -m gecko_web_runtime install-runtime --version 155
The runtime is held in a private GitHub Release. Automatic download needs
access to childclm/gecko-web-runtime. The Python client depends on
wpr-runtime-core for Worker lifecycle and protocol compatibility. Historical
HTTP imports are retained through wpr-http.
Media capture
For a browser-played Widevine page, use AsyncMediaDownloader. It starts the
Worker, provisions the caller's Widevine profile, enables bounded native H.264
capture, waits for playback progress, writes a checkpoint, and verifies the
final MP4 with FFmpeg.
import asyncio
from pathlib import Path
from gecko_web_runtime import AsyncMediaDownloader
async def main() -> None:
result = await AsyncMediaDownloader(
"https://example.test/video",
output_dir=Path("./media-output"),
ffmpeg=Path(r"C:\\ffmpeg\\bin\\ffmpeg.exe"),
expected_duration=2575.32,
max_retries=1,
).download()
if not result["completed"]:
raise RuntimeError(result["attempts"])
print(result["package"]["output"])
asyncio.run(main())
Set WPR_RUNTIME_DIR, WPR_WORKER_EXE, WPR_PERSISTENT_PROFILE_DIR, and
WPR_WIDEVINE_SOURCE_PROFILE before creating the downloader. For a bounded
smoke test of a longer page, use sample_seconds=120 instead of
expected_duration. The downloader keeps a checkpoint.json; rerunning with
the same output directory returns a completed result without starting another
Worker.
Metadata
Release files for gecko-web-runtime-client 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gecko_web_runtime_client-1.4.1.tar.gz | 64.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gecko_web_runtime_client-1.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 128.4 kB
Release files / gecko_web_runtime_client-1.4.1.tar.gz
| Download URL | gecko_web_runtime_client-1.4.1.tar.gz |
|---|---|
| Size | 64.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb98b8e37ef22ebcd8e35d53641822b5cf575a9934b2d87857d8bca7683a7b66
|
|
BLAKE2b-256 checksum How to use checksums |
a56a69da237cf14b3d86015bfdc2411db0232cf502e558ef09be2e667d6a1eae
|
| 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 16, 2026.
Transparency logRelease files / gecko_web_runtime_client-1.4.1-py3-none-any.whl
| Download URL | gecko_web_runtime_client-1.4.1-py3-none-any.whl |
|---|---|
| Size | 64.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e83051884fbe10611a892de6f779683dba39466561b659e1a858fa1fe6d4d837
|
|
BLAKE2b-256 checksum How to use checksums |
94c78ae9392042c2878a7c144b7dd36265b331bf00a8feed970abf1cca086d9b
|
| 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 16, 2026.
Transparency log