Skip to content

5.4.0

Latest

Choose a tag to compare

@oschwald oschwald released this 17 Nov 23:10
Immutable release. Only release title and notes can be modified.
1432a51
  • 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.