Tailing in Python

May 16, 2010 A quick and pointless look at implementing tail in Python. Something of a koan.

Filed under python

Using PyFacebook without the Facebook middleware

December 1, 2007 I've been working on a Facebook application with a couple of friends recently. We decided to use PyFacebook library, but there was a brief period of intense confusion on my part about how to use the PyFacebook library without the included middleware. I worked through it, though, and this article has some advice on how you can do the same.

Filed under facebookpyfacebookdjangopython

Creating Multi-Worksheet Excel Docs with xlwt

November 4, 2012 xlwt is a great little Python module, this tutorial walks through the steps of using it to create a multi-worksheet Excel with cross-referencing formulas.

Filed under pythonexcel

Extraction: Get Metadata from HTML Documents

November 24, 2012 As part of a toy project I'm playing with I needed to extract titles, summaries and images, so I threw that together as the extraction library.

Filed under extractionpython

Search Recipes for Yahoo's BOSS in Python

July 12, 2008 This entry is a bit of a cookbook for using Yahoo's Python library for accessing the BOSS Mashup Framework. It has full examples for searching the web, images, news , for paginating results, and for limiting searches to specific domains.

Filed under pythonboss

Epic PyObjC, Part 2: Adding a Library & Bindings

August 24, 2008 This is the second segment of the Epic Introduction to PyObjC tutorial series. This time we're looking at integrating the simple metaweb.py library into our project, as well as using Cocoa Bindings and an NSArrayController to make setting up an NSTableView as easy as possible.

Filed under pythoncocoapyobjc

Intricate Static Websites With Django Templates

September 15, 2008 Over the weekend I needed to create a slightly complex static website, and decided to make a go at using Django templates to build it. I was not disappointed.

Filed under djangopython

Python Default Parameter Value Gotchas

September 11, 2010 Knowing when default parameter values are initialized can save you some pain. A lot of pain. A whole, whole lot of pain.

Filed under python

Stripping Illegal Characters from XML in Python

January 25, 2009 This is a simple Python script for stripping illegal entities from XML, which doesn't require any external libraries. It can be run from the command-line, or imported and called within Python code.

Filed under python

A Syntax Coloring Template Filter for Django

August 10, 2008 I spent a bit of time this evening writing a template filter for Django that accepts a string of code (and optionally the name of the Pygments lexer to use for highlighting) and returns the code nicely syntax colored. A simple but slightly helpful addition to your templating arsenal.

Filed under djangopython

A Python-Markdown Extension for Embedding Graphviz

January 16, 2010 I use Markdown for most of my online writing, and also as the format for most of my personal notes. Since I also use Graphviz quite frequently, adding an extension to handle both seemed like a reasonable next step.

Filed under pythonmarkdown