-
Notifications
You must be signed in to change notification settings - Fork 679
CLN: Cleanup WorldBank reader #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You might pass session parameter to each functions which should download data in order to also provide cache mechanism to WorldBank data reader. (CC @davidastephens ) |
Sorry. In fact, there is now a class but you might to also pass a |
An other improvement might be about We shouldn't use string but Enum (enum34 for Python 2) as it wil allow tab completion. |
A last idea (about methods of WorldBankReader)...
|
I thought that it was the last idea... but sorry I also noticed that there is a We might support chunks and use try and http://api.worldbank.org/countries/?per_page=100&format=json&page=1 but this is probably out of the scope of this PR and an issue should be opened for this. |
@femtotrader Thanks for the comments. I've updated the PR as below. I intend this PR to cover existing functionality, and others should be handled separately.
|
Thanks a lot for you work. You are right! Other improvements should be done in an other PR. |
Sorry @sinhrks I think that there is a mistake with
it should be
|
@femtotrader Thanks! Fixed and added tests. |
CLN: Cleanup WorldBank reader
Closes #120 to remove
urlopen
.Related #119, changed some default arg using
list
toNone
(and set them in the method).CC @femtotrader