While researching PDF libraries for Python, I stumbled across another little project called metaPDF. According to its website, metaPDF is a lightweight Python library optimized for metadata extraction and insertion, and it is a fast wrapper over the excellent pyPdf library. It works by quickly searching the last 2048 bytes of the PDF before parsing […]
Some teens from around the world decided to learn Python using Raspberry Pi to write a game during a sprint starting today and running through tomorrow. They are taking donations to give to the Raspberry Pi foundation too. You can follow their live stream if you want to. Raspberry Pi is an ARM GNU/Linux box […]
There are lots of different ways to download a file from the internet using Python. One popular way is to connect to an FTP server and download your files that way. So that is what we will be looking at in this article. All you need is your standard installation of Python. It includes a […]
SQLite is a self-contained, server-less, config-free transactional SQL database engine. Python gained the sqlite3 module all the way back in version 2.5 which means that you can create SQLite database with any current Python without downloading any additional dependencies. Mozilla uses SQLite databases for its popular Firefox browser to store bookmarks and other various pieces […]
Note: The following post was originally published over on Dzone. I changed the title because I already wrote several XML parsing articles and don't want my readers to get this one confused with the others. One of the common tasks I am given in my day job is to take some data format input and […]
Occasionally I'll see someone on the wxPython users group ask about how to make the wx.Notebook change pages (or tabs) programmatically. So I decided it was about time I figured it out. Here is some code that works for me: import random import wx ######################################################################## class TabPanel(wx.Panel): #---------------------------------------------------------------------- def __init__(self, parent, page): """""" wx.Panel.__init__(self, parent=parent) […]