Skip to content

Releases: maxmind/GeoIP2-python

4.8.1

18 Nov 17:30
5df17ce
Compare
Choose a tag to compare
  • setuptools was incorrectly listed as a runtime dependency. This has
    been removed. Pull request by Mathieu Dupuy. GitHub #174.

4.8.0

05 Dec 22:19
607a0e6
Compare
Choose a tag to compare
  • 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

09 May 20:26
1651355
Compare
Choose a tag to compare
  • IMPORTANT: Python 3.7 or greater is required. If you are using an older
    version, please use an earlier release.

4.6.0

21 Jun 16:18
75afb11
Compare
Choose a tag to compare
  • 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.

4.5.0

18 Nov 18:42
ed175f6
Compare
Choose a tag to compare
  • 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.

4.4.0

24 Sep 18:44
7ab8c64
Compare
Choose a tag to compare
  • 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.

4.3.0

20 Sep 17:35
84e3534
Compare
Choose a tag to compare
  • 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.

4.2.0

12 May 16:12
4e475fb
Compare
Choose a tag to compare
  • You may now set a proxy to use when making web service requests by passing
    the proxy parameter to the AsyncClient or Client constructor.

4.1.0

25 Sep 15:56
Compare
Choose a tag to compare
  • Added the is_residential_proxy attribute to geoip2.model.AnonymousIP
    and geoip2.record.Traits.
  • HTTPError now provides the decoded response content in the
    decoded_content attribute. Requested by Oleg Serbokryl. GitHub #95.

4.0.2

28 Jul 17:39
Compare
Choose a tag to compare
  • Added py.typed file per PEP 561. Reported by Árni Már Jónsson.