All Projects → cloudflare → py-mmdb-encoder

cloudflare / py-mmdb-encoder

Licence: BSD-3-Clause license
Create mmdb files to encode prefix lists.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to py-mmdb-encoder

Ip2geo
Импортер ipgeo-данных в файлы, понятные для nginx geoip module, с поддержкой кодов регионов РФ.
Stars: ✭ 59 (+110.71%)
Mutual labels:  geoip
Shiny geoip
IP to location API service
Stars: ✭ 172 (+514.29%)
Mutual labels:  geoip
Recon-X
Advanced Reconnaissance tool to enumerate attacking surface of the target.
Stars: ✭ 27 (-3.57%)
Mutual labels:  geoip
Country Ip Blocks
CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly.
Stars: ✭ 100 (+257.14%)
Mutual labels:  geoip
Qqwry Java
A java library to read QQWry IP database. (纯真IP地址数据库)
Stars: ✭ 129 (+360.71%)
Mutual labels:  geoip
Django Easy Timezones
Easy timezones for Django based on GeoIP
Stars: ✭ 195 (+596.43%)
Mutual labels:  geoip
Th3inspector
Th3Inspector 🕵️ Best Tool For Information Gathering 🔎
Stars: ✭ 1,041 (+3617.86%)
Mutual labels:  geoip
ip-finder-cli
The official command line client for IPFinder
Stars: ✭ 11 (-60.71%)
Mutual labels:  geoip
Docker Elasticsearch Alpine
Alpine Linux based Elasticsearch Docker Image
Stars: ✭ 154 (+450%)
Mutual labels:  geoip
GeoLite2-City
GeoLite2-City.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 170 (+507.14%)
Mutual labels:  geoip
Geo ip
Retreive the geolocation of an IP address based on the ipinfodb.com webservice
Stars: ✭ 103 (+267.86%)
Mutual labels:  geoip
Fcipaddressgeocoder
iOS Geocoder for geocode device IP Address location using GeoIP service(s) and a block-based syntax. 💻🌍
Stars: ✭ 114 (+307.14%)
Mutual labels:  geoip
Iploc
Fastest IP To Country Library
Stars: ✭ 224 (+700%)
Mutual labels:  geoip
Php
Official PHP library for IPinfo (IP geolocation and other types of IP data)
Stars: ✭ 83 (+196.43%)
Mutual labels:  geoip
pf-azure-sentinel
Parse pfSense/OPNSense logs using Logstash, GeoIP tag entities, add additional context to logs, then send to Azure Sentinel for analysis.
Stars: ✭ 24 (-14.29%)
Mutual labels:  geoip
Geoip2 Golang
Unofficial MaxMind GeoIP2 Reader for Go
Stars: ✭ 1,074 (+3735.71%)
Mutual labels:  geoip
Docker Elastic Stack
ELK Stack Dockerfile
Stars: ✭ 175 (+525%)
Mutual labels:  geoip
GeoLite.mmdb
MaxMind's GeoIP2 GeoLite2 Country, City, and ASN databases
Stars: ✭ 690 (+2364.29%)
Mutual labels:  geoip
GeoIP2-ruby
Ruby API for GeoIP2 webservice client and database reader
Stars: ✭ 41 (+46.43%)
Mutual labels:  geoip
geoip2
GeoIP2 Reader for Go
Stars: ✭ 54 (+92.86%)
Mutual labels:  geoip

Python MMDB encoder

At Cloudflare, as part of the network automation, we build our IP prefix tables.

An example of how to use it:

import mmdbencoder
enc = mmdbencoder.Encoder(
    6, # IP version
    32, # Size of the pointers
    'My-Custom-Table', # Name of the table
    ['en'], # Languages
    {'en': 'Lorem Ipsum'}, # Description
    compat=True) # Map IPv4 in IPv6 (::abcd instead of ::ffff:abcd) to be read by official libraries
data = enc.insert_data({'info': 'Hello World'})
enc.insert_network(u'10.0.0.0/24', data)
enc.write_file('hello.mmdb')

Installation

From source:

$ ./setup.py install
$

From pypi:

$ pip install py-mmdb-encoder
$
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].