Archive for the ‘python’ Category

W3C Command-line Validator

April 28, 2011

Published: 2011-04-29

A command-line script (written in Python) for validating HTML and CSS files and URLs using the WC3 validators.

(more…)

Bottle + MongoDB Example

March 17, 2011

Published: 2011-03-18

A didactic Web application written in Python to illustrate how to use the Bottle web-framework with the MongoDB database.

It’s a port I made of Mike Dirolf’s DjanMon application (how to use Django with MongoDB).

(more…)

Merging and Compacting VirtualBox Snapshots

June 17, 2010

Published: 2010-06-19
Updated: 2010-06-20
Updated: 2013-12-08

Using the VirtualBox GUI to manually merge lots of snapshots is time consuming and fiddly so I wrote a Python script called vboxmerge.py to do this automatically. The script merges a snapshot branch into the base VDI with a single command (it also illustrates how easy it is to script VirtualBox using Python).

(more…)

Command-line SMS script

March 23, 2010

Published: 2010-03-23
Updated: 2010-03-30, 2010-05-01, 2011-06-10

Note

The current version of this app is written in CoffeeScript and is published in the npm package registry.

A simple Python command-line script I wrote to send SMS messages using Clickatell’s HTTP API. In addition it:

  • Records sent messages in a log and has command option to view log file.
  • Has command options to query the Clickatell account balance and the status of previously sent messages.
  • Configuration can include a list of phone numbers.

(more…)