Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daurnimator/mmdblua
Maxmind database parser for lua
https://github.com/daurnimator/mmdblua
geoip lua maxmind-db maxmind-geoip
Last synced: 3 months ago
JSON representation
Maxmind database parser for lua
- Host: GitHub
- URL: https://github.com/daurnimator/mmdblua
- Owner: daurnimator
- License: mit
- Created: 2015-01-20T22:48:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T16:00:42.000Z (about 4 years ago)
- Last Synced: 2024-10-05T14:48:55.977Z (3 months ago)
- Topics: geoip, lua, maxmind-db, maxmind-geoip
- Language: Lua
- Size: 47.9 KB
- Stars: 29
- Watchers: 5
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mmdblua
A Lua library for reading [MaxMind's Geolocation database format](https://maxmind.github.io/MaxMind-DB/).
This project had it's initial development sprint done in a hotel room during the [Lua Workshop 2013](https://www.lua.org/wshop13.html).
# Installation
mmdblua is available from [luarocks](https://luarocks.org/).
$ luarocks install mmdblua
## Dependencies
If using lua < 5.3 you will need
- [compat-5.3](https://github.com/keplerproject/lua-compat-5.3) >= 0.3
# 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
```