urlquery_python_api icon indicating copy to clipboard operation
urlquery_python_api copied to clipboard

Pep8 Love, New Parameters, and Start of an OO API

Open lojikil opened this issue 11 years ago • 0 comments

I've made this PR a bit bigger than I initially meant to, but here's what I've done:

  • I've added two parameters, gzip and apikey to most methods, which passes them "up" the chain eventually to query. A bit more configurable than gzip_default.
  • I've done some minor PEP8 massaging, and done a bit of testing with frosted
  • I've started creating an OO version of the API; URLQuery is started, the rest should flow from there. It's separate from the original api, but obviously modeled on it.
  • Added a pip requirements.txt to help with installation for those who use pip.

My next steps are two fold:

  • Tests! I've started stubbing out some, but there's more to do there. It'd be nice if every procedure & method had at least one test.
  • Convert the responses from URLQuery into objects to be hydrated based on API calls.

Still, for initial work, it's a start.

lojikil avatar Jun 22 '14 17:06 lojikil