This library offers a simple interface to query MMDB Server using Python. It provides both a command-line interface and a library.
pip install pymmdbserver
You can use the mmdbserver
command to query the MMDB Server from the command line.:
usage: mmdbserver [-h] [--url URL] [ip]
Query a thing.
positional arguments:
ip IP address to query. If not set, returns the geolookup information from the client IP.
options:
-h, --help show this help message and exit
--url URL URL of the instance.
See API Reference