Python

Posts where I used the Python programming language and thought that was interesting.

Querying Hugo Content With Python

Querying Hugo Content With Python

I had entirely too much fun replacing my site metadata script with sqlite-utils

Read on…

Datasette Sure Is Nifty

Datasette Sure Is Nifty

So uh yeah. See I was stumbling my way through using sqlite-utils to collect site content metadata. Finally figured that out but then made the mistake of looking at that data through Datasette.

Okay not really a mistake. Helped me find a few dozen front matter typos. Simon Willison makes cool stuff.

h-entry Microformat for Indieweb Posts

h-entry Microformat for Indieweb Posts

In which I go overboard with Hugo and Python for a quick Sunday task

Read on…

VS Code pylint needs pylintrc

Visual Studio Code doesn’t seem to pick up my environment’s PYTHONPATH when running pylint. Makes project-local modules a headache. The solution: put it in your pylint config.

${workspaceFolder}/.pylintrc

[MASTER]
init-hook='import sys; sys.path.append("pylib")'

Okay, I got more planned for today than messing with code. Back to that other stuff.

Python Invoke

I got to know the Python invoke task runner a little better.

Read on…

reStructuredText Basics For Blogging

I got carried away taking notes about basic RST usage

Read on…

A Quick Notes Script for Taskwarrior

A Quick Notes Script for Taskwarrior

Read on…

Building a starter blog with Nikola

Building a starter blog with Nikola

In which I play with another site builder

Read on…

DWIM is consistent

Read on…

Weighing Files With Python

Weighing Files With Python

I want to optimize this site’s file sizes, but first I should see if I need to.

Read on…