Skip to content

Releases: maxmind/MaxMind-DB-Reader-python

1.5.3

04 May 17:41
Compare
Choose a tag to compare
  • Fix a segfault when decoding a database with a corrupt data section.
    Reported by Robert Scott. GitHub #58.

1.5.2

20 Dec 18:43
Compare
Choose a tag to compare
  • Minor performance improvements in the pure Python reader.

1.5.1

27 Sep 21:12
2a4eb44
Compare
Choose a tag to compare
  • Fix a possible segfault due to not correctly incrementing the reference
    on a returned object.

1.5.0

27 Sep 19:45
Compare
Choose a tag to compare
  • Python 3.3 and 3.4 are no longer supported.
  • The extension source directory was moved to prevent an ImportWarning
    when importing the module on Python 2 with -Wdefault set. Reported by
    David Szotten and Craig de Stigter. GitHub #31.
  • The get method now accepts ipaddress.IPv4Address and
    ipaddress.IPv6Address objects in addition to strings. This works with
    both the pure Python implementation as well as the extension. Based on a
    pull request #48 by Eric Pruitt. GitHub #50.
  • A new method, get_with_prefix_len, was added. This method returns a
    tuple containing the record and the prefix length.

1.4.1

22 Jun 16:16
Compare
Choose a tag to compare
  • Fix test failure on Python 3.7. Reported by Carl George. GitHub #35.

1.4.0

25 May 20:02
Compare
Choose a tag to compare
  • IMPORTANT: Previously, the pure Python reader would allow
    ipaddress.IPv4Address and ipaddress.IPv6Address objects when calling
    .get(). This would fail with the C extension. The fact that these objects
    worked at all was an implementation detail and has varied with different
    releases. This release makes the pure Python implementation consistent
    with the extension. A TypeError will now be thrown if you attempt to
    use these types with either the pure Python implementation or the
    extension. The IP address passed to .get() should be a string type.
  • Fix issue where incorrect size was used when unpacking some types with the
    pure Python reader. Reported by Lee Symes. GitHub #30.
  • You may now pass in the database via a file descriptor rather than a file
    name when creating a new maxminddb.Reader object using MODE_FD.
    This will read the database from the file descriptor into memory. Pull
    request by nkinkade. GitHub #33.

1.3.0

13 Mar 15:58
Compare
Choose a tag to compare
  • maxminddb.Reader and the C extension now support being used in a context
    manager. Pull request by Joakim Uddholm. GitHub #21 & #28.
  • Provide a more useful error message when MODE_MMAP_EXT is requested but
    the C extension is not available.

1.2.3

11 Jan 17:29
Compare
Choose a tag to compare
  • Improve compatibility with other Python 2 ipaddress backports. Although
    ipaddress is highly recommended, py2-ipaddress and
    backport_ipaddress should now work. Incompatibility reported by
    John Zadroga on geoip2 GitHub issue #41.

1.2.2

21 Nov 22:31
Compare
Choose a tag to compare
  • Fix to the classifiers in setup.py. No code changes.

1.2.1: Use ipaddress instead of ipaddr on Python 2. Packaging fixes.

10 Jun 16:14
Compare
Choose a tag to compare
  • This module now uses the ipaddress module for Python 2 rather than the
    ipaddr module. Users should notice no behavior change beyond the change
    in dependencies.
  • Removed requirements.txt from MANIFEST.in in order to stop warning
    during installation.
  • Added missing test data.