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-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

ipry-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ipry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e02f9300d7ccc76e52ad25099e1e07387e8b97d5bec087f8fa70ab61ec6fb9d0
MD5 956a364f7ead72cdc2466d0bda377834
BLAKE2b-256 d931d2e874cbdc8708acd575b21de98d333220426b015d45dc830c492954de6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipry-0.1.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-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5aa7a7e31194fe263d16807ef2f0e32756d2737f338195feb7e0f76387176b3a
MD5 6ed6a5396aad78d341c0bd5474ebee65
BLAKE2b-256 dd6a4ba13fc7b9b7f008f1d477da1154ef47edab05f52cd8ce9705bed5368451

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