Hi folks,
I've uploaded a first attempt at some python bindings for the openaustralia api.
https://pypi.python.org/pypi/openaustraliaLinks to source, docs, etc are there. It sticks closely to what I've seen from the other php & ruby bindings on your site.
It's flagged as an alpha at the moment, so if there are any pythonistas out there who are interested, you can give it a try like so:
$ pip install --pre openaustralia
(The --pre allows python to install the alpha packages...)
Then the usual stuff can happen:
In [2]: from openaustralia.api import OpenAustralia
In [3]: oa = OpenAustralia(key)
In [4]: mps = oa.get_representatives(postcode='2010')
In [5]: mps
Out[5]:
[{u'constituency': u'Sydney',
u'entered_house': u'1998-10-03',
u'entered_reason': u'general_election',
u'first_name': u'Tanya',
u'full_name': u'Tanya Plibersek',
u'house': u'1',
u'image': u'/images/mpsL/10513.jpg',... etc...
Anyways, any feedback, votes against, feel free.
Cheers,
Chris.