Skip to content

Releases: maxmind/GeoIP2-python

2.5.0

08 May 19:11
Compare
Choose a tag to compare
  • 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

08 Dec 20:18
Compare
Choose a tag to compare
  • 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

21 Nov 22:37
Compare
Choose a tag to compare
  • Updated documentation to clarify what the accuracy radius refers to.
  • Fixed classifiers in setup.py.

2.4.0

10 Jun 16:13
Compare
Choose a tag to compare
  • 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: Enterprise Support. Context Manager Support.

15 Apr 20:30
Compare
Choose a tag to compare
  • 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 New Demographics Fields and Anonymous Deprecations

29 Jun 20:22
Compare
Choose a tag to compare
  • 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 to determine whether an IP address is used by an anonymizing service.

2.1.0: New file and memory mode for database reader

09 Dec 18:59
Compare
Choose a tag to compare
  • The reader now supports pure Python file and memory modes. If you are not
    using the C extension and your Python does not provide the mmap module,
    the file mode will be used by default. You can explicitly set the mode using
    the mode keyword argument with the MODE_AUTO, MODE_MMAP,
    MODE_MMAP_EXT, MODE_FILE, and MODE_MEMORY constants exported by
    geoip2.database.

2.0.2

28 Oct 22:16
Compare
Choose a tag to compare
  • Added support for the GeoIP2 Anonymous IP database. The
    geoip2.database.Reader class now has an anonymous_ip() method which
    returns a geoip2.models.AnonymousIP object.
  • Added __repr__ and __eq__ methods to the model and record classes
    to aid in debugging and using the library from a REPL.

2.0.1

17 Oct 21:01
Compare
Choose a tag to compare
  • The constructor for geoip2.webservice.Client now takes an optional timeout parameter. (PR from arturro. GitHub #15)

2.0.0

22 Sep 16:31
Compare
Choose a tag to compare
  • First production release.