--- /tmp/python-maxminddb-2.0.3-18qysdaby/debian/python-maxminddb-doc_2.0.3-1_all.deb +++ python-maxminddb-doc_2.0.3-1_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2020-12-11 04:29:45.000000 debian-binary │ -rw-r--r-- 0 0 0 1308 2020-12-11 04:29:45.000000 control.tar.xz │ --rw-r--r-- 0 0 0 26088 2020-12-11 04:29:45.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 26084 2020-12-11 04:29:45.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── file list │ │ │ @@ -18,15 +18,15 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 286 2020-08-13 15:46:39.000000 ./usr/share/doc/python-maxminddb-doc/html/_static/file.png │ │ │ -rw-r--r-- 0 root (0) root (0) 90 2020-08-13 15:46:39.000000 ./usr/share/doc/python-maxminddb-doc/html/_static/minus.png │ │ │ -rw-r--r-- 0 root (0) root (0) 120 2020-08-13 15:46:39.000000 ./usr/share/doc/python-maxminddb-doc/html/_static/navigation.png │ │ │ -rw-r--r-- 0 root (0) root (0) 90 2020-08-13 15:46:39.000000 ./usr/share/doc/python-maxminddb-doc/html/_static/plus.png │ │ │ -rw-r--r-- 0 root (0) root (0) 4780 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/_static/pygments.css │ │ │ -rw-r--r-- 0 root (0) root (0) 6236 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/_static/sphinxdoc.css │ │ │ -rw-r--r-- 0 root (0) root (0) 8831 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/genindex.html │ │ │ --rw-r--r-- 0 root (0) root (0) 30895 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/index.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 30932 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 498 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/objects.inv │ │ │ -rw-r--r-- 0 root (0) root (0) 3993 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/py-modindex.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3296 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/search.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3586 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/searchindex.js │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-12-11 04:29:45.000000 ./usr/share/doc-base/ │ │ │ -rw-r--r-- 0 root (0) root (0) 335 2020-12-08 00:19:58.000000 ./usr/share/doc-base/python-maxminddb │ │ │ lrwxrwxrwx 0 root (0) root (0) 0 2020-12-11 04:29:45.000000 ./usr/share/doc/python-maxminddb-doc/html/_static/doctools.js -> ../../../../javascript/sphinxdoc/1.0/doctools.js │ │ ├── ./usr/share/doc/python-maxminddb-doc/html/index.html │ │ │ @@ -134,15 +134,15 @@ │ │ │
│ │ │ maxminddb.Reader(database)
│ │ │

This exists for backwards compatibility. Use open_database instead

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ -maxminddb.open_database(database: Union[AnyStr, int, os.PathLike, IO], mode: int = 0) → Union[maxminddb.reader.Reader, maxminddb.extension.Reader]
│ │ │ +maxminddb.open_database(database: Union[AnyStr, int, os.PathLike, IO], mode: int = 0) → Union[maxminddb.reader.Reader, maxminddb.extension.Reader] │ │ │

Open a MaxMind DB database

