Software

I’m a programmer. I’ve made and contributed to an awful lot of software that’s available on the web, mostly Open Source.

Here’s a partial list.

Software I made

Software of which I am the primary author or co-author.

graphql-api

GraphQL server in Haskell.

GraphQL is a compelling alternative to REST. This library, inspired by servant and implemented together with teh, allows you to write GraphQL services in Haskell.

I wrote most of the “validation” code, which translates the AST into something that can be executed.

haskell-spake2

Implementation of the SPAKE2 key-exchange protocol in Haskell.

Derived from warner’s python-spake2 and intended for use with magic-wormhole.

grafanalib

EDSL in Python for building Grafana dashboards.

testtools

Tasteful unit testing for Python.

Created together with Robert Collins. I no longer play much of a role in maintaining it.

treeshape

Creates files and directories on disk in a declarative way. Great for testing code that does disk I/O.

difftodo

Neat little tool that looks at diffs of arbitrary source codecode, finds any comments with XXX, FIXME or TODO and then formats them nicely.

Has Emacs integration, so you can treat XXX comments like compiler errors.

I have ambitions to turn it into a web service.

Projects I have contributed to

Cortex

Highly-available, horizontally-scalable time series database for Prometheus, developed by Weaveworks.

The brain-child of Tom Wilkie, I mostly play a guest starring role, but I’m proud of contributing.

Twisted

Still the best way to do networking in Python. Twisted was first open source project I got involved with. I learnt so much from the other contributors.

I haven’t contributed much recently, but back when I was more active, I did a lot of work on Trial, Twisted’s unit testing framework.

subunit

Protocol for streaming test results. The foundational technology for testrepository, and extremely useful for gathering interesting data about tests.

testrepository

Wonderful little test runner that stores past results and uses those results to parallelize test runs in the most efficient manner.

When you use it to run tests, it shows you the delta of failures, number of tests and time taken to run. This is a little thing, but makes a powerful difference to the TDD cycle.

pkgme

Make Ubuntu packages for your project automatically.

python-fixtures

Resources with clean up that you can compose and re-use without buying into an entire framework.  That said, they do work exceptionally well with testtools.

pyflakes

What used to be everyone’s favourite Python lint checker.

Bazaar

One of the earliest distributed version control tools and in many ways the most pleasing to use. I wrote a lot of the Launchpad integration.

Launchpad

Huge, ridiculously ambitious open source collaboration platform: tracks bugs, hosts code, manages translations, and builds Ubuntu.

I wrote large chunks of the code hosting system, and have messed around lots with its testing infrastructure and the chain of tools around building packages.

For a while, I was also the product manager. When I was, I tried to make sense of what Launchpad actually is and what its strategy was.

Scraps

Little tools that I don’t spend much time on, because they meet my needs and they don’t have many users.

txapply

Provides a way of using Twisted’s Deferred objects like they are applicative functors.

Lets you use an arbitrary function to combine arbitrary Deferred objects.

testdoc

I dislike Python’s doctest, for reasons best explained by Andrew Bennetts: narrative tests are lousy tests and tests are code, doctests aren’t. People kept telling me that doctests were are great way of getting documentation for free when writing tests. So, I wrote a cheeky little tool that analyzes Python unit test modules and turns them into readable documentation. This is it.

hodor

todo.txt compatible command-line client, written in Haskell.