Elvyria / ip-location-db-lookup

Offline utility for looking up IP address location info with the help of ip-location-db.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ip-location-db-lookup

Toolchain: Stable License: MIT

Offline command line utility for IP address look-up through CSV databases from ip-location-db project.

This is my personal text file parsing optimization sandbox, don't use for critical things.

File Format

Only -num files are supported.

ip_range_start,ip_range_end,(VALUE)

Usage

Usage: ip-location-db-lookup [-w <workers>] [DATABASE] [IPv4]

Offline IP address lookup tool.

Options:
  -w, --workers     amount of workers (default: 1)
  --help            display usage information

Building

To build this little thing, you'll need some Rust.

git clone --depth 1 https://github.com/Elvyria/ip-location-db-lookup
cd ip-location-db-lookup
cargo build --locked --release

or

RUSTFLAGS="-C target-cpu=native" cargo build --locked --release

Tested with:

About

Offline utility for looking up IP address location info with the help of ip-location-db.

License:MIT License


Languages

Language:Rust 100.0%