│ │ │
│ │ │
Arguments:
│ │ │
database – A path to a valid MaxMind DB file such as a GeoIP2 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.

  • │ │ │ @@ -168,177 +168,177 @@ │ │ │ │ │ │
    │ │ │

    maxminddb.errors

    │ │ │

    This module contains custom errors for the MaxMind DB reader

    │ │ │
    │ │ │
    │ │ │ exception maxminddb.errors.InvalidDatabaseError
    │ │ │ -

    Bases: RuntimeError

    │ │ │ +

    Bases: RuntimeError

    │ │ │

    This error is thrown when unexpected data is found in the database.

    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │

    maxminddb.reader

    │ │ │

    This module contains the pure Python database reader and related classes.

    │ │ │
    │ │ │
    │ │ │ class maxminddb.reader.Metadata(**kwargs)
    │ │ │ -

    Bases: object

    │ │ │ +

    Bases: object

    │ │ │

    Metadata for the MaxMind DB reader

    │ │ │
    │ │ │
    │ │ │ binary_format_major_version
    │ │ │

    The major version number of the binary format used when creating the │ │ │ database.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    int

    │ │ │ +

    int

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ binary_format_minor_version
    │ │ │

    The minor version number of the binary format used when creating the │ │ │ database.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    int

    │ │ │ +

    int

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ build_epoch
    │ │ │

    The Unix epoch for the build time of the database.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    int

    │ │ │ +

    int

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ database_type
    │ │ │

    A string identifying the database type, e.g., “GeoIP2-City”.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    str

    │ │ │ +

    str

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ description
    │ │ │

    A map from locales to text descriptions of the database.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    dict(str, str)

    │ │ │ +

    dict(str, str)

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ ip_version
    │ │ │

    The IP version of the data in a database. A value of “4” means the │ │ │ database only supports IPv4. A database with a value of “6” may support │ │ │ both IPv4 and IPv6 lookups.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    int

    │ │ │ +

    int

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ languages
    │ │ │

    A list of locale codes supported by the databse.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    list(str)

    │ │ │ +

    list(str)

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ node_count
    │ │ │

    The number of nodes in the database.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    int

    │ │ │ +

    int

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ record_size
    │ │ │

    The bit size of a record in the search tree.

    │ │ │
    │ │ │
    Type
    │ │ │ -

    int

    │ │ │ +

    int

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ property node_byte_size
    │ │ │

    The size of a node in bytes

    │ │ │
    │ │ │
    Type
    │ │ │ -

    int

    │ │ │ +

    int

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ property search_tree_size
    │ │ │

    The size of the search tree

    │ │ │
    │ │ │
    Type
    │ │ │ -

    int

    │ │ │ +

    int

    │ │ │
    │ │ │
    │ │ │
    │ │ │ │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ -class maxminddb.reader.Reader(database: Union[AnyStr, int, os.PathLike, IO], mode: int = 0)
    │ │ │ -

    Bases: object

    │ │ │ +class maxminddb.reader.Reader(database: Union[AnyStr, int, os.PathLike, IO], mode: int = 0) │ │ │ +

    Bases: object

    │ │ │

    Instances of this class provide a reader for the MaxMind DB format. IP │ │ │ addresses can be looked up using the get method.

    │ │ │
    │ │ │
    │ │ │ -close()None
    │ │ │ +close()None │ │ │

    Closes the MaxMind DB file and returns the resources to the system

    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ -get(ip_address: Union[str, ipaddress.IPv6Address, ipaddress.IPv4Address]) → Optional[Union[AnyStr, bool, float, int, RecordList, RecordDict]]
    │ │ │ +get(ip_address: Union[str, ipaddress.IPv6Address, ipaddress.IPv4Address]) → Optional[Union[AnyStr, bool, float, int, RecordList, RecordDict]] │ │ │

    Return the record for the ip_address in the MaxMind DB

    │ │ │

    Arguments: │ │ │ ip_address – an IP address in the standard string notation

    │ │ │
    │ │ │ │ │ │
    │ │ │
    │ │ │ -get_with_prefix_len(ip_address: Union[str, ipaddress.IPv6Address, ipaddress.IPv4Address]) → Tuple[Optional[Union[AnyStr, bool, float, int, RecordList, RecordDict]], int]
    │ │ │ +get_with_prefix_len(ip_address: Union[str, ipaddress.IPv6Address, ipaddress.IPv4Address]) → Tuple[Optional[Union[AnyStr, bool, float, int, RecordList, RecordDict]], int] │ │ │

    Return a tuple with the record and the associated prefix length

    │ │ │

    Arguments: │ │ │ ip_address – an IP address in the standard string notation

    │ │ │
    │ │ │ │ │ │
    │ │ │