package mmdb

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

Install

Dune Dependency

Authors

Maintainers

Sources

mmdb-0.2.1.tbz
sha256=8f5649d5fcd3b8b2414a0fed5ddfbdf87b3a854a436e134bf1f8adc93b434bee
md5=63e10e671a8ec354bb3cdf251593d8d0

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: 05 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 >= "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 (2)

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

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.