Here is a collection of short articles I have written about how to do many useful things in Python.
This is a Python course I have written to quickly teach Python to my colleagues and students, made of slides and samples for hands-on exercises.
This short article shows how ExeFilter can be used to disable JavaScript in PDF files, which is effective against many Adobe Reader exploits discovered in 2009, including the recent zero-day CVE-2009-4324.
pdfid is a Python tool to analyze and sanitize PDF files, written by Didier Stevens. Here is a version that I have slightly modified to be imported as a module (originally for ExeFilter).
Origapy is a Python interface to Origami, a PDF parser written in Ruby. It provides access to pdfclean.rb, in order to sanitize PDF files by disabling all active content (javascript, launch actions, embedded files, etc).
There are several solutions if you need to run Ruby code from Python. It may be useful when you find an interesting Ruby module which has no equivalent in Python.
There are a few useful tips to convert a Python list (or any other iterable such as a tuple) to a string for display.
This article lists solutions to create network servers in Python for different standard protocols: HTTP, FTP, SMTP, SOAP, syslog, ...
This article describes solutions to create a single executable file containing a Python application/script and the Python interpreter DLL with all necessary libraries. The executable file can then be launched on any system even if Python is not installed.