MMDB
Create a MaxMind Databases for your own needs.
pip install mmdb[cli]
Features
- Query any maxmind database:
mmdb get <IP> -d <DATABASE> - Download and build DBIP database ASN Lite, Country Lite, and City Lite:
mmdb dbip-build - Create an IP database from a CSV file:
mmdb build <CSV> - Logstash GeoIP Filter Plugin compatibility:
mmdb build <CSV> --lsc - Additional country data such as is_eu, is_nato, or is_g7:
mmdb build <CSV> -f country
Examples
Logstash Compatibility
Logstash ships with the GeoIP Filter Plugin which enriches a document with IP GeoData. However, the plugin supports specific MaxMind database types only. As a result, any other database type disables the plugin.
Regarding this, the plag --lsc enables logstash support. Long story short:
You get a MaxMind ASN Database, but the IP info as an embedded json string within the
asn_organization_name field. The logstash pipeline must load that json data and adds it to
the document, exemplified below
filter {
geoip {
source => "ip"
database => "/path/to/my/database.mmdb"
ecs_compatibility => disabled
target => "wrapped_ip_data"
}
json {
source => "[wrapped_ip_data][organization_name]"
target => "myip"
}
mutate {
remove_field => ["wrapped_ip_data"]
}
}
Metadata
Release files for mmdb 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mmdb-0.1.0.tar.gz | 21.1 kB | Without provenance | Details for mmdb-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mmdb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mmdb-0.1.0-py3-none-any.whl |
Total release size: 42.3 kB
Release files / mmdb-0.1.0.tar.gz
| Download URL | mmdb-0.1.0.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66765b7d120e266fce9ed6b516ee21f9c4f85aa8f20714dae73999611c363498
|
|
BLAKE2b-256 checksum How to use checksums |
99d4e974371bfbcc7bbbcec52b0e8b0f741c64bd3f0d262ad018b5449e9d8073
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.2 Linux/5.10.0-19-amd64
|
Release files / mmdb-0.1.0-py3-none-any.whl
| Download URL | mmdb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dd1cfd408da17d63a20d12c2d7997ee8b7aa619ced2cd41e070cf94934af095
|
|
BLAKE2b-256 checksum How to use checksums |
382aed13c55c62efb64c09871e31d675f37d9942454d50db89dab8ef5b68975c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.2 Linux/5.10.0-19-amd64
|
Security for mmdb 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.