yaph / geonamescache

geonamescache - a Python library for quick access to a subset of GeoNames data.
https://pypi.org/project/geonamescache/
MIT License
99 stars 38 forks source link

Bringing the search_cities behaviour to be consistent #39

Closed pigden closed 1 year ago

pigden commented 1 year ago

Bringing the search_cities behaviour to be consistent when looking at list and string attributes. The new default will be contains based searching but can be changed to exact search with the argument contains_search. Also changing the code to use python3 syntax for casing as python 2.7 is no longer supported.

pigden commented 1 year ago

I have made these changes, to make the code more readable and the default of case_sensitive.

yaph commented 1 year ago

Thank you! I'll create a new release soon.