Geoip2

Latest version: v5.0.1

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 7

2.5.0

++++++++++++++++++

* Added support for GeoLite2 ASN database.
* Corrected documentation of errors raised when using the database reader.
Reported by Radek Holý. GitHub 42.

2.4.2

++++++++++++++++++

* Recent releases of ``requests`` (2.12.2 and 2.12.3) require that the
username for basic authentication be a string or bytes. The documentation
for this module uses an integer for the ``user_id``, which will break with
these ``requests`` versions. The ``user_id`` is now converted to bytes
before being passed to ``requests``.

2.4.1

++++++++++++++++++

* Updated documentation to clarify what the accuracy radius refers to.
* Fixed classifiers in ``setup.py``.

2.4.0

++++++++++++++++++

* This module now uses ``ipaddress`` on Python 2 rather than ``ipaddr`` to
validate IP addresses before sending them to the web service.
* Added handling of additional error codes that the web service may return.
* PEP 257 documentation fixes.
* Updated documentation to reflect that the accuracy radius is now included
in City.
* Previously, the source distribution was missing some tests and test
databases. This has been corrected. Reported by Lumir Balhar.

2.3.0

++++++++++++++++++

* Added support for the GeoIP2 Enterprise database.
* ``geoip2.database.Reader`` now supports being used in a ``with`` statement
(PEP 343). (PR from Nguyễn Hồng Quân. GitHub 29)

2.2.0

++++++++++++++++++

* The ``geoip2.records.Location`` class has been updated to add attributes for
the ``average_income`` and ``population_density`` fields provided by the
Insights web service.
* The ``is_anonymous_proxy`` and ``is_satellite_provider`` properties on
``geoip2.records.Traits`` have been deprecated. Please use our `GeoIP2
Anonymous IP database
<https://www.maxmind.com/en/geoip2-anonymous-ip-database>`_
to determine whether an IP address is used by an anonymizing service.

Page 4 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.