python-motorsportql /

Filename Size Date modified Message
213 B
1.6 KB
7.9 KB

MotorsportQL: Motorsport Query Language

Martin Galpin (


Motorsport Query Language (known as MotorsportQL) is a small query language for retrieving motorsport telemetry stored in a database. It has a simple, SQL-like syntax.

The primary purpose of MotorsportQL is to quickly perform relational queries on a database of motorsport telemetry without the need to understand its particular storage implementation.

For example, MotorsportQL makes it easy to perform simple queries such as:

select fastest where = "Silverstone" 
    and vehicle.category = "Formula One" and datetime < '2010-01-01'
        and (user = "Michael Schumacher" or user = "Nico Rosberg")

For more information, see

Included with this bundle is a reference parser for MotorsportQL written in Python and the excellent PyParsing module. This is a example parser and there is currently no backend implementation released as Open Source.


A complete test suite (100% coverage) is included. See


Copyright (C) 2010 66laps Limited. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.


27/09/2010 - Initial release according to MotorsportQL 1.0.