760a1473c6
- update to version 5.0.0: - BREAKING: The `raw attribute on the model classes has been replaced with a to_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 a ipaddress.IPv4Address or ipaddress.IPv6Address. - BREAKING: The model and record classes now require all arguments other than locales and ip_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 on geoip2.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. - update to version 4.8.1: - setuptools` was incorrectly listed as a runtime dependency. This has been removed. Pull request by Mathieu Dupuy. GitHub #174.
Sebastian Wagner2025-05-04 06:59:46 +00:00
23708aafe0
- update to version 4.8.0: - The `is_anycast attribute was added to geoip2.record.Traits. This returns True if 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.
Sebastian Wagner2025-01-12 14:10:51 +00:00
3221d2aef0
Accepting request 1128910 from Application:Geo
Ana Guerrero2023-11-27 21:42:36 +00:00
f3822d04c8
Accepting request 1128869 from home:dirkmueller:Factory
Martin Pluskal2023-11-26 13:14:56 +00:00
77c72fef30
- Update to version 4.6.0: - The AddressNotFoundError class now has an ip_address attribute with the lookup address and network property for the empty network in the database containing the IP address. These are only available when using a database, not the web service. - Rebase 0001-Removing-unused-urllib3-dependency-loosening-request.patch
Paolo Stivanin2022-07-04 07:13:23 +00:00
3d9906f860
- update to version 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_code and mobile_network_code attributes were added to geoip2.model.ISP for the GeoIP2 ISP database and geoip2.record.Traits` for the Enterprise database and the GeoIP2 City and Insights web services. We expect this data to be available by late January, 2022.
Sebastian Wagner2021-11-19 05:23:23 +00:00
aaa5df3d26
- update to version 4.4.0: - The public API on `geoip2.database is now explicitly defined by setting __all__. - The return type of the metadata() method on Reader is now maxminddb.reader.Metadata rather than a union type. - update to version 4.3.0: - Previously, the py.typed file 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 Reader constructor have been expanded to match those specified by maxmindb.open_database. In particular, os.PathLike and IO have been added. - Corrected the type hint for the metadata() method on Reader. It will return a maxminddb.extension.Metadata` if the C extension is being used.
Sebastian Wagner2021-09-28 18:03:30 +00:00
34518af02c
- update to version 4.2.0: - You may now set a proxy to use when making web service requests by passing the `proxy parameter to the AsyncClient or Client` constructor.
Sebastian Wagner2021-05-14 16:12:24 +00:00