mattlisiv / newsapi-python

A Python Client for News API
MIT License
375 stars 130 forks source link

Accept additional type inputs for to & from_param #45

Closed bsolomon1124 closed 4 years ago

bsolomon1124 commented 4 years ago

Accept date, datetime, float, int, str, or None for both date-related parameters.

The input will be converted to either an ISO-8601 date string or datetime string using utils.stringify_date_param().

A couple possible TODOs (at least to document):