Monday, 7th December 2020
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:
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.
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.