Skip to main content

A CLI tool that classifies IPv4 addresses

Project description

ip-address-classifier

PyPI version

A Python CLI tool that classifies IPv4 addresses by class (A–E), and also tells you if the address is:

  • Public or Private
  • Loopback
  • Invalid

Installation

pipx install ip-address-classifier

⚠️ If ipclass isn’t recognized after install, run:

pipx ensurepath
exec $SHELL  # or restart your terminal

Usage

ipclass

You’ll be prompted to enter a valid IPv4 address (e.g. 192.168.1.1)
The tool will return:

  • The address class (A–E)
  • Whether it’s public or private
  • If it’s loopback or invalid

Tech Stack

  • Python 3.12
  • Poetry
  • CLI entrypoint via pyproject.toml

License

This project is licensed under the MIT License.

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

ip_address_classifier-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

ip_address_classifier-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file ip_address_classifier-0.1.2.tar.gz.

File metadata

  • Download URL: ip_address_classifier-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.1-microsoft-standard-WSL2

File hashes

Hashes for ip_address_classifier-0.1.2.tar.gz
Algorithm Hash digest
SHA256 010bad013e659f198001a5d41920a3b136000fb1ab8deabf8e854debf488cba8
MD5 aa8f6ee0a63a5aa26ebd682a4c6e4185
BLAKE2b-256 e34c7b4aa2f936d0678eac2d17be34d70b4c5a7486019228e982f21c5fe0eac9

See more details on using hashes here.

File details

Details for the file ip_address_classifier-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ip_address_classifier-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.1-microsoft-standard-WSL2

File hashes

Hashes for ip_address_classifier-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9c8aa9303b483aa15b01a48049e07149df85460aa674d55fce40a97814801fe
MD5 ae2a40de8e9c2e7742bbaf13c02180b0
BLAKE2b-256 5905dc10a352392e62ef8ba287a625f9dec260e68c603ca369f324dd4563e588

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