Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

Release sqlite-utils 3.2 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 3.1.1 — Python CLI utility and library for manipulating SQLite databases
TIL Using Prettier to check JavaScript code style in GitHub Actions — I [decided](https://github.com/simonw/datasette/issues/1166) to adopt [Prettier](https://prettier.io/) as the JavaScript code style for Datasette, based on my success with [Black](https://github.com/psf/black) for Python code.
None
TIL Using Jest without a package.json — I wanted to try out [Jest](https://jestjs.io/) for writing JavaScript unit tests, in a project that wasn't set up with `package.json` and other NPM related things.
None
TIL Relinquishing control in Python asyncio — `asyncio` in Python is a form of co-operative multitasking, where everything runs in a single thread but asynchronous tasks can yield to other tasks to allow them to execute.
None
Release datasette-publish-vercel 0.9.1 — Datasette plugin for publishing data using Vercel
TIL Replicating SQLite with rqlite — I tried out [rqlite](https://github.com/rqlite/rqlite) today, a "lightweight, distributed relational database, which uses SQLite as its storage engine". It uses the Raft consensus algorithm to allow multiple SQLite instances to elect a leader and replicate changes amongst themselves.
None
Release dogsheep-beta 0.10.1 — Build a search index across content from multiple SQLite database tables and run faceted searches against it using Datasette
Release dogsheep-beta 0.10 — Build a search index across content from multiple SQLite database tables and run faceted searches against it using Datasette
Release github-to-sqlite 2.8.2 — Save data from GitHub to a SQLite database
Release datasette-publish-vercel 0.9 — Datasette plugin for publishing data using Vercel
Release sqlite-utils 3.1 — Python CLI utility and library for manipulating SQLite databases
Release datasette-publish-fly 1.0.1 — Datasette plugin for publishing data using Fly
TIL Skipping CSV rows with odd numbers of quotes using ripgrep — I'm working with several huge CSV files - over 5 million rows total - and I ran into a problem: it turned out there were a few lines in those files that imported incorrectly because they were not correctly escaped.
None
Release datasette-auth-passwords 0.3.3 — Datasette plugin for authentication using passwords
Release datasette 0.53 — An open source multi-tool for exploring and publishing data
Release datasette-column-inspect 0.2a — Experimental plugin that adds a column inspector
Release datasette-pretty-json 0.2.1 — Datasette plugin that pretty-prints any column values that are valid JSON objects or arrays
Release datasette 0.52.5 — An open source multi-tool for exploring and publishing data
TIL Escaping a SQL query to use with curl and Datasette — I used this pattern to pass a SQL query to Datasette's CSV export via curl and output the results, stripping off the first row (the header row) using `tail -n +2`.
None
Release yaml-to-sqlite 0.3.1 — Utility for converting YAML files to SQLite
TIL Controlling the style of dumped YAML using PyYAML — I had a list of Python dictionaries I wanted to output as YAML, but I wanted to control the style of the output.
None
TIL Using custom Sphinx templates on Read the Docs — I wanted to make a small customization to one of my documentation templates on Read the Docs.
None
Release datasette-seaborn 0.2a0 — Statistical visualizations for Datasette using Seaborn
TIL Running Python code in a subprocess with a time limit — I figured out how to run a subprocess with a time limit for [datasette-ripgrep](https://github.com/simonw/datasette-ripgrep), using the `asyncio.create_subprocess_exec()` method. The pattern looks like this:
None
Release datasette 0.52.4 — An open source multi-tool for exploring and publishing data
Release datasette-search-all 1.0.1 — Datasette plugin for searching all searchable tables at once
Release datasette 0.52.3 — An open source multi-tool for exploring and publishing data
Release datasette 0.52.2 — An open source multi-tool for exploring and publishing data
Release datasette-yaml 0.1.1 — Export Datasette records as YAML