Archive for the 'Python' Category

mod_wsgi

Tuesday, May 1st, 2007

This seems interesting:

mod_wsgi is an Apache module that provides a WSGI compliant interface for hosting Python based web applications within Apache. The adapter is written completely in C code against the Apache C runtime and for hosting WSGI applications within Apache has a lower overhead than using existing WSGI adapters for mod_python or CGI.

Unfortunately, there hasn’t been a stable release yet, so you’ll need to checkout a copy from SVN and compile if you want to try it. But I bet something shows up (masked) in Gentoo relatively soon.

Python up, Ruby down

Tuesday, May 1st, 2007

And the award for best Ruby vs. Python weblog post title goes to… Python up, Ruby down: If that runtime don’t work, then its bound to drizzown.

PyDigg

Tuesday, May 1st, 2007

Now that Digg has released their new API, it was only a matter of time before someone wrote something like PyDigg:

PyDigg is a Python toolkit for the Digg API. It provides an object-oriented interface to all of the available endpoints of the API. It is offered under the MIT License.

It only has a few basic dependencies and looks like it’s pretty well written. Very cool.

PIDA loves you

Tuesday, May 1st, 2007

Yet another Python IDE, this one is called PIDA:

PIDA is different from other IDEs in that it will use the tools you already have available rather than attempting to reinvent each one. PIDA is written in Python with the PyGTK toolkit, and although is designed to be used to program in any language, PIDA has fancy Python IDE features.

I still like Komodo, but the PIDA screenshots don’t look horrible.

Building a simple web server in Python

Tuesday, May 1st, 2007

About.com has a decent tutorial on making your own Python web server. Too bad it’s cluttered with ads and split over a bunch of pages. Still, a decent reference.

Automate IE with IEC.py

Wednesday, April 11th, 2007

IEC is a python library “designed to help you automate and control an Internet Explorer window.” Quoth the project page:

You can use this library to navigate to web pages, read the values of various HTML elements, set the values of checkboxes, text boxes, radio buttons etc., click on buttons and submit forms.

Sounds cool… if you use IE. Bleh.

More Python snippets… snypets?

Tuesday, April 10th, 2007

The Snyppets page contains “a bunch of miscellaneous Python code snippets, recipes, mini-guides, links, examples, tutorials and ideas, ranging from very (very) basic things to advanced.”

Python for Fun

Tuesday, April 10th, 2007

Python for Fun has a collection of simple scripts that each demonstrate some basic tasks:

They are aimed at intermediate programmers; people who have studied Python and are fairly comfortable with basic recursion and object oriented techniques. Each program is very short, never more than a couple of pages and accompanied with a write-up.

A simple game, some GUI building, the classic Towers of Hanoi, and others are included.

Spell checking in 20 lines of Python

Tuesday, April 10th, 2007

Peter Norvig has an article up about how to write a spelling corrector that’s getting quite a bit of attention. The explanation of the code and theory behind it is really interesting stuff.

Garmin Training Center and Python

Tuesday, March 27th, 2007

As might know, I recently completed the Couch-to-5K running plan and used a Garmin Forerunner 205 to track my progress. The Garmin Training Center software for the device isn’t too bad, but it would be nice to not have to rely on it.

Well as it turns out, Bob Rudis wrote a Python script to read the gtc database files:

If you’ve got python and it’s sqlite library installed, then this script will be a half-decent example of how to pull data from “.gtc” database for each entry in the stored history. If not, have no fear, I hope to release a small app to let you extract the data on your own and I’m still thinking about that widget.

The cool part is that, as Bob pointed out earlier, the Training Center database files are nothing more than SQLite files! How awesome is that?