Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

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).
None
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.
None
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:
None
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.
None
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
Release datasette-query-links 0.1 — Turn SELECT queries returned by a query into links to execute them
Release datasette 0.59a1 — An open source multi-tool for exploring and publishing data
Release datasette-pyinstrument 0.1 — Use pyinstrument to analyze Datasette page performance
Release datasette 0.59a0 — An open source multi-tool for exploring and publishing data
TIL SQLite aggregate filter clauses — SQLite supports aggregate filter clauses (as of [3.30.0, released 2019-10-04](https://www.sqlite.org/changes.html#version_3_30_0)), as described in this [SQL Pivot in all databases](https://modern-sql.com/use-case/pivot) tutorial.
None
TIL Set a GIF to loop using ImageMagick — I managed to accidentally create a GIF that ran once without looping. I think this is because I created it in [LICEcap](https://www.cockos.com/licecap/) but then deleted some frames and re-saved it using macOS Preview.
None
TIL Check spelling using codespell — Today I discovered [codespell](https://github.com/codespell-project/codespell/) via [this Rich commit](https://github.com/willmcgugan/rich/commit/9c12a4537499797c43725fff5276ef0da62423ef#diff-ce84a1b2c9eb4ab3ea22f610cad7111cb9a2f66365c3b24679901376a2a73ab2). `codespell` is a really simple spell checker that can be run locally or incorporated into a CI flow.
None
Release sqlite-transform 1.2.1 — Tool for running transformations on columns in a SQLite database
Release sqlite-utils 3.14 — Python CLI utility and library for manipulating SQLite databases
TIL Search and replace with regular expressions in VS Code — I wanted to replace all instances of this:
None
Release datasette-json-html 1.0.1 — Datasette plugin for rendering HTML based on JSON values
Release datasette-json-html 1.0 — Datasette plugin for rendering HTML based on JSON values
Release datasette-publish-fly 1.0.2 — Datasette plugin for publishing data using Fly
Release datasette-remote-metadata 0.1 — Periodically refresh Datasette metadata from a remote URL
Release datasette-remote-metadata 0.1a0 — Periodically refresh Datasette metadata from a remote URL
Release datasette-haversine 0.2 — Datasette plugin that adds a custom SQL function for haversine distances
Release datasette-publish-vercel 0.10 — Datasette plugin for publishing data using Vercel
TIL Extracting objects recursively with jq — The Algolia-powered Hacker News API returns nested comment threads that look like this: https://hn.algolia.com/api/v1/items/27941108
None