Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["MaxMind DB Python Module"], "terms": {"thi": 0, "i": 0, "read": 0, "file": 0, "The": 0, "includ": 0, "both": 0, "pure": 0, "an": 0, "option": 0, "c": 0, "extens": 0, "binari": 0, "format": 0, "store": 0, "data": 0, "index": 0, "ip": 0, "address": 0, "subnet": 0, "ipv4": 0, "ipv6": 0, "If": 0, "you": 0, "want": 0, "us": 0, "must": 0, "first": 0, "libmaxminddb": 0, "librari": 0, "befor": 0, "avail": 0, "fall": 0, "back": 0, "implement": 0, "note": 0, "when": 0, "from": 0, "packag": 0, "mai": 0, "additon": 0, "contain": 0, "build": 0, "dev": 0, "debian": 0, "To": 0, "type": 0, "pip": 0, "ar": 0, "abl": 0, "also": 0, "easy_instal": 0, "sourc": 0, "directori": 0, "download": 0, "creat": 0, "we": 0, "provid": 0, "free": 0, "geolite2": 0, "databas": 0, "These": 0, "decompress": 0, "gunzip": 0, "after": 0, "have": 0, "obtain": 0, "import": 0, "call": 0, "open_databas": 0, "path": 0, "descriptor": 0, "case": 0, "mode_fd": 0, "argument": 0, "pass": 0, "mode": 0, "second": 0, "export": 0, "valid": 0, "mode_mmap_ext": 0, "memori": 0, "map": 0, "mode_mmap": 0, "mode_fil": 0, "standard": 0, "mode_memori": 0, "load": 0, "mode_auto": 0, "try": 0, "order": 0, "default": 0, "caller": 0, "": 0, "respons": 0, "sure": 0, "get": 0, "close": 0, "properli": 0, "immedi": 0, "object": 0, "function": 0, "return": 0, "look": 0, "up": 0, "method": 0, "correspond": 0, "valu": 0, "e": 0, "g": 0, "dictionari": 0, "geoip2": 0, "doe": 0, "record": 0, "none": 0, "wish": 0, "retriev": 0, "prefix": 0, "length": 0, "get_with_prefix_len": 0, "tupl": 0, "follow": 0, "network": 0, "associ": 0, "citi": 0, "mmdb": 0, "152": 0, "216": 0, "7": 0, "110": 0, "countri": 0, "24": 0, "invaliddatabaseerror": 0, "corrupt": 0, "otherwis": 0, "invalid": 0, "A": 0, "valueerror": 0, "thrown": 0, "code": 0, "3": 0, "6": 0, "older": 0, "cpython": 0, "semant": 0, "pleas": 0, "report": 0, "all": 0, "issu": 0, "github": 0, "tracker": 0, "servic": 0, "specif": 0, "api": 0, "contact": 0, "assist": 0, "base": 0, "runtimeerror": 0, "unexpect": 0, "found": 0, "class": 0, "union": 0, "anystr": 0, "int": 0, "pathlik": 0, "io": 0, "0": 0, "instanc": 0, "can": 0, "resourc": 0, "system": 0, "ip_address": 0, "str": 0, "ipv6address": 0, "ipv4address": 0, "bool": 0, "float": 0, "recordlist": 0, "recorddict": 0, "string": 0, "notat": 0, "metadata": 0, "open": 0, "param": 0, "via": 0, "impli": 0, "tri": 0, "custom": 0, "relat": 0, "kwarg": 0, "binary_format_major_vers": 0, "major": 0, "number": 0, "binary_format_minor_vers": 0, "minor": 0, "build_epoch": 0, "unix": 0, "epoch": 0, "time": 0, "database_typ": 0, "identifi": 0, "local": 0, "text": 0, "dict": 0, "ip_vers": 0, "4": 0, "mean": 0, "onli": 0, "lookup": 0, "languag": 0, "list": 0, "databs": 0, "node_count": 0, "node": 0, "record_s": 0, "bit": 0, "size": 0, "search": 0, "tree": 0, "properti": 0, "node_byte_s": 0, "byte": 0, "search_tree_s": 0, "page": 0, "copyright": 0, "2013": 0, "2021": 0, "inc": 0, "licens": 0, "apach": 0, "2": 0}, "objects": {"": [[0, 0, 0, "-", "maxminddb"]], "maxminddb": [[0, 1, 1, "", "InvalidDatabaseError"], [0, 2, 1, "", "Reader"], [0, 0, 0, "-", "errors"], [0, 4, 1, "", "open_database"], [0, 0, 0, "-", "reader"]], "maxminddb.Reader": [[0, 3, 1, "", "close"], [0, 3, 1, "", "get"], [0, 3, 1, "", "get_with_prefix_len"], [0, 3, 1, "", "metadata"]], "maxminddb.errors": [[0, 1, 1, "", "InvalidDatabaseError"]], "maxminddb.reader": [[0, 2, 1, "", "Metadata"], [0, 2, 1, "", "Reader"]], "maxminddb.reader.Metadata": [[0, 5, 1, "", "binary_format_major_version"], [0, 5, 1, "", "binary_format_minor_version"], [0, 5, 1, "", "build_epoch"], [0, 5, 1, "", "database_type"], [0, 5, 1, "", "description"], [0, 5, 1, "", "ip_version"], [0, 5, 1, "", "languages"], [0, 6, 1, "", "node_byte_size"], [0, 5, 1, "", "node_count"], [0, 5, 1, "", "record_size"], [0, 6, 1, "", "search_tree_size"]], "maxminddb.reader.Reader": [[0, 3, 1, "", "close"], [0, 3, 1, "", "get"], [0, 3, 1, "", "get_with_prefix_len"], [0, 3, 1, "", "metadata"]]}, "objtypes": {"0": "py:module", "1": "py:exception", "2": "py:class", "3": "py:method", "4": "py:function", "5": "py:attribute", "6": "py:property"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "exception", "Python exception"], "2": ["py", "class", "Python class"], "3": ["py", "method", "Python method"], "4": ["py", "function", "Python function"], "5": ["py", "attribute", "Python attribute"], "6": ["py", "property", "Python property"]}, "titleterms": {"maxmind": 0, "db": 0, "python": 0, "modul": 0, "descript": 0, "instal": 0, "usag": 0, "exampl": 0, "except": 0, "requir": 0, "version": 0, "support": 0, "maxminddb": 0, "error": 0, "reader": 0, "indic": 0, "tabl": 0}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1, "sphinx": 57}, "alltitles": {"MaxMind DB Python Module": [[0, "maxmind-db-python-module"]], "Description": [[0, "description"]], "Installation": [[0, "installation"]], "Usage": [[0, "usage"]], "Example": [[0, "example"]], "Exceptions": [[0, "exceptions"]], "Requirements": [[0, "requirements"]], "Versioning": [[0, "versioning"]], "Support": [[0, "support"]], "Modules": [[0, "module-maxminddb"]], "maxminddb.errors": [[0, "maxminddb-errors"]], "maxminddb.reader": [[0, "maxminddb-reader"]], "Indices and tables": [[0, "indices-and-tables"]]}, "indexentries": {"invaliddatabaseerror": [[0, "maxminddb.InvalidDatabaseError"], [0, "maxminddb.errors.InvalidDatabaseError"]], "metadata (class in maxminddb.reader)": [[0, "maxminddb.reader.Metadata"]], "reader (class in maxminddb)": [[0, "maxminddb.Reader"]], "reader (class in maxminddb.reader)": [[0, "maxminddb.reader.Reader"]], "binary_format_major_version (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.binary_format_major_version"]], "binary_format_minor_version (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.binary_format_minor_version"]], "build_epoch (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.build_epoch"]], "close() (maxminddb.reader method)": [[0, "maxminddb.Reader.close"]], "close() (maxminddb.reader.reader method)": [[0, "maxminddb.reader.Reader.close"]], "database_type (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.database_type"]], "description (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.description"]], "get() (maxminddb.reader method)": [[0, "maxminddb.Reader.get"]], "get() (maxminddb.reader.reader method)": [[0, "maxminddb.reader.Reader.get"]], "get_with_prefix_len() (maxminddb.reader method)": [[0, "maxminddb.Reader.get_with_prefix_len"]], "get_with_prefix_len() (maxminddb.reader.reader method)": [[0, "maxminddb.reader.Reader.get_with_prefix_len"]], "ip_version (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.ip_version"]], "languages (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.languages"]], "maxminddb": [[0, "module-maxminddb"]], "maxminddb.errors": [[0, "module-maxminddb.errors"]], "maxminddb.reader": [[0, "module-maxminddb.reader"]], "metadata() (maxminddb.reader method)": [[0, "maxminddb.Reader.metadata"]], "metadata() (maxminddb.reader.reader method)": [[0, "maxminddb.reader.Reader.metadata"]], "module": [[0, "module-maxminddb"], [0, "module-maxminddb.errors"], [0, "module-maxminddb.reader"]], "node_byte_size (maxminddb.reader.metadata property)": [[0, "maxminddb.reader.Metadata.node_byte_size"]], "node_count (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.node_count"]], "open_database() (in module maxminddb)": [[0, "maxminddb.open_database"]], "record_size (maxminddb.reader.metadata attribute)": [[0, "maxminddb.reader.Metadata.record_size"]], "search_tree_size (maxminddb.reader.metadata property)": [[0, "maxminddb.reader.Metadata.search_tree_size"]]}})