package mmdb

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

Install

Dune Dependency

Authors

Maintainers

Sources

mmdb-0.1.0.tbz
md5=e879d2724eb996b372bc567014f8b18b

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: 04 Mar 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 build & >= "v0.10"
  2. ppx_deriving build & >= "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 (2)

  1. base with-test & < "v0.14"
  2. alcotest with-test & >= "0.8.5"

Used by

None

Conflicts

None