Not sure if this is still maintained, but I rewrote this library so it's >10000x faster (microseconds for both loading and queries). Also setup a GitHub action to auto-update the database nightly. Removes dependencies in the process. Feel free to use as a reference or I can make a PR if you want that fits your API.
Not sure if this is still maintained, but I rewrote this library so it's >10000x faster (microseconds for both loading and queries). Also setup a GitHub action to auto-update the database nightly. Removes dependencies in the process. Feel free to use as a reference or I can make a PR if you want that fits your API.
https://github.com/jamesdolan/ip_to_country