## Posts Tagged With 'python'

### My first Property test - a brief retrospective

###### Written by David Mcilwee in python on Sun 31 July 2016. Tags: python,

Recently I found myself having to implement a fairly simple algorithm, the orthodromic (great-circle) distance between 2 latitude/longitude points. I've long looked at property based testing and it implementations (QuickCheck) with a sense of longing, but couldn't find something that would easily allow me to bring this ...

### Pycon 2015 Retrospective

###### Written by David Mcilwee in python on Wed 04 November 2015. Tags: python,

This was something I meant to post shortly after Pycon ended, but did not manage to get around to.

Pycon has come and gone and as usual was a blast.

I think (hope) my talk went down quite well, but as usual there is plenty of room for improvement!

(I ...

### DateTime ranges in SQLAlchemy with Postgresql

###### Written by David Mcilwee in python on Thu 12 February 2015. Tags: python, sqlalchemy, postgresql,

Postgresql has some very handy features, one of which is the range type. This allows you to express a distinct block of time as a unique value.

Using SQLAlchemy we can quickly use this to add more meaning and cut down on boiler plate.

from sqlalchemy import Column
from sqlalchemy ...