urlquery_python_api
urlquery_python_api copied to clipboard
Pep8 Love, New Parameters, and Start of an OO API
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,
gzipandapikeyto most methods, which passes them "up" the chain eventually toquery. A bit more configurable thangzip_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;
URLQueryis started, the rest should flow from there. It's separate from the originalapi, but obviously modeled on it. - Added a pip
requirements.txtto 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.