Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

Release asyncinject 0.2a0 — Run async workflows using pytest-fixtures-style dependency injection
Release asyncinject 0.1a0 — Run async workflows using pytest-fixtures-style dependency injection
TIL Planning parallel downloads with TopologicalSorter — For [complicated reasons](https://github.com/simonw/datasette/issues/878) I found myself wanting to write Python code to resolve a graph of dependencies and produce a plan for efficiently executing them, in parallel where possible.
None
Release sqlite-utils 3.18 — Python CLI utility and library for manipulating SQLite databases
Release datasette 0.59.2 — An open source multi-tool for exploring and publishing data
Release datasette-hello-world 0.1.1 — The hello world of Datasette plugins
Release git-history 0.3.1 — Tools for analyzing Git history using SQLite
Release git-history 0.3 — Tools for analyzing Git history using SQLite
Release git-history 0.2.1 — Tools for analyzing Git history using SQLite
Release git-history 0.2 — Tools for analyzing Git history using SQLite
Release git-history 0.1 — Tools for analyzing Git history using SQLite
Release s3-credentials 0.5 — A tool for creating credentials for accessing S3 buckets
TIL Using Tesseract.js to OCR every image on a page — Pasting this code into a DevTools console should load [Tesseract.js](https://github.com/naptha/tesseract.js) from a CDN, loop through every image loaded by that page (every PNG, GIF, JPG or JPEG), run OCR on them and output the result to the DevTools console.
None
TIL Annotated code for a demo of WebSocket chat in Deno Deploy — Deno Deploy is a hosted Deno service that promises [a multi-tenant JavaScript engine running in 25 data centers across the world](https://deno.com/blog/deploy-beta1/).
None
TIL Basic Datasette in Kubernetes — This recipe for deploying the official `datasetteproject/datasette` container in Kubernetes just worked for me. It uses an interesting (possibly nasty?) trick to install plugins and download a SQLite database file on container startup, without needing to bake a brand new container image.
None
Release datasette-jupyterlite 0.1a1 — JupyterLite as a Datasette plugin
Release s3-credentials 0.4 — A tool for creating credentials for accessing S3 buckets
Release s3-credentials 0.3 — A tool for creating credentials for accessing S3 buckets
Release s3-credentials 0.2 — A tool for creating credentials for accessing S3 buckets
Release s3-credentials 0.1 — A tool for creating credentials for accessing S3 buckets
TIL Quick and dirty mock testing with mock_calls — I needed to write a test that checked for a really complex sequence of mock calls for [s3-credentials#3](https://github.com/simonw/s3-credentials/issues/3).
None
TIL Using VCR and pytest with pytest-recording — [pytest-recording](https://github.com/kiwicom/pytest-recording) is a neat pytest plugin that makes it easy to use the [VCR library](https://vcrpy.readthedocs.io/), which helps write tests against HTTP resources by automatically capturing responses and baking them into a YAML file to be replayed during the tests.
None
Release datasette-notebook 0.2a0 — A markdown wiki and dashboarding system for Datasette
Release datasette-notebook 0.1a2 — A markdown wiki and dashboarding system for Datasette
Release datasette-jupyterlite 0.1a0 — JupyterLite as a Datasette plugin
TIL Understanding Kristofer Joseph's Single File Web Component — [Via Brian LeRoux](https://twitter.com/brianleroux/status/1453472609518034944) I found [single-file-web-component.html](https://gist.github.com/kristoferjoseph/c4e47389ae0f0447db175b914e471628) by Kristofer Joseph. It's really clever! It demonstrates how to build a `<hello-world></hello-world>` custom Web Component in a single HTML file, using some neat tricks.
None
Release datasette 0.59.1 — An open source multi-tool for exploring and publishing data
TIL Removing a git commit and force pushing to remove it from history — I accidentally triggered a commit which added a big chunk of unwanted data to my repository. I didn't want this to stick around in the history forever, and no-one else was pulling from the repo, so I decided to use force push to remove the rogue commit entirely.
None
Release datasette-hello-world 0.1 — The hello world of Datasette plugins
Release datasette-publish-vercel 0.11 — Datasette plugin for publishing data using Vercel