10 Oct 11

Requests allow you to send HEAD, GET, POST, PUT, PATCH, and DELETE HTTP requests. You can add headers, form data, multipart files, and parameters with simple Python dictionaries, and access the response data in the same way. It’s powered by urllib2, but it does all the hard work and crazy hacks for you.

by mlb

31 Jan 11

A website for people who need to work with Excel files in Python

by mlb

26 Jan 11

The matplotlib basemap toolkit is a library for plotting 2D data on maps in Python. It is similar in functionality to the matlab mapping toolbox, the IDL mapping facilities, GrADS, or the Generic Mapping Tools. PyNGL and CDAT are other libraries that provide similar capabilities in Python. Basemap does not do any plotting on it’s own, but provides the facilities to transform coordinates to one of 23 different map projections (using the PROJ.4 C library). Matplotlib is then used to plot contours, images, vectors, lines or points in the transformed coordinates. Shoreline, river and political boundary datasets (from Generic Mapping Tools) are provided, along with methods for plotting them. The GEOS library is used internally to clip the coastline and polticial boundary features to the desired map projection region.

by mlb

22 Sep 10

OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision. Uses range from interactive art, to mine inspection, stitching maps on the web on through advanced robotics.

by mlb

29 Apr 10

23 Mar 10

This is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding.

by mlb

05 Jan 10

In Python, destructors are not as needed as in C++, because Python has a garbage collector that handles memory management. However, while memory is the most common resource allocated, it is not the only one. There are also sockets and database connections to be closed, files, buffers and caches flushed and a few more resources that need to be released when an object is done with them.

by mlb

07 Nov 09

Answers to Python related questions that concern obscure or very subtle points

by mlb

17 Oct 09

PyThumbnail is a Python script that uses Gecko (Firefox’s rendering engine) to generate a thumbnail of a web page. It is headless, meaning you can call it from the command-line or from another program and it doesn’t require a running X server.

by mlb