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.0.0.tar.gz (8.8 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.0.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ipry-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1387844237edb8f4c8182052b9754c3381dc67e070cef9f92acf7b7a5a83a07f
MD5 ac78dc10986845cddda47e582cad852a
BLAKE2b-256 eabb0df000f8d1cbbab7c8fa7b3cb65be9fdbf728f60e452892eb6e4153bfb4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipry-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13ec28a06c75cc569de33970d6b0ea91c33b74afdc229bed3456a410ec57ba8e
MD5 8dd57e17faf8c32e5dd5c0158bf15d12
BLAKE2b-256 b88b4827756433bc18a7d4dc4d3e736133c417bcb66152bdd1a764397e2a5aea

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