Hi all. I am thinking about making a Python API for the DC 311 system, mostly as a learning tool so I can get my head around the data that is being provided. Has anyone worked on anything with Python specifically? Is there any preference about where I host the work (mostly to make it easy for other people to find and contribute to later)? It might be fun to then take something like http://shell.appspot.com/ and set up a shell accessible over the web that has the library setup and instantiated, as a kind of API browser. -- Ian Bicking | http://blog.ianbicking.org | http://topplabs.org/civichacker
On Tue, Jun 23, 2009 at 4:20 PM, Ian Bicking <i...@openplans.org> wrote:
> Hi all. I am thinking about making a Python API for the DC 311 system,
> mostly as a learning tool so I can get my head around the data that is being
> provided. Has anyone worked on anything with Python specifically? Is there
> any preference about where I host the work (mostly to make it easy for other
> people to find and contribute to later)?
> It might be fun to then take something like http://shell.appspot.com/ and
> set up a shell accessible over the web that has the library setup and
> instantiated, as a kind of API browser.
> --
> Ian Bicking | http://blog.ianbicking.org |
> http://topplabs.org/civichacker
Well, our API is built on Python internally. Will be great to see what you
will build.
Also we should release new version of API with cleaned up JSON and some
other improvement (hopefully tonight), but it can be modification of current
version so changes should be simple.
No preferences on source hosting from our side. We are planning to clean up
our code and release it publicly sometime soon.
-Dmitry
Dmitry Kachaev, Director of R&D
Office of the CTO, DC Government
On Tue, Jun 23, 2009 at 4:20 PM, Ian Bicking <i...@openplans.org> wrote:
> Hi all. I am thinking about making a Python API for the DC 311 system,
> mostly as a learning tool so I can get my head around the data that is being
> provided. Has anyone worked on anything with Python specifically? Is there
> any preference about where I host the work (mostly to make it easy for other
> people to find and contribute to later)?
> It might be fun to then take something like http://shell.appspot.com/ and
> set up a shell accessible over the web that has the library setup and
> instantiated, as a kind of API browser.
> --
> Ian Bicking | http://blog.ianbicking.org |
> http://topplabs.org/civichacker
The code is up here: http://github.com/ianb/python-dc311/ I have most of it mapped I think. I think the service requests have a typo with servicetypeocode instead of servicetypecode. Dmitry mentioned JSON cleanup, which I'm assuming means flattening those lists of one-item dicts/objects? Converting the "NULL" strings might also be nice.
On Tue, Jun 23, 2009 at 3:20 PM, Ian Bicking <i...@openplans.org> wrote: > Hi all. I am thinking about making a Python API for the DC 311 system, > mostly as a learning tool so I can get my head around the data that is being > provided. Has anyone worked on anything with Python specifically? Is there > any preference about where I host the work (mostly to make it easy for other > people to find and contribute to later)? > It might be fun to then take something like http://shell.appspot.com/ and > set up a shell accessible over the web that has the library setup and > instantiated, as a kind of API browser. > -- > Ian Bicking | http://blog.ianbicking.org | > http://topplabs.org/civichacker
On Tue, Jun 23, 2009 at 8:50 PM, Ian Bicking<i...@openplans.org> wrote:
> The code is up here: http://github.com/ianb/python-dc311/ > I have most of it mapped I think. I think the
> service requests have a typo with servicetypeocode instead of
> servicetypecode. Dmitry mentioned JSON cleanup, which I'm assuming means
> flattening those lists of one-item dicts/objects? Converting the "NULL"
> strings might also be nice.
> The doctest more or less shows how it is used:
> http://github.com/ianb/python-dc311/blob/fac35fd424d2f0b56cbcfc324863...
> Where does the area ID come from?
> On Tue, Jun 23, 2009 at 3:20 PM, Ian Bicking <i...@openplans.org> wrote:
>> Hi all. I am thinking about making a Python API for the DC 311 system,
>> mostly as a learning tool so I can get my head around the data that is being
>> provided. Has anyone worked on anything with Python specifically? Is there
>> any preference about where I host the work (mostly to make it easy for other
>> people to find and contribute to later)?
>> It might be fun to then take something like http://shell.appspot.com/ and
>> set up a shell accessible over the web that has the library setup and
>> instantiated, as a kind of API browser.
>> --
>> Ian Bicking | http://blog.ianbicking.org |
>> http://topplabs.org/civichacker