Using sphinx.ext.extlinks for issue links
Datasette's release notes are formatted using Sphinx. Almost every bullet point links to the corresponding GitHub issue, so they were full of lines that look like this: I noticed that the aspw…
Notes on software engineering
141–160 of 546 posts, newest first.
Datasette's release notes are formatted using Sphinx. Almost every bullet point links to the corresponding GitHub issue, so they were full of lines that look like this: I noticed that the aspw…
This tip is for when you are working on a Python command-line application that runs using that program's name, as opposed to typing .
In this Observable notebook I'm plotting a line on a chart, but I want to provide tooltips showing the exact value at any point on the line.
Alex Garcia has been building some really cool new custom extensions for SQLite, working in C and Go. So far he's released two: - sqlite-lines, written in C, which adds and table-valued functions, for…
datasette-leaflet-geojson outputs GeoJSON geometries in HTML pages in a way that can be picked up by JavaScript and used to plot a Leaflet map.
Microsoft recently released Edit, a new terminal text editor written in Rust. It's pretty nice - it's reminiscent of but with a retro MS DOS feel. I wanted to run it on my Apple Silicon Mac.
Fly makes it surprisingly easy to configure wildcard DNS, such that is served by a single Fly application (which can include multiple instances in multiple regions with global load-balancing).
I wanted to ensure that when this template repository was used to create a new repo that repo would have a specific set of labels.
Textract is the AWS OCR API. It's very good - I've fed it hand-written notes from the 1890s and it read them better than I could.
Rhet Turnbull shared this short script for looking up the named timezone for a given location from Python on macOS using and the framework. It uses the package and pyobjc-framework-CoreLocation.
Did a quick experiment with DuckDB today, inspired by the bmschmidt/hathi-binary repo. That repo includes 3GB of data in 68 parquet files. Those files are 45MB each.
Matt Holt asked: Is there a tool that uses the GitHub API to generate a doc with all release notes from a repo?
I wanted my datasette-plugin cookiecutter template to create empty and directories if the user replied to the and prompts.
pytest-recording is a neat pytest plugin that makes it easy to use the VCR library, which helps write tests against HTTP resources by automatically capturing responses and baking them into a YAML file…
If you ever run into instructions that tell you to do this: Do not try to do this . It is a trap. For some reason attempting to install this runs a compilation process which can take multiple hours .
TIL: ================= - Today I Learnt, by David Winterbottom - Sam Searles-Bryant - Federico Marani - Josh Branchaud - Simon Willison - Jake Worth - Hashrocket - Thoughtbot
I like jq, but I always have to think pretty hard about how to construct the right syntax for it. I wanted to sum up the total number of comments in JSON that looks like this (truncated example): The…
While parsing a CSV file using today I noticed the following surprising result: This output the following: I had expected to preserve the order of keys from the CSV file, since Python has defaulted to…
First, checkout the cpython repo: $ git clone git@github.com:python/cpython cd into the directory: $ cd cpython/Doc To get a virtual environment with Sphinx and other required tools, run like this: $…
I habitually use the fixture in pytest to get a temporary directory that will be cleaned up after each test, but that doesn't work with - which can be used to ensure an expensive fixture is run only…