Simon Willison: TILs on datasette

Atom feed for datasette

datasette Writing a CLI utility that is also a Datasette plugin - 2022-11-21

I'm working on dclient, a CLI tool for interacting with Datasette instances via the Datasette API. …

datasette Writing a Datasette CLI plugin that mostly duplicates an existing command - 2022-10-22

My new datasette-gunicorn plugin adds a new command to Datasette - datasette gunicorn - which mostly replicates the existing datasette serve command but with a few differences. …

datasette Registering new Datasette plugin hooks by defining them in other plugins - 2022-06-17

I'm experimenting with a Datasette plugin that itself adds new plugin hooks which other plugins can then interact with. …

datasette Crawling Datasette with Datasette - 2022-02-27

I wanted to add the new tutorials on https://datasette.io/tutorials to the search index that is used by the https://datasette.io/-/beta search engine. …

datasette Reusing an existing Click tool with register_commands - 2021-11-29

The register_commands plugin hook lets you add extra sub-commands to the datasette CLI tool. …

datasette Searching all columns of a table in Datasette - 2021-08-23

I came up with this trick today, when I wanted to run a LIKE search against every column in a table. …

datasette Running Datasette on Replit - 2021-05-02

I figured out how to run Datasette on https://replit.com/

datasette Querying for GitHub issues open for less than 60 seconds - 2021-03-12

While writing this thread about my habit of opening issues and closing them a few seconds later just so I could link to them in a commit message I decided to answer the question "How many of my issues were open for less than 60 seconds?" …

datasette Serving MBTiles with datasette-media - 2021-02-03

The MBTiles format uses SQLite to bundle map tiles for use with libraries such as Leaflet. …

datasette Redirects for Datasette - 2020-11-25

I made some changes to my https://til.simonwillison.net/ site that resulted in cleaner URL designs, so I needed to setup some redirects. I configured the redirects using a one-off Datasette plugin called redirects.py which I dropped into the plugins/ directory for the Datasette instance: …