From 4671ef2514b09c7617c29735e3f0ce41bab05f16 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Fri, 29 May 2026 20:39:05 +0000 Subject: [PATCH] Use 'GeoIP'/'GeoLite' branding in documentation and prose MaxMind no longer ships the legacy products, so refer to the products as 'GeoIP' and 'GeoLite' rather than 'GeoIP2'/'GeoLite2' in prose. Technical identifiers (packages, class names, filenames, edition IDs, hostnames, URLs) and test fixtures are unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- README.rst | 4 ++-- maxminddb/__init__.py | 2 +- maxminddb/extension.pyi | 2 +- maxminddb/reader.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 97a81920..30ce2989 100644 --- a/README.rst +++ b/README.rst @@ -34,7 +34,7 @@ Usage ----- To use this module, you must first download or create a MaxMind DB file. We -provide `free GeoLite2 databases +provide `free GeoLite databases `_. These files must be decompressed with ``gunzip``. @@ -58,7 +58,7 @@ file descriptor immediately after the ``Reader`` object is created. The ``open_database`` function returns a ``Reader`` object. To look up an IP address, use the ``get`` method on this object. The method will return the corresponding values for the IP address from the database (e.g., a dictionary -for GeoIP2/GeoLite2 databases). If the database does not contain a record for +for GeoIP/GeoLite databases). If the database does not contain a record for that IP address, the method will return ``None``. If you wish to also retrieve the prefix length for the record, use the diff --git a/maxminddb/__init__.py b/maxminddb/__init__.py index 76549670..76f6e602 100644 --- a/maxminddb/__init__.py +++ b/maxminddb/__init__.py @@ -45,7 +45,7 @@ def open_database( """Open a MaxMind DB database. Arguments: - database: A path to a valid MaxMind DB file such as a GeoIP2 database + database: A path to a valid MaxMind DB file such as a GeoIP database file, or a file descriptor in the case of MODE_FD. mode: mode to open the database with. Valid mode are: * MODE_MMAP_EXT - use the C extension with memory map. diff --git a/maxminddb/extension.pyi b/maxminddb/extension.pyi index 1758e81b..e5084729 100644 --- a/maxminddb/extension.pyi +++ b/maxminddb/extension.pyi @@ -25,7 +25,7 @@ class Reader: """Reader for the MaxMind DB file format. Arguments: - database: A path to a valid MaxMind DB file such as a GeoIP2 database + database: A path to a valid MaxMind DB file such as a GeoIP database file, or a file descriptor in the case of MODE_FD. mode: mode to open the database with. The only supported modes are MODE_AUTO and MODE_MMAP_EXT. diff --git a/maxminddb/reader.py b/maxminddb/reader.py index 307378f1..e65d9952 100644 --- a/maxminddb/reader.py +++ b/maxminddb/reader.py @@ -54,7 +54,7 @@ def __init__( """Reader for the MaxMind DB file format. Arguments: - database: A path to a valid MaxMind DB file such as a GeoIP2 database + database: A path to a valid MaxMind DB file such as a GeoIP database file, or a file descriptor in the case of MODE_FD. mode: mode to open the database with. Valid mode are: * MODE_MMAP - read from memory map.