Simon Willison’s Weblog

Subscribe
Atom feed

Elsewhere

Filters: Sorted by date

Release json-post 0.2a0 — Tool for posting JSON to an API, broken into pages
TIL Using unnest() to use a comma-separated string as the input to an IN query — [django-sql-dashboard](https://github.com/simonw/django-sql-dashboard) lets you define a SQL query plus one or more text inputs that the user can provide in order to execute the query.
None
Release json-post 0.1a0 — Tool for posting JSON to an API, broken into pages
Release airtable-export 0.7.1 — Export Airtable data to YAML, JSON or SQLite files on disk
TIL Efficient bulk deletions in Django — I needed to bulk-delete a large number of objects today. Django deletions are relatively inefficient by default, because Django implements its own version of cascading deletions and fires signals for each deleted object.
None
Release django-sql-dashboard 0.6a0 — Django app for building dashboards using raw SQL queries
Release airtable-export 0.7 — Export Airtable data to YAML, JSON or SQLite files on disk
TIL Language-specific indentation settings in VS Code — When I'm working with Python I like four space indents, but for JavaScript or HTML I like two space indents.
None
TIL Useful Markdown extensions in Python — I wanted to render some markdown in Python but with the following extra features:
None
Release airtable-export 0.6 — Export Airtable data to YAML, JSON or SQLite files on disk
Release datasette 0.56 — An open source multi-tool for exploring and publishing data
Release datasette-publish-azure 0.1a0 — Publish Datasette instances to Azure Functions (in progress)
TIL Writing an Azure Function that serves all traffic to a subdomain — [Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/) default to serving traffic from a path like `/api/FunctionName` - for example `https://your-subdomain.azurewebsites.net/api/MyFunction`.
None
TIL Redirecting all paths on a Vercel instance — I wanted to redirect all traffic to `https://something.vercel.app/` to a different domain - preserving the path and the querystring and serving a 301 status code.
None
Release datasette-publish-vercel 0.9.3 — Datasette plugin for publishing data using Vercel
Release sqlite-transform 0.5 — Tool for running transformations on columns in a SQLite database
Release django-sql-dashboard 0.5a0 — Django app for building dashboards using raw SQL queries
Release iam-to-sqlite 0.1 — Load Amazon IAM data into a SQLite database
TIL Closest locations to a point — Here's a PostgreSQL SQL query that returns the closest locations to a point, based on a brute-force approach where the database calculates the distance (in miles) to every single row and then sorts by that distance.
None
TIL Installing packages from Debian unstable in a Docker image based on stable — For [Datasette #1249](https://github.com/simonw/datasette/issues/1249) I wanted to build a Docker image from the `python:3.9.2-slim-buster` base image ("buster" is the current stable release of Debian) but include a single package from "sid", the unstable Debian distribution.
None
TIL Tracing every executed Python statement — Today I learned how to use the Python [trace module](https://docs.python.org/3/library/trace.html) to output every single executed line of Python code in a program - useful for figuring out exactly when a crash or infinite loop happens.
None
TIL Running gdb against a Python process in a running Docker container — While investigating [Datasette issue #1268](https://github.com/simonw/datasette/issues/1268) I found myself with a Python process that was hanging, and I decided to try running `gdb` against it based on tips in [Debugging of CPython processes with gdb](https://www.podoliaka.org/2016/04/10/debugging-cpython-gdb/)
None
Release tableau-to-sqlite 0.2.1 — Fetch data from Tableau into a SQLite database
Release c64 0.1a0 — Experimental package of ASGI utilities extracted from Datasette
Release django-sql-dashboard 0.4a2 — Django app for building dashboards using raw SQL queries
Release django-sql-dashboard 0.4a1 — Django app for building dashboards using raw SQL queries
Release datasette-publish-vercel 0.9.2 — Datasette plugin for publishing data using Vercel
Release datasette-auth-passwords 0.4 — Datasette plugin for authentication using passwords
Release django-sql-dashboard 0.4a0 — Django app for building dashboards using raw SQL queries
Release django-sql-dashboard 0.3a1 — Django app for building dashboards using raw SQL queries