Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

Release datasette-app-support 0.3 — Part of https://github.com/simonw/datasette-app
TIL Open external links in an Electron app using the system browser — For [Datasette.app](https://github.com/simonw/datasette-app) I wanted to ensure that links to external URLs would [open in the system browser](https://github.com/simonw/datasette-app/issues/34).
Release datasette-app-support 0.2 — Part of https://github.com/simonw/datasette-app
Release datasette-app-support 0.1.2 — Part of https://github.com/simonw/datasette-app
Release datasette-app-support 0.1.1 — Part of https://github.com/simonw/datasette-app
Release datasette-app-support 0.1 — Part of https://github.com/simonw/datasette-app
TIL Using the Chrome DevTools console as a REPL for an Electron app — I figured out how to use the Chrome DevTools to execute JavaScript interactively inside the Electron main process. I always like having a REPL for exploring APIs, and this means I can explore the Electron and Node.js APIs interactively.
TIL Calculating the AQI based on the Purple Air API for a sensor — [Purple Air](https://www.purpleair.com/) sensors have an API at `https://www.purpleair.com/map.json?show=SENSOR-ID-HERE`, which returns JSON that looks something like this:
Release datasette-verify 0.1 — Verify that files can be opened by Datasette
Release datasette 0.59a2 — An open source multi-tool for exploring and publishing data
Release evernote-to-sqlite 0.3.2 — Tools for converting Evernote content to SQLite
Release sqlite-utils 3.17 — Python CLI utility and library for manipulating SQLite databases
TIL Searching all columns of a table in Datasette — I came up with this trick today, when I wanted to run a `LIKE` search against every column in a table.
TIL Histogram with tooltips in Observable Plot — Given an array of datetime objects, I wanted to plot a histogram. But I wanted to automatically pick a bucket size for that histogram that resulted in something interesting, no matter what range of time the individual points covered.
Museum Hiller Aviation Museum — 601 Skyway Road, San Carlos, CA 94070
Release healthkit-to-sqlite 1.0.1 — Convert an Apple Healthkit export zip to a SQLite database
Release twitter-to-sqlite 0.21.4 — Save data from Twitter to a SQLite database
Release datasette-block-robots 1.0 — Datasette plugin that blocks robots and crawlers using robots.txt
TIL Track timestamped changes to a SQLite table using triggers — This is more of a "today I figured out" than a TIL.
Release sqlite-utils 3.16 — Python CLI utility and library for manipulating SQLite databases
Release datasette-debug-asgi 1.1 — Datasette plugin for dumping out the ASGI scope
TIL Building a specific version of SQLite with pysqlite on macOS/Linux — I wanted the ability to test my Python software against specific version of SQLite on macOS. I found a way to do that using [pysqlite3](https://github.com/coleifer/pysqlite3).
Release datasette-x-forwarded-host 0.1 — Treat the X-Forwarded-Host header as the Host header
Release sqlite-utils 3.15.1 — Python CLI utility and library for manipulating SQLite databases
TIL Adding Sphinx autodoc to a project, and configuring Read The Docs to build it — I built a [new API reference page](https://sqlite-utils.datasette.io/en/latest/reference.html) today for `sqlite-utils`, using the Sphinx [autodoc extension](https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html) to extract docstrings from the code and use them to build a full class reference.
Release sqlite-utils 3.15 — Python CLI utility and library for manipulating SQLite databases
TIL Find local variables in the traceback for an exception — For [sqlite-utils issue #309](https://github.com/simonw/sqlite-utils/issues/309) I had an error that looked like this:
TIL Tailing Google Cloud Run request logs and importing them into SQLite — The `gcloud` CLI tool has [the alpha ability to tail log files](https://cloud.google.com/logging/docs/reference/tools/gcloud-logging#live-tailing) - but it's a bit of a pain to setup.
Release datasette-query-links 0.1.2 — Turn SELECT queries returned by a query into links to execute them
Release datasette-query-links 0.1.1 — Turn SELECT queries returned by a query into links to execute them

Beats

Years

Tags