Kiss my snake...
Embrace the snake...

Key Ingredients

Python.org Python home page
Python win32 extensions ActiveState extensions for Windows COM programming. I use this. This stuff works.
PyPI The Python Package Index

My Stuff

Pexpect I loved Expect, but I hated TCL, so I wrote this 100% pure Python module that does the same thing.
FSM A Finite State Machine class. Arguably also a Push-down Automata and even a TM...
Daemonize This short module shows the correct way to create a UNIX daemon process in Python.
HTTPS My notes on how to set up M2Crypto on WinNT to build HTTPS client scripts.
Zope on OpenBSD How to build Zope on OpenBSD

This is an interesting maze fractal algorithm that I came up with in college back when fractals were still cool. I originally wrote it in C. The algorithm generates proper mazes with no loops and no disconnected passages. It also totally fills a given array.
You can test run the maze algorithm by clicking on this maze:

Scripting Illustrator with COM/Python My random notes on Scripting Adobe Illustrator with COM and Python.
VIM shortcutshttp://www.vim.org/scripts/script.php?script_id=30
.vimrc for Python

This is how I set my .vimrc file for Python.

autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai
autocmd FileType * set tabstop=2|set shiftwidth=2|set noexpandtab
autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab

Spam Filter This is a little spam filter that I use. It operates directly on a UNIX mbox formatted mail spool.


Python syntax file for TextPad TextPad is a little text editor that I like to use on Windows.
ReportLab Toolkit This is an open source package that allows generation of Adobe Acrobat (PDF) documents. This is the best Python PDF generator I have found.
dbxread This module by Steve Holden reads Outlook DBX binary email files.
pSQL A Python-friendly interface to SQL -- glad to see this again. Local cached copy: pSQL-0.9.4.tar.gz


Dive Into Python Online book -- Python for experienced programmers
DMOZ Python Open Directory of Python sites. A great place to search.
TIOBE Programming Community Index gives an indication of the popularity of programming languages
PLEAC Programming Language Examples Alike Cookbook
Greg Stein Greg has some good resources, especially for WebDAV.
FAQTS for Python
HotScripts for Python
Cetus links
Python Cookbook at ActiveState
Python Snippets at SourceForge
biopython Python tools for computational molecular biology


Test for primality with a regular expression. No, I'm serious...

import re
def is_prime (num):
return re.match(r"^1?$|^(11+?)\1+$",'1'*num) is None

Click to send email.
The Truth Shall Make You Free.