Geonamescache

Latest version: v2.0.0

Safety actively analyzes 621329 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.0.0

* More consistent behavior of `search_cities` function. By default the attribute value is search for partial matches and search is performed case insensitive. This is different from the previous behavior, where list values were treated differently from string values and search was case sensitive by default. See [issue 38](https://github.com/yaph/geonamescache/issues/38). The new behavior was implemented by Chris Pigden pigden.
* Update geo data.

1.6.0

* Update GeoNames data
* Fix data test name, contributed by m-gaster

1.5.0

* Use `os` module and `open` function in `_load_data` instead of `importlib.resources` for compatibilty with Python 3.8, implemented by Benny Elgazar Bennyelg

1.4.0

* Include 4 different sized city datasets, that can be accessed via the new `min_city_population` parameter when creating a `GeonamesCache` class object.

1.3.0

* Add case_sensitive parameter in the search_cities function and the functionality to do case insensitive search implemented by Chris Pigden pigden
* Update geo data
* Upgrade dependencies
* Only support currently supported Python version 3.7, 3.8, 3.9, i.e. no more Python 2.7 support

1.2.0

* Add `alternatenames` attribute to entries in cities.json with a list of alternate city names.
* Add `search_cities` function which returns a list of entries that include the query in given attribute.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.