MaxMind DB Reader Python Versions Save

Python MaxMind DB reader extension

v2.6.1

1 month ago
  • This release includes no source code changes. The only changes are to the release workflow.
  • Binary wheels are now built on Linux for aarch64. Pull request by Kevin Park. GitHub #160.
  • Binary wheels are now built on macOS for Apple silicon. Requested by Kevin Park. GitHub #152.

v2.6.0

2 months ago
  • Added type annotations for instance variables on Metadata
  • Updated type stubs for maxminddb.extension.
  • setuptools is no longer listed as a runtime dependency. Pull request by Lewis Collard. GitHub #155.

v2.5.2

4 months ago
  • The vendored 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.

v2.5.1

6 months ago
  • This is a re-release of 2.5.0 to address missing files from the sdist. Reported by Lumír 'Frenzy' Balhar. GitHub #132.

v2.5.0

6 months ago
  • IMPORTANT: Python 3.8 or greater is required. If you are using an older version, please use an earlier release.
  • Windows is now supported by the C extension.
  • The 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.
  • The multiprocessing test now explicitly uses fork. This allows it to run successfully on macOS. Pull request by Theodore Ni. GitHub #116.
  • A vendored copy of 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.
  • The C extension now builds on Python 3.13.
  • The C extension will now be built for PyPy.

v2.4.0

10 months ago
  • Package metadata was migrated from setup.py to setup.cfg. GitHub #113.
  • The C extension now decrements the reference count on an object containing the database filename after its use in an error message rather than before. Pull request by Lumír 'Frenzy' Balhar. GitHub #114.

v2.3.0

1 year ago
  • IMPORTANT: Python 3.7 or greater is required. If you are using an older version, please use an earlier release.
  • distutils is no longer used for building the C extension.
  • Missing Py_INCREF was added to module initialization for the C extension. Pull request by R. Christian McDonald. GitHub #106.

v2.2.0

2 years ago
  • The return type for 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.
  • Fix minor regression in repr output of maxminddb.reader.Metadata in 2.1.0.

v2.1.0

2 years ago
  • The C extension now correctly supports objects that implement the os.PathLike interface.
  • When opening a database fails due to an access issue, the correct OSError subclass will now be thrown.
  • The Metadata class object is now available from the C extension module as maxminddb.extension.Metadata rather than maxminddb.extension.extension.
  • Type stubs have been added for maxminddb.extension.

v2.0.3

3 years ago
  • The 2.0.0 release unintentionally required Python to be compiled with mmap support for the module to work. mmap is now optional again. Reported by john-heasman-cg. GitHub #76.