Posts

Speedy Sets


Sets are a valuable tool in any programmer’s toolbox. Finding unique items in a list or shared items between two lists is super simple using sets. But did you know they can be used for a considerable performance increase, in certain cases?

Read on

Build Modular Command-Line Tools with Click


I’m currently in the process of rewriting some of my everyday scripts to use Click. It’s a joy to use, especially for scripts with subcommands, because it has an API that’s well-thought-out but still fairly flexible. So here’s a simple code pattern that I’ve been using for keeping configuration. It should show you why I’m so enthusiastic about this library right now:

Read on

Growing


A year ago yesterday I tweeted about how STL Python was at 94 members, so close to 100. Those hundred members represented a big milestone for me: they meant that STL Python was doing something that mattered. I was so excited that I even offered a cookie to the 100th person who signed up and came to a meetup (unfortunately nobody took me up on it!)

Read on

Announcing setattr: your Python Toolbox


Today, I’m announcing the launch of setattr: video training and group lessons for Python programming. Right now it’s just a launch page, but I’m working hard on creating videos and planning courses for the opening.

Read on

Speed up pip install with Wheel


So PEP 427 (wheel) has been accepted and implemented. It’s a “built-in package format for python”:

A wheel is a ZIP-format archive with a specially formatted filename and the .whl extension. It is designed to contain all the files for a PEP 376 compatible install in a way that is very close to the on-disk format. Many packages will be properly installed with only the “Unpack” step (simply extracting the file onto sys.path), and the unpacked archive preserves enough information to “Spread” (copy data and scripts to their final locations) at any later time. — wheel docs

Read on