跳到正文
每分钟自动更新
12月3日周四
  1. Simon Willison

    Datasette Charts: Datasette Advent Day 2

    中文摘要

    中文摘要待更新

    英文原文

    Datasette Charts: Datasette Advent Day 2 Datasette Charts is a brand new plugin for Datasette, which suggests charts automatically based on the shape of your data. I recorded a new video demo where I take iNaturalist sightings of brown pelicans and explore them using maps, line charts, bar charts, calendar heatmaps and box charts. Tags: visualization , youtube , datasette , datasette-charts

  2. Simon Willison

    datasette 1.0a47

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette 1.0a47 Several neat new features in today's Datasette alpha: Incoming many-to-one rows are now represented on the table page in the same way as many-to-many rows in Datasette 1.046 . You can now re-arrange the order in which columns are shown on the table in a way that mixes the relationship columns with the regular table content. Previously the relationships always came at the end. On desktop, table columns can be dragged relative to each other, rather than having to use a separate ordering modal. This new column ordering is reflected in the URL, but is also be saved to localStorage so that when you return to a table it remembers your preferences. Related rows are displayed using a label. Datasette defaults to using a name or column table, but this release introduces the ability to configure a template like {first_name} {last_name} which brings in label data from more than one column. The label template can also now be set through the UI, allowing Datasette users to customize how different tables are presented as related rows. Here's a short video showing how the new column sorting interface works: Tags: datasette

12月2日周三
  1. Simon Willison

    Large CSV imports in Datasette (Datasette Advent Day 1)

    中文摘要

    中文摘要待更新

    英文原文

    Large CSV imports in Datasette (Datasette Advent Day 1) My open source project Datasette has accumulated a lot of new features this year that I haven't done a great job in explaining. I've decided to fix that this December through an advent calendar format: every day up to Christmas I'll be publishing a short video demonstrating a new feature of Datasette or the wider Datasette plugin ecosystem. Today's covers a feature that I just landed in Datasette 1.0a46 a few hours ago: large CSV imports. You can now import CSV or TSV files of any size into a Datasette table using the browser upload tool - the files are streamed and parsed in your browser and sent to the Datasette insert API in batches. In the video I import 26,000 rows of iNaturalist observation data in just a few seconds. I then go on to show faceting to analyze data, plus a new UI for selecting and reordering the columns in a table. Tags: csv , youtube , datasette , inaturalist

  2. Simon Willison

    datasette 1.0a46

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette 1.0a46 The big new feature in this alpha is large CSV imports, which I demonstrate in the first video in a new advent calendar series that I'm planning on running up to Christmas. Also in this release: row pages now list incoming many-to-one foreign key rows, in a similar format to the new many-to-many feature , e.g. at the bottom of this legislators database page for Alexandria Ocasio-Cortez : Tags: datasette

12月1日周二
  1. Simon Willison

    datasette 1.0a45

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette 1.0a45 This alpha introduces a major new feature: many-to-many relationship display and editing across both tables and row pages. The documentation has details and screenshots, or you can watch a demo video in the PR for the new feature . Here's what it looks like on a table: Tags: datasette

11月28日周六
  1. Simon Willison

    datasette-charts-pie 0.1a0

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-charts-pie 0.1a0 I don't like pie charts or donut charts, so I left them out of datasette-charts - but then I needed to build a plugin to exercise the ability to add new chart types... and here we are! Here are live demos (in Datasette Lite) of Pie , Donut , Sunburst , Rose . Tags: datasette-charts , datasette , visualization

  2. Simon Willison

    datasette-charts 0.5a0

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-charts 0.5a0 After some extensive prototyping, I added three new chart types to Datasette Charts: Calendar heatmaps , where density of dates over a year is represented as a heatmap calendar. Box plots , capturing the variance of a numeric value by representing the quartiles, median, minimum and maximum values. Active over time , which detects start / end date pairs and uses them to determine how many records were active during different time periods. Here's a calendar heat map demo in Datasette Lite, showing the publish dates of releases in the Datasette package ecosystem. Tags: datasette-charts , datasette , visualization

  3. Simon Willison

    datasette-charts 0.4a0

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-charts 0.4a0 The new datasette-charts plugin has its own plugin hook to allow other plugins to define new chart types, but I hadn't actually used it for anything yet. I had Claude Opus 5.5 build an experimental plugins just to try out the hook and it came up with a bunch of friction points in the design. This release addresses those, which should make building additional chart plugins a whole lot more ergonomic. I've also added a website for the plugin, at charts.datasette.io . The new website includes a tutorial for plugin authors , and a gallery showing all of the core charts and annotations, each one linking to an interactive demo on Datasette Lite . Tags: datasette-charts , datasette , visualization , datasette-lite

11月27日周五
11月26日周四
  1. Simon Willison

    datasette-charts 0.3a0

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-charts 0.3a0 I added chart annotations to datasette-charts ! You can now render a chart and then annotate it with lines, shaded areas, labels, or a combination of the three. A chart with annotations looks like this: Here's that same chart in Datasette Lite , where you can tweak the annotations using the chart builder UI: If you also install Datasette Agent the agent can build annotated charts for you. Here's what I got on the agent.datasette.io demo for this prompt: Show a chart comparing Simon's tagged content about LLMs with his tagged content about Datasette, with annotations Tags: datasette , visualization , datasette-charts

11月24日周二
  1. Simon Willison

    datasette-charts 0.2a1

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-charts 0.2a1 Minor UI improvements: Collapsing the suggested charts section now leaves the chart visible. Following a link to a chart opens it with the suggestions collapsed for that visit. On table pages the panel now sits below the "4,235 rows where country = CHN" line. The "Data" table under each chart has been replaced by Copy TSV and Copy CSV buttons. Removed the "Chart this data" item from the table, view and query action menus. More space between lines in chart tooltips. Tags: datasette , visualization , datasette-charts

  2. Simon Willison

    datasette-charts 0.2a0

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-charts 0.2a0 I introduced this new charting plugin for Datasette yesterday . Today it's gained integration with Datasette Agent , so now you can ask chat for a chart and it will create one for you using the same underlying chart suggestion and generation tools. Here's a demo video, recorded on agent.datasette.io where you can sign in with GitHub to try the plugin yourself: Download the video (MP4) I prompt Datasette Agent to "Use #stats to show sqlite-utils downloads over time as a chart" - where typing "#stats" opens a table search box. It shows me a chart inline in the chat, and when I click "Open in the chart builder" it opens the chart in a panel along with the table page. I use the table page to switch to a chart of "datasette", then when I ask the agent "what does the chart show?" it notices that I changed the content in the panel and describes the new Datasette chart to me. Here's a Markdown export of the chat from the video. Tags: datasette-agent , datasette , visualization , datasette-charts , sqlite

  3. Simon Willison

    datasette-agent 0.7a1

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-agent 0.7a1 A small improvement to Datasette Agent : chat sessions could already open an iframe side panel that could then navigate to different pages. This version improves navigation by fragment hashes, for deeper integration with other Datasette plugins that update fragment hashes when the user interacts with the plugin in a way that changes state. I built this in order to fix some bugs with the much more exciting datasette-charts 0.2a0 release . Tags: datasette-agent , datasette

11月23日周一
  1. Simon Willison

    datasette-charts 0.1a0

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-charts 0.1a0 I've been thinking about this problem for over a year now, but on Sunday I finally fired up Claude Fable 5.2 to build an initial prototype. The prototype went so well that this is now a full plugin. You can try it out in Datasette Lite here . It looks like this: The new charts plugin works against any table or arbitrary SQL query in Datasette. It defines several different chart types (using vendored D3 , Observable Plot , and topojson-client ), each with a set of heuristics for identifying when they might be a good match for a specific set of rows. Those suggestion thumbnails at the top are actual visualizations driven by the data, and selecting one pulls up the full chart along with tools for modifying it. You can also manually construct a chart from scratch. As with other Datasette visualization plugins, the current state of your chart is persisted in a #fragment in the URL - so you can bookmark charts or share them with others. The most important feature is that the charts take all rows into account . Previous charting plugins like datasette-vega would only show charts for the current page of results, generally up to 100 rows. The new plugin compi

11月19日周四
  1. Simon Willison

    datasette-arrows 0.1a0

    中文摘要

    发布:datasette-arrows 0.1a0 Datasette 1.0a43 添加了插件实现流式导出格式的功能。Datasette 核心支持流式 CSV 和 TSV - 你可以从一个表中导出数百万行数据,而无需将所有数据加载到内存中,因为这两种文件格式支持分块流式数据。register_output_renderer() 插件钩子现在可以用于为其他格式实现相同的模式。我学到的教训是,永远不要在没有配套插件的情况下发布新的插件功能。Claude Fable 5.2 建议将 Apache Arrow 流式格式作为一个好的选项,并几乎一次性地构建了这个插件。将插件添加到 Datasette(datasette install datasette-arrows)后,导出对话框将获得这个新的 Arrow 选项:此截图来自 Datasette 的主分支 - 最近的发布版本尚未将 Arrow 等流式格式与 TSV 和 CSV 一起分组在“此表中的所有行”部分中,但这将在下一个 alpha 版本中实现。标签:datasette,projects

    英文原文

    Release: datasette-arrows 0.1a0 Datasette 1.0a43 added the ability for plugins to implement streaming export formats. Datasette core supports streaming CSV and TSV - you can export millions of lines of data from a table without needing to load it all into memory, because those two file formats support streaming data in chunks. The register_output_renderer() plugin hook can now be used to implement the same pattern for other formats. I've learned never to release a new plugin feature without accompanying it with a plugin that uses it. Claude Fable 5.2 suggested the Apache Arrow streaming format as a good option, and built this plugin in almost a single shot. Add the plugin to Datasette ( datasette install datasette-arrows ) and the export dialog gains this new Arrow option: This screenshot is from Datasette's main branch - the most recent release doesn't yet group streaming formats such as Arrow with the TSV and CSV in the "All rows in this table" section, but that's coming in the next alpha release. Tags: datasette , projects

11月18日周三
  1. Simon Willison

    Running the full server-side Datasette Python app in the browser with service workers and Pyodide

    中文摘要

    Datasette Lite是我将Datasette Python应用程序移植到浏览器中运行的版本,使用的是WebAssembly和Pyodide。我使用service workers发布了Datasette Lite的完整重写版本,现在它几乎与真正的服务器端应用程序无法区分。现在你可以使用精心设计的URL lite.datasette.io完成以下所有操作:加载客户端的Datasette来浏览任何SQLite数据库、JSON文件、CSV文件或SQL脚本;从PyPI中选择一个发布的Datasette版本进行加载;从Datasette GitHub仓库中选择特定的提交、标签或分支名称;从超过100个SQLite版本中进行选择,与Datasette一起使用;从PyPI或wheel文件的URL中安装额外的Datasette插件,包括JavaScript可视化工具。能够加载特定的Datasette引用、插件和SQLite版本,使这成为一种极好的工具,可以链接到正在进行中的功能演示或错误复现,而无需启动完整的Web服务器来提供该演示。例如,考虑以下URL:https://lite.datasette.io/?install=datasette-maplibre&url=https://gist.githubusercontent.com/simonw/39fa5d399465766039549912e2b3d291/raw/f6dfba9

    英文原文

    Datasette Lite is my port of the Datasette Python application to run directly in the browser using WebAssembly and Pyodide . I've released a complete rewrite of Datasette Lite using service workers, and it's now almost indistinguishable from the real server-side application. You can now do all of the following, using a carefully crafted URL to lite.datasette.io : Load client-side Datasette to browse any SQLite database, JSON file, CSV file or SQL script Select a released version of Datasette to load from PyPI Load a specific commit, tag, or branch name from the Datasette GitHub repository Pick from over 100 versions of SQLite to use with Datasette Install additional Datasette plugins from PyPI or URLs to wheel files, including JavaScript visualization tools The ability to load specific Datasette references, plugins, and SQLite versions makes this a fantastic tool for linking to demos of work-in-progress features or bug reproductions, without needing to spin up a full web server to serve that demo. As an example, consider the following URL: https://lite.datasette.io/?install=datasette-maplibre&url=https://gist.githubusercontent.com/simonw/39fa5d399465766039549912e2b3d291/raw/f6dfba9

11月16日周一
  1. Simon Willison

    datasette-maplibre 0.1a0

    中文摘要

    发布:datasette-maplibre 0.1a0 有一段很长时间以来,这是第一个新的Datasette地理空间插件!这个插件将出色的MapLibre GL库与OpenFreeMap结合在一起,OpenFreeMap是由Zsolt Ero运营的免费矢量地图服务器(你应该在GitHub上赞助Zsolt。)我大部分是通过向Claude Fable 5.2输入一个提示完成的:查看datasette-cluster-map和datasette-leaflet-geojson插件,然后查看~/dev/tools/openfreemap-demo.html - 然后构建一个新的Datasette插件,该插件使用maplibreGL和openfreemap,并结合那两个插件的功能 - 但要有创意,跳出框框思考这个插件可能具有的其他有用功能。“要有创意,跳出框框”带来了一些不错的想法 - 我最喜欢的是它会显示GeoJSON形状的SVG预览,然后在它们滚动到视野中时才加载WebGL预览。我还让Claude构建了一个全面的演示,它可以在最新的Datasette Lite中运行,因此你可以访问此链接,通过Pyodide和WebAssembly在你的浏览器中加载插件和演示数据库。我喜欢这个演示页面,它在同一张地图上展示了GeoJSON形状和纬度/经度点:标签:可视化,生成式AI,datasette-lite,claude-myt

    英文原文

    Release: datasette-maplibre 0.1a0 The first new Datasette geospatial plugin in quite a while! This one combines the excellent MapLibre GL library with OpenFreeMap , the free vector map server operated by Zsolt Ero (you should sponsor Zsolt on GitHub .) I built most of this with a single prompt to Claude Fable 5.2: Look at datasette-cluster-map and datasette-leaflet-geojson plugins, then look at ~/dev/tools/openfreemap-demo.html - then build a brand new Datasette plugin that uses maplibreGL and openfreemap and combines the features of those other two plugins - but be creative and think outside the box for other useful features the plugin might have "Be creative and think outside the box" resulted in a few neat ideas - my favorite is that it displays SVG previews of GeoJSON shapes, then loads a WebGL preview only when they scroll into view. I also had Claude build a comprehensive demo which works in the latest Datasette Lite, so you can visit this link to load the plugin and a demo database in your browser via Pyodide and WebAssembly. I like this demo page showing both GeoJSON shapes and lat/lon points on the same map: Tags: visualization , generative-ai , datasette-lite , claude-myt

  2. Simon Willison

    datasette 1.0a43

    中文摘要

    发布:datasette 1.0a43 我一直在努力利用Claude Fable 5.2来帮助完成1.0里程碑,目前该里程碑已完成53%。此次发布的最重要的1.0功能是输出渲染器的流式支持——内置的TSV和CSV导出机制现在也使用了这一功能,插件可以通过新的Response.stream()方法注册自己,以一次性流式传输表中的每一行。有一些安全修复,其中一项我认定值得发布GitHub安全公告:私有存储查询可能会被暴露,从而允许访问查询的标题和SQL(但不允许执行该查询)。还有数十项较小的改进。行页面的JSON表示终于有了适合1.0的设计。一个新的<datasette-copy-button>网络组件在多个地方提供了复制模式的功能。行页面中的列中的JSON可以进行美化排版。新增了一个DatasetteModal.confirm() JavaScript实用方法。此外还有数十个错误修复,包括Zihan Dai、Peter Olkhovets、Ilya Khalafi和Ankita Advitot的贡献。我最兴奋的新功能是一个非常小的功能:我已在Datasette中添加了CSS多页视图过渡效果!

    英文原文

    Release: datasette 1.0a43 I've been leaning hard into Claude Fable 5.2 to help knock things off the 1.0 milestone , which is now 53% complete. The biggest 1.0 item in this release is streaming support for output renderers - the built-in TSV and CSV export mechanisms now use this as well, and plugins can register themselves as capable of streaming every row in a table in one go via the new Response.stream() method. There are a couple of security fixes, one of which I deemed deserving of a GitHub advisory : private stored queries could be exposed, granting access to the title and SQL of the query (but not allowing that query to be executed). There are dozens of smaller improvements. The row page JSON representation finally has a design suitable for 1.0 . A new <datasette-copy-button> Web Component provides copy-schema in various places. JSON in columns on the row page can be pretty-printed. There's a new DatasetteModal.confirm() JavaScript utility method. Plus dozens of bug fixes, including contributions by Zihan Dai , Peter Olkhovets , Ilya Khalafi , and Ankita Advitot . The feature I'm most excited about is a pretty tiny one: I've added CSS multi-page view transitions to Datasette!

  3. Simon Willison

    datasette 0.65.6

    中文摘要

    发布:datasette 0.65.6 我将 1.0a43 中的一个小安全修复回滚了:修复了一个安全问题,即使用 add_database(db, name=..., route=...) 注册的数据库,如果其路由与名称不同,那么未经授权的人员可以从 /<route>.db 下载该数据库。[...] 标签:安全,datasette

    英文原文

    Release: datasette 0.65.6 I backported a minor security fix from 1.0a43: Fixed a security issue where a database registered using add_database(db, name=..., route=...) with a route that differs from its name could be downloaded from /<route>.db by actors who were denied access to it. [...] Tags: security , datasette

11月15日周日
  1. Simon Willison

    datasette-apps 0.4a0

    中文摘要

    发布:datasette-apps 0.4a0 Datasette Apps 是在 Datasette 内部运行的沙盒 HTML 和 JavaScript 应用程序,可以看作是 Claude Artifacts,但这些应用程序可以对你的数据运行 SQL 查询。0.4a0 版本增加了对链接的支持:你可以通过 URL 中的 #fragments 来链接到一个应用,而该应用可以查看并使用这些片段,同时支持的 URL 方案会反馈给 Datasette Agent,这样它就可以帮助编写可以相互链接的应用程序。这意味着你可以拥有例如一个显示特定记录详细信息的应用程序,以及一个完全独立的用于搜索这些记录并链接到第一个应用程序中相应记录的应用程序。 标签:datasette-agent , datasette-apps , datasette , urls

    英文原文

    Release: datasette-apps 0.4a0 Datasette Apps are sandboxed HTML and JavaScript applications that live inside Datasette - think Claude Artifacts, but these ones can run SQL queries against your data. 0.4a0 adds support for linking: you can link to an app with #fragments in the URL and the app can see and use those, plus supported URL schemes are reported back to Datasette Agent so it can help write apps that link to each other. This means you can have e.g. an app that shows details about a specific record, and a completely separate app that searches those records and links to their representations in the first app. Tags: datasette-agent , datasette-apps , datasette , urls