package mmdb

  1. Overview
  2. Docs
Binding to the MaxMind DB library for GeoIP lookups

Install

Dune Dependency

Authors

Maintainers

Sources

mmdb-0.3.0.tbz
sha256=c35a78d505e17d8a35840e17a8047d9fba32dfa72663d39aecebf5d8196826e5
sha512=31b0ca40d62d4232846a9b3f04bf257c5bc71ada5e677155d7654636ff7e557d4fe53bdb38d8b3f41540f2caef73e7943ccc35ad501225b62c5e70b4398e1702

Description

mmdb binds to the official MaxMind DB C library and allows looking up IPs to their location.

It supports both the GeoLite2 dataset published by MaxMind under a permissive Creative Commons Attribution-ShareAlike 4.0 International License as well as the proprietary database offered by MaxMind.

Unlike other bindings this one uses the ctypes stub generation so it should be less prone to leaking memory.

Published: 24 May 2019

README

ocaml-mmdb

OCaml bindings to the MaxMind Geo IP database (also known as GeoIP2).

Development setup

  1. Set up a separate environment with all the dependencies:

    opam switch create . --deps-only ocaml-base-compiler.4.07.1
    
  2. Build the code:

    make
    
  3. Run the tests:

    make test
    

Dependencies (8)

  1. ppx_let >= "v0.10"
  2. ppx_deriving >= "4.2"
  3. ocaml >= "4.04.1"
  4. dune >= "1.6"
  5. ctypes-foreign >= "0.4"
  6. ctypes >= "0.14"
  7. conf-libmaxminddb
  8. base >= "v0.10"

Dev Dependencies (1)

  1. alcotest with-test & >= "0.8.5" & < "1.4.0"

Used by

None

Conflicts

None