daurnimator / mmdblua

Maxmind database parser for lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mmdblua

A Lua library for reading MaxMind's Geolocation database format.

This project had it's initial development sprint done in a hotel room during the Lua Workshop 2013.

Installation

mmdblua is available from luarocks.

$ luarocks install mmdblua

Dependencies

If using lua < 5.3 you will need

Development

Getting started

  • Clone the repo:

    $ git clone --recursive https://github.com/daurnimator/mmdblua.git
    $ cd mmdblua
    

    Note that mmdblua has a git submodule for test data.

  • Lint the code (check for common programming errors)

    $ luacheck .
    
  • Run tests

    $ busted
    
  • Install your local copy:

    $ luarocks make mmdblua-scm-0.rockspec
    

About

Maxmind database parser for lua

License:MIT License


Languages

Language:Lua 100.0%