Python MaxMind DB reader extension
Metadata
maxminddb.extension
.setuptools
is no longer listed as a runtime dependency. Pull request
by Lewis Collard. GitHub #155.libmaxminddb
version was updated to 1.9.0. This fixes
an issue when reading databases with a search tree exceeding 2 GB.
Reported by Sami Salonen. GitHub #146.Reader
class now implements the __iter__
method. This will
return an iterator that iterates over all records in the database,
excluding repeated aliased of the IPv4 network. Requested by
Jean-Baptiste Braun and others. GitHub #23.fork
. This allows it
to run successfully on macOS. Pull request by Theodore Ni. GitHub #116.libmaxminddb
will now be used by default when
building the extension. If you wish to continue using the system shared
library, you may set the MAXMINDDB_USE_SYSTEM_LIBMAXMINDDB
environment
variable to a true value when building the extension.setup.py
to setup.cfg
. GitHub
#113.distutils
is no longer used for building the C extension.Py_INCREF
was added to module initialization for the C
extension. Pull request by R. Christian McDonald. GitHub #106.maxminddb.open_database()
has been simplified
to be just the Reader
class as opposed to a union of that with
the extension class. This is done by casting the extension to
Reader
. The extension class has the same public API as the
pure Python implementation. This simplifies type checking for users of
this library. The Reader
class is exposed as maxminddb.Reader
.
Pull request by wouter bolsterlee. GitHub #88.maxminddb.__all__
is now set to define a public API. Pull request
by wouter bolsterlee. GitHub #88.repr
output of maxminddb.reader.Metadata
in 2.1.0.os.PathLike
interface.OSError
subclass will now be thrown.Metadata
class object is now available from the C extension
module as maxminddb.extension.Metadata
rather than
maxminddb.extension.extension
.maxminddb.extension
.mmap
support for the module to work. mmap
is now optional
again. Reported by john-heasman-cg. GitHub #76.