Skip to main content

CLI tool for inspecting IP addresses

Project description


🚀 Features

  • IP lookup with optional City & ASN info
  • Raw or pretty-printed output
  • Local DB support (DB-IP Free Lite)
  • Easy settings toggle via CLI
  • Cross-platform (Linux / Windows / macOS)

📦 Installation

ipry requires Python 3.10+ to run. Recommended installation via pipx.

🪟 Windows

pip install ipry

Or optionally via pipx:

pipx install ipry

🐧 Linux

pipx install ipry

If pipx is not installed:

sudo pacman -S python-pipx         # Arch-based
sudo apt install pipx              # Debian/Ubuntu
sudo dnf install pipx              # Fedora
apk add py3-pipx                   # Alpine Linux
sudo xbps-install -S python3-pipx  # Void Linux
nix-env -iA nixpkgs.pipx           # NixOS
sudo zypper install pipx           # OpenSUSE

🍎 macOS

pipx install ipry

If pipx is not installed:

brew install pipx && pipx ensurepath

By default, ipry uses ip-api.com to fetch public IP geolocation data.


🧪 Usage

Lookup any IP:

ipry 8.8.8.8

Raw output (compact JSON):

ipry 8.8.8.8 --raw

Change settings:

ipry --settings

Update all databases:

ipry --update

Show help:

ipry --help

🔧 Available Flags

Flag Description
--raw Outputs plain JSON (no colors or formatting)
--local-db Use local geolocation database (from DB-IP.com, licensed under CC BY 4.0)
--settings Open interactive settings menu
--update Force update of all local DB files
--help Show help message

🌐 Local DB Mode (Optional)

When --local-db is enabled, ipry will download and use local geolocation datasets from DB-IP.com:

These files are free for personal and open-source use under the
Creative Commons Attribution 4.0 License (CC BY 4.0).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipry-1.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipry-1.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file ipry-1.1.0.tar.gz.

File metadata

  • Download URL: ipry-1.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ipry-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d24302d2f2bc98b5331ca330f5c52744ae35f266f4d4918adeb6ef10a6cd2a2d
MD5 84ca5fb43aa7ac1545911e820eea91d5
BLAKE2b-256 85f552771b38aadfe3343487d1f4daa06ff1ec78dd99b318b614375104b7e58c

See more details on using hashes here.

File details

Details for the file ipry-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipry-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ipry-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b397a4a42bb37f4f24fb86f9ecc364bfdcc4bdb527e2b14e4c9fb1267588732
MD5 18eec3ce7d4d2256b6273b70d82b5b21
BLAKE2b-256 9662840980c6d4fffc49d5987b80a44ee39ba237dcf99a5d9d830ae7774d6247

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page