Releases: maxmind/GeoIP2-python
Releases · maxmind/GeoIP2-python
5.1.0
5.0.1
5.0.0
- BREAKING: The
rawattribute 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_addressproperty on the model classes now always returns
aipaddress.IPv4Addressoripaddress.IPv6Address. - BREAKING: The model and record classes now require all arguments other than
localesandip_addressto be keyword arguments. - BREAKING:
geoip2.mixinshas 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_codeongeoip2.record.Locationhas been deprecated. The
code values are no longer being maintained.- The type hinting for the optional
localeskeyword argument now allows
any sequence of strings rather than only list of strings.
4.8.1
4.8.0
- IMPORTANT: Python 3.8 or greater is required. If you are using an older
version, please use an earlier release. - The
is_anycastattribute was added togeoip2.record.Traits.
This returnsTrueif the IP address belongs to an
anycast network <https://en.wikipedia.org/wiki/Anycast>_.
This is available for the GeoIP2 Country, City Plus, and Insights web services
and the GeoIP2 Country, City, and Enterprise databases.
4.7.0
4.6.0
4.5.0
- Support for mobile country code (MCC) and mobile network codes (MNC) was
added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2
City and Insights web services.mobile_country_codeand
mobile_network_codeattributes were added togeoip2.model.ISP
for the GeoIP2 ISP database andgeoip2.record.Traitsfor the
Enterprise database and the GeoIP2 City and Insights web services.
We expect this data to be available by late January, 2022.
4.4.0
4.3.0
- Previously, the
py.typedfile was not being added to the source
distribution. It is now explicitly specified in the manifest. - The type hints for the database file in the
Readerconstructor have
been expanded to match those specified bymaxmindb.open_database. In
particular,os.PathLikeandIOhave been added. - Corrected the type hint for the
metadata()method onReader. It
will return amaxminddb.extension.Metadataif the C extension is being
used.