- BREAKING: The
raw
attribute on the model classes has been replaced
with ato_dict()
method. This can be used to get a representation of
the object that is suitable for serialization. - BREAKING: The
ip_address
property on the model classes now always returns
aipaddress.IPv4Address
oripaddress.IPv6Address
. - BREAKING: The model and record classes now require all arguments other than
locales
andip_address
to be keyword arguments. - BREAKING:
geoip2.mixins
has been made internal. This normally would not
have been used by external code. - IMPORTANT: Python 3.9 or greater is required. If you are using an older
version, please use an earlier release. metro_code
ongeoip2.record.Location
has been deprecated. The
code values are no longer being maintained.- The type hinting for the optional
locales
keyword argument now allows
any sequence of strings rather than only list of strings.