systemcatch / eiapy

A simple wrapper for the U.S. Energy Information Administration API
https://pypi.org/project/eiapy/
MIT License
23 stars 8 forks source link

Simplify the Search class construction #8

Closed systemcatch closed 5 years ago

systemcatch commented 6 years ago

There are only 3 choices of category to search (series id, keyword, date range). I shouldn't make the the user bother about specifying one in the init.

Require only search_value in init and change find method into 3 separate methods (similar structure), say by_series_id, by_keyword, by_date.