Skip to content

Releases

5.4.0

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.

5.3.0

Choose a tag to compare

@oschwald oschwald released this 16 Jul 22:16
Immutable release. Only release title and notes can be modified.
9346701
  • The version is now retrieved from package metadata at runtime using
    importlib.metadata. This reduces the chance of version inconsistencies
    during releases.
  • The async client now builds its Authorization header with
    aiohttp.encode_basic_auth() instead of the aiohttp.BasicAuth /
    auth= parameter, which are deprecated as of aiohttp 3.14.0. As a result,
    the minimum required aiohttp version is now 3.14.0.
  • A new residential attribute has been added to
    geoip2.records.Anonymizer. This is a geoip2.records.AnonymizerFeed
    object providing residential proxy data for the network and contains the
    following fields: confidence, network_last_seen, and
    provider_name. This attribute may be populated even when no other
    anonymizer attributes are set, so the anonymizer object may now
    contain only this attribute.

5.2.0

Choose a tag to compare

@oschwald oschwald released this 20 Nov 18:18
d6cd6a0
  • IMPORTANT: Python 3.10 or greater is required. If you are using an older
    version, please use an earlier release.
  • maxminddb has been upgraded to 3.0.0. This includes free-threading
    support.
  • Setuptools has been replaced with the uv build backend for building the
    package.
  • A new anonymizer object has been added to geoip2.models.Insights.
    This object is a geoip2.records.Anonymizer and contains the following
    fields: confidence, network_last_seen, provider_name,
    is_anonymous, is_anonymous_vpn, is_hosting_provider,
    is_public_proxy, is_residential_proxy, and is_tor_exit_node.
    These provide information about VPN and proxy usage.
  • A new ip_risk_snapshot property has been added to
    geoip2.records.Traits. This is a float ranging from 0.01 to 99 that
    represents the risk associated with the IP address. A higher score indicates
    a higher risk. This field is only available from the Insights end point.
  • The following properties on geoip2.records.Traits have been deprecated:
    is_anonymous, is_anonymous_vpn, is_hosting_provider,
    is_public_proxy, is_residential_proxy, and is_tor_exit_node.
    Please use the anonymizer object in the Insights model instead.

5.1.0

Choose a tag to compare

@oschwald oschwald released this 05 May 19:38
193875c
  • Support for the GeoIP Anonymous Plus database has been added. To do a lookup
    in this database, use the anonymous_plus method on Reader.
  • Reorganized module documentation to improve language-server support.

5.0.1

Choose a tag to compare

@oschwald oschwald released this 28 Jan 23:20
5df245d
  • Allow ip_address in the Traits record to be None again. The
    primary use case for this is from the minfraud package.

5.0.0

Choose a tag to compare

@oschwald oschwald released this 28 Jan 21:47
056787f
  • 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.

4.8.1

Choose a tag to compare

@oschwald oschwald released this 18 Nov 17:30
5df17ce
  • setuptools was incorrectly listed as a runtime dependency. This has
    been removed. Pull request by Mathieu Dupuy. GitHub #174.

4.8.0

Choose a tag to compare

@oschwald oschwald released this 05 Dec 22:19
607a0e6
  • IMPORTANT: Python 3.8 or greater is required. If you are using an older
    version, please use an earlier release.
  • 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.

4.7.0

Choose a tag to compare

@oschwald oschwald released this 09 May 20:26
1651355
  • IMPORTANT: Python 3.7 or greater is required. If you are using an older
    version, please use an earlier release.

4.6.0

Choose a tag to compare

@oschwald oschwald released this 21 Jun 16:18
75afb11
  • 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. Pull request by illes.
    GitHub #130.