Python

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

Using the Webmention.io API

Using the Webmention.io API

Fetching my IndieWeb mentions with HTTPie and Requests

Read on…

Checking out Playwright for Python

While automation is important, end-to-end tests are prone to being slow and flaky. To fix this, we released Playwright in JavaScript earlier this year and have enabled thousands of developers and testers to be successful at end-to-end testing. Today, we’re bringing the same capabilities to Python.

Almost made it to bed at a reasonable time until a random search showed me this. I’d been glancing enviously at Playwright earlier this year. Configurable, cross-browser testing? Nice. Nicer than Selenium, anyways.

BRB rewriting all my browser tests.

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…