github maxmind/GeoIP2-python v5.4.0
5.4.0

35 minutes ago
  • The minimum version of maxminddb is now 3.3.0. This version raises
    InvalidDatabaseError for more kinds of corrupt databases, and it fixes
    memory-safety and free-threading bugs in the C extension. It also lets
    geoip2.database.Reader open a binary file object with MODE_AUTO. See
    the maxminddb 3.3.0 release notes <https://github.com/maxmind/MaxMind-DB-Reader-python/releases/tag/v3.3.0>_.
  • The type hint for the fileish argument of geoip2.database.Reader is
    now maxminddb.types.DatabaseSource. With MODE_FD or MODE_AUTO,
    it accepts any object whose read() method returns bytes, such as a
    gzip.GzipFile. It no longer accepts a text file object, which never
    worked.

Don't miss a new GeoIP2-python release

NewReleases is sending notifications on new releases.