ultralight-py
English · 简体中文
Python bindings for Ultralight 2.x, supporting offscreen rendering, native AppCore windows, and shared functions and objects between Python and JavaScript.
- Native windows: AppCore system fonts, DPI, input and IME, sharing an asyncio loop. See the window guide.
- Standalone API registry: decorator-based function registration, exported objects, attachment before loading, and restoration after navigation.
- Offscreen rendering: load HTML or web pages, execute JavaScript, and read CPU pixel frames.
- Session isolation: views in the same session share browser storage, while separate sessions stay isolated. Temporary and persistent storage are supported; see the example.
- Bidirectional bridge: Python functions and objects, shared list/dict ↔ Array/Object containers with native JS operations, and Promise / asyncio support.
- Page interaction: page events and waits, mouse and keyboard input, custom resource loading, and an optional Tkinter input adapter.
Installation
Requires Python 3.10+.
python -m pip install ultralight-py
Release wheels include the Ultralight shared libraries and runtime resources; no separate SDK installation is required. CI targets Windows x64, Linux x64 (glibc ≥ 2.34), and macOS ARM64 (11.3+). Available wheels depend on the release. For installation from source, see the development guide.
Quick start
Load HTML, execute JavaScript, and read the rendered pixels:
import asyncio
from ultralight_py import Runtime
from ultralight_py.scripting import ScriptDriver
async def capture(runtime):
with runtime.create_view(320, 180) as view:
async with ScriptDriver.auto(runtime) as driver:
await driver.page(view).load_html(
"<style>body{background:#ff0000}</style><body>Hello",
wait_until="settled",
timeout=5,
)
print(view.evaluate("document.body.textContent"))
frame = view.copy_pixels()
print(frame.width, frame.height, frame.format)
with Runtime() as runtime:
asyncio.run(capture(runtime))
Engine operations run on Python's main thread. This example uses ScriptDriver.auto() to advance the page;
when integrating with an existing GUI or host loop, you can drive the Runtime yourself. Pixels use BGRA8 with premultiplied alpha.
frame.to_rgba() returns an independent RGBA image; optional Pillow/NumPy output is covered in the pixel guide.
Game demo
Emberkeep is a desktop pixel roguelike built with ultralight-py 0.5.0. It includes turn-based combat, randomly generated dungeons, upgrades, save continuation, and English and Chinese interfaces.
Python owns the game rules; JavaScript Canvas draws the game and UI. Registered functions, live object proxies, and Promises connect them. The game demonstrates native AppCore windows, an asyncio loop, custom resource loading, and object bridging in a complete application.
See the Emberkeep README for setup, controls, and downloads.
Documentation and examples
The detailed guides below are currently in Chinese.
- User guide: page events, bridging, resource loading, pixels, and input.
- Public API · Object bridging.
- Examples: offscreen rendering, bidirectional bridging, virtual resources, asyncio, and Tkinter.
- Development guide · Architecture · Release guide.
- Changelog.
Metadata
Release files for ultralight-py 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ultralight_py-0.6.0.tar.gz | 10.9 MB | With provenance | Details for ultralight_py-0.6.0.tar.gz |
Built distributions (wheels)
Total release size: 407.7 MB
Release files / ultralight_py-0.6.0.tar.gz
| Download URL | ultralight_py-0.6.0.tar.gz |
|---|---|
| Size | 10.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1988c066af39c89f57b0cfa00ac5582a27c126bf083cf3cf890f6995d0ae7920
|
|
BLAKE2b-256 checksum How to use checksums |
4e6d2ac156d0d0d4cf71060febe68803d96f51391236e32deeb96c744bb526e2
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp314-cp314-win_amd64.whl
| Download URL | ultralight_py-0.6.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 26.0 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
37a813ea86acebeb6149fc397b9f3cb470cb8488634739a870a3224535c1792a
|
|
BLAKE2b-256 checksum How to use checksums |
591e2f5ed337465e00e5b74a2f9933f2a47f850b9df2a0edcb3e9da90ece6e5c
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | ultralight_py-0.6.0-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 29.3 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
80aeea9a9b3a1e3454c9c620337e508bad0c2c9c2d3e5137dafcf373cf7e8b41
|
|
BLAKE2b-256 checksum How to use checksums |
0b58df2b075751d11bdcef39189ed14e4633a8f4785fc67cc5aeb25cf4f42ded
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | ultralight_py-0.6.0-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 24.7 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
25b8c4c798f31b1931177b9bb9ff557a16936883d440512e2ed49d416fdf655c
|
|
BLAKE2b-256 checksum How to use checksums |
02acaad50479caf42b3824aec27fd1b324035b421a3b52c94a089bb0a668a73e
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp313-cp313-win_amd64.whl
| Download URL | ultralight_py-0.6.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 25.3 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
649f6a985f88a040deb774f58fb3f03d7596563229b343e070cc9d164a10080c
|
|
BLAKE2b-256 checksum How to use checksums |
26d83ff7cdfbc003e090514b1588147465e47c706e1ee5b0534fb06625f63d5e
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | ultralight_py-0.6.0-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 29.3 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
74de8f3ec62aef6f2f934f7db2d9cd9905c0c5ad535cd100feb440f137a6717b
|
|
BLAKE2b-256 checksum How to use checksums |
b7224129a76b3c6fa8739b0c5b9b231f8c88b0d95612302bfdf38109c9991f01
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | ultralight_py-0.6.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 24.7 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
201daeded037b5b7c700d6ec1c10f5001de49540752b5d92e4a4e9f5f7092032
|
|
BLAKE2b-256 checksum How to use checksums |
022071d4db128b33ccd3a031007c8302fb43711e774b73a8529c6eb5552cbeaf
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp312-cp312-win_amd64.whl
| Download URL | ultralight_py-0.6.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 25.3 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
92211010219cf9919be147757e334ec76baf3b5c39a402da9ae2d19e80ecca10
|
|
BLAKE2b-256 checksum How to use checksums |
fd54c5bba3b9de89dae10f2c92b30394ff8f9153091d597adb41cce5cd28da6c
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | ultralight_py-0.6.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 29.3 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
f9a180b78adc34068c05c4d7f8be39c069627d9c15d691cb1d480094d8a6b82a
|
|
BLAKE2b-256 checksum How to use checksums |
ae88dc272a95bb86fdddc1a16071bb51ecaba0219f22810eb25e8dd8272e151b
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | ultralight_py-0.6.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 24.7 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ba25543b40cf9ea88c0fc6abdda362ef8bf292b36103456f93c77c83dc55948a
|
|
BLAKE2b-256 checksum How to use checksums |
862df17581b3edf9559e2d8be657d67f4cceb2f7a9f022369fd9a99ce499452b
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp311-cp311-win_amd64.whl
| Download URL | ultralight_py-0.6.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 25.3 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ab911ab3a4ad098ca3acc9c562852ebcd5267ac8c9eb02b34c39e5aecca39b66
|
|
BLAKE2b-256 checksum How to use checksums |
48beeca38850f6698a9531d2f1cf303735d03bac26ab2cf5f758b31687909cfd
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | ultralight_py-0.6.0-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 29.3 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
df85812be9a27f3b88ed5e6ec4f2a01f9b52f19c5b37935973cbb6c0c55af190
|
|
BLAKE2b-256 checksum How to use checksums |
6009c03f5f664bbda8a482d4a698faf3c584119a98d8f5323e212fe7a39c3cde
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | ultralight_py-0.6.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 24.7 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8e6caf76caf1938afe69eb24e1c250d5e64bd5f17ac445e7d22734213f1b490b
|
|
BLAKE2b-256 checksum How to use checksums |
f81dfe6e34c0532899b291f82dfca0ee0292c267c310f80b3b9342c5e0ab0fe6
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp310-cp310-win_amd64.whl
| Download URL | ultralight_py-0.6.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 25.3 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
321da3f8a5b85e66044d19ea158c1a0b4318e0edf727b371e671468318b48284
|
|
BLAKE2b-256 checksum How to use checksums |
98e302859f67f4fe5f7e88325466552609e0c9038b42d9c058c319f171b6fc8e
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | ultralight_py-0.6.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 29.3 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
7975d1a1a35ef16321791d57052b5cd6878adb9235440cd47119abc07df991e0
|
|
BLAKE2b-256 checksum How to use checksums |
50ae97f6933625554385772f22d85b20210df87a33ed403551b680fffdf5a7a9
|
| 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 20, 2026.
Transparency logRelease files / ultralight_py-0.6.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | ultralight_py-0.6.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 24.7 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c95b8b70b359e73e02f9f8b631ae7719a98b9489b67d8a9d5732d4d67d0c50b0
|
|
BLAKE2b-256 checksum How to use checksums |
739c2f438e3c7c3ea494e2388166ee162ac8b63623bd35a74c500899a8d8d3e3
|
| 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 20, 2026.
Transparency logSecurity for ultralight-py 0.6.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.
Full provenance
All 16 files in this release have been uploaded with provenance metadata.
Attestation for ultralight_py-0.6.0.tar.gz
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 20, 2026.
Transparency logA 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.