File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434-----
3535
3636To use this module, you must first download or create a MaxMind DB file. We
37- provide `free GeoLite2 databases
37+ provide `free GeoLite databases
3838<https://dev.maxmind.com/geoip/geolocate-an-ip/databases?lang=en> `_. These
3939files must be decompressed with ``gunzip ``.
4040
@@ -58,7 +58,7 @@ file descriptor immediately after the ``Reader`` object is created.
5858The ``open_database `` function returns a ``Reader `` object. To look up an IP
5959address, use the ``get `` method on this object. The method will return the
6060corresponding values for the IP address from the database (e.g., a dictionary
61- for GeoIP2/GeoLite2 databases). If the database does not contain a record for
61+ for GeoIP/GeoLite databases). If the database does not contain a record for
6262that IP address, the method will return ``None ``.
6363
6464If you wish to also retrieve the prefix length for the record, use the
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def open_database(
4545 """Open a MaxMind DB database.
4646
4747 Arguments:
48- database: A path to a valid MaxMind DB file such as a GeoIP2 database
48+ database: A path to a valid MaxMind DB file such as a GeoIP database
4949 file, or a file descriptor in the case of MODE_FD.
5050 mode: mode to open the database with. Valid mode are:
5151 * MODE_MMAP_EXT - use the C extension with memory map.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class Reader:
2525 """Reader for the MaxMind DB file format.
2626
2727 Arguments:
28- database: A path to a valid MaxMind DB file such as a GeoIP2 database
28+ database: A path to a valid MaxMind DB file such as a GeoIP database
2929 file, or a file descriptor in the case of MODE_FD.
3030 mode: mode to open the database with. The only supported modes are
3131 MODE_AUTO and MODE_MMAP_EXT.
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def __init__(
5454 """Reader for the MaxMind DB file format.
5555
5656 Arguments:
57- database: A path to a valid MaxMind DB file such as a GeoIP2 database
57+ database: A path to a valid MaxMind DB file such as a GeoIP database
5858 file, or a file descriptor in the case of MODE_FD.
5959 mode: mode to open the database with. Valid mode are:
6060 * MODE_MMAP - read from memory map.
You can’t perform that action at this time.
0 commit comments