返回全部资讯
Simon Willison 博客T2·开发与工程

Datasette Lite 借助 WebAssembly 在浏览器内运行完整 Python 服务

原标题:Datasette in WebAssembly using Datasette Lite (Datasette Advent Day 4)
58AI 研判分

Datasette Lite 基于 WebAssembly 与 Pyodide,把原本运行在服务端的 Datasette Python 应用完整搬进浏览器,无需后端即可加载 CSV 并做交互式查询与地图可视化。作者以 2019 年纽约松鼠普查数据演示了该能力,并给出文档说明其支持的各类参数选项。

报道正文

Datasette in WebAssembly using Datasette Lite (Datasette Advent Day 4). Datasette Lite at at lite.datasette.io runs the server-side Datasette Python web application entirely in the browser, thanks to WebAssembly and Pyodide. Here's a video intro to what that can do and why it's useful.

Also features data from the 2019 Squirrel Census! Here are those squirrels on a map in Datasette Lite.

See the Datasette Lite documentation for full coverage of the different options supported by the tool.