Skip to main content

Validating and classifying IPv4 address

Project description

IPregex

Validating and Classifying IPv4 Address

Prerequisites:

  • Linux OS
  • Python >=3.5 "pre-installed"
python3 --version
  • Python pip3 "If not installed feel free to surf the web for installation guide based on your OS"
pip3 --version

Installing:

  • Download and install IPregexo python package
pip3 install IPregexo

Take care PyPi packages name are case sensitive

  • Import IPrexego on every python script you want to use it on
from IPregexo import IPregexo

Examples:

    1. Check vaild IP format and print message if so.
    1. Check vaild IP format and return Boolean result if so.

Commands:

Command Description
check_IP Vaildate IP format and print Message
checkB_IP Vaildate IP format and return Boolean
check_IP_Private Vaildate if Private IP and print Message
checkB_IP_Private Vaildate if Private IP and return Boolean
check_IP_Private_A Vaildate if Private IP Class A and print Message
checkB_IP_Private_A Vaildate if Private IP Class A and return Boolean
check_IP_Private_B Vaildate if Private IP Class B and print Message
checkB_IP_Private_B Vaildate if Private IP Class B and return Boolean
check_IP_Private_C Vaildate if Private IP Class C and print Message
checkB_IP_Private_C Vaildate if Private IP Class C and return Boolean

Authors

  • Omar Adil - Network Engineer - Linkedin

License

This project is licensed under the MIT License - see the LICENSE file for details

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

IPregexo-0.0.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

IPregexo-0.0.2-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

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