跳到正文

Datasette Lite 使用 Service Workers 重写了其基于浏览器的 Python 应用

Simon Willison当事人·· 15 小时前精选Running the full server-side Datasette Python app in the browser with service workers and Pyodide
打开原文
原文
图片来自 Simon Willison
谁
Simon Willison
时间
引文
Let’s break down that URL to see what it’s doing:

发生了什么

Simon Willison 发布了 Datasette Lite 的重写版,该版本使用 WebAssembly、Pyodide 和 service workers 在浏览器中运行 Datasette Python 应用程序。用户可以通过 URL 加载特定的 Datasette 版本、存储库引用、插件和 SQLite 版本。此重写版还支持 JavaScript 和 CSS 资产,使分页修复等演示能够在单独的浏览器会话中运行。

推荐理由

Datasette Lite 现在可以在浏览器标签页中运行独立、可配置的 Datasette 实例,使开发人员更容易共享可复现的演示和错误修复,而无需运行 Web 服务器。

这件事到目前为止

Simon Willison has released a rewrite of Datasette Lite that runs the Datasette Python application entirely in the browser using WebAssembly, Pyodide, and service workers. The updated platform enables users to configure Datasette versions, repository references, plugins, and SQLite versions directly through the URL. Furthermore, the rewrite adds support for custom JavaScript and CSS assets, which allows independent demos—such as specific pagination fixes—to run in separate browser sessions.

接下来读什么

查看这件事的完整进展Simon Willison Rewrites Datasette Lite to Support Service Workers and Configurable SQLite Versions
这条收录于 11月18日 AI 日报看这一期日报的全部内容