Category Archives: python

Python – Unpacking Iterables

Python iterables are lists, tuples, dictionaries and other similar objects – in other words things that can be iterated over. Python provides a way to ‘unpack’ these iterables which can be a useful shortcut in some situations. This post looks at unpacking iterables, and how it can also be used to make functions functions take… Read More »

Python Convert KML to GeoJSON

GeoJSON and KML are formats for storing spatial information. KML files are commonly found with Google Earth type applications, so it can be useful to convert KML to GeoJSON.  The python library kml2geojson can be used to convert KML to GeoJSON. kml2geojson works as either a tool from the command line, or can be used… Read More »

Python Text To Speech

Text to speech is a tool available in most operating systems, and helps people with reading and sight difficulties, or can be used as part of a ‘Jarvis‘ helper on your computer. Python has a few options for dealing with text to speech, generally in the form of wrappers for speech engines. This post goes… Read More »

Learn About Simple Python Logging

Logging can offer much more flexibility than simply printing a message to the console but it can be difficult to know where to start. This post looks a some examples of simple python logging to get you started. Why ‘log’ instead of ‘print’? Printing to the console is usually one of the first things you… Read More »