Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Fwd: Python API
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian Bicking  
View profile  
 More options Jun 23 2009, 4:20 pm
From: Ian Bicking <i...@openplans.org>
Date: Tue, 23 Jun 2009 15:20:57 -0500
Local: Tues, Jun 23 2009 4:20 pm
Subject: Fwd: Python API

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luigi Montanez  
View profile  
 More options Jun 23 2009, 4:28 pm
From: Luigi Montanez <luigi.monta...@gmail.com>
Date: Tue, 23 Jun 2009 16:28:26 -0400
Local: Tues, Jun 23 2009 4:28 pm
Subject: Re: [OCTO Labs] Fwd: Python API

I assume you mean a Python wrapper for the API. Have a look at the Sunlight
API wrapper:

http://github.com/sunlightlabs/python-sunlightapi/tree/master

Because the DC 311 API is structured off the Sunlight API, the
python-sunlightapi wrapper would be a great starting point for you.

You'll definitely want to host the code on GitHub -- the ability to fork
makes it a natural for further contributions from the community.

Best of luck,
Luigi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitry Kachaev (OCTO)  
View profile  
 More options Jun 23 2009, 4:28 pm
From: "Dmitry Kachaev (OCTO)" <dmitry.kach...@dc.gov>
Date: Tue, 23 Jun 2009 16:28:32 -0400
Local: Tues, Jun 23 2009 4:28 pm
Subject: Re: [OCTO Labs] Fwd: Python API

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

voice: (202) 527-9423
mail: dmitry.kach...@dc.gov
location: One Judiciary Square, 1010S
schedule: http://links.dc.gov/dk-freebusy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Python API" by Ian Bicking
Ian Bicking  
View profile  
 More options Jun 23 2009, 8:50 pm
From: Ian Bicking <i...@openplans.org>
Date: Tue, 23 Jun 2009 19:50:00 -0500
Subject: Re: Python API

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

--
Ian Bicking  |  http://blog.ianbicking.org  |
http://topplabs.org/civichacker

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitry Kachaev (OCTO)  
View profile  
 More options Jun 23 2009, 9:40 pm
From: "Dmitry Kachaev (OCTO)" <dmitry.kach...@dc.gov>
Date: Tue, 23 Jun 2009 21:40:50 -0400
Local: Tues, Jun 23 2009 9:40 pm
Subject: Re: [OCTO Labs] Re: Python API
Great,
I will put it on api.dc.gov page.

-Dmitry

Dmitry Kachaev, Director of R&D
Office of the CTO, DC Government

voice: (202) 527-9423
mail: dmitry.kach...@dc.gov
location: One Judiciary Square, 1010S
schedule: http://links.dc.gov/dk-freebusy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